Skip to content

Commit c250d7b

Browse files
committed
[PRAC/cont] Start moving to "pixel perfect" layout
Defining the "main" container size, setting up "PerfectPixel" extension. Worth noting: - upcoming Html/DOM structure corrections. core: B-3 / JS-BL
1 parent e4a74b4 commit c250d7b

File tree

4 files changed

+53
-7
lines changed

4 files changed

+53
-7
lines changed

core-courses/3-js-basic-level/practicum-js-basic-level/sb-crm-client/css/crm-output.css

Lines changed: 44 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
.crm__output-data {
2+
padding-right: var(--output-padding);
3+
padding-left: var(--output-padding);
4+
}
5+
16
.crm__output-title {
2-
margin-bottom: 7px;
7+
margin-bottom: 25px;
38
font-weight: var(--semi-bold);
49
font-size: 28px;
510
}
@@ -33,30 +38,30 @@
3338
}
3439

3540
.crm__output-table #table-th-id {
36-
width: 75px;
41+
width: 85px;
3742
font-weight: var(--semi-bold);
3843
color: var(--main-purple);
3944
}
4045

4146
.crm__output-table #table-th-fio {
42-
width: 280px;
47+
width: 400px;
4348
}
4449

4550
.crm__output-table #table-th-dt {
46-
width: 180px;
51+
width: 220px;
4752
}
4853

4954
.crm__output-table #table-th-change {
50-
width: 180px;
55+
width: 200px;
5156
}
5257

5358
.crm__output-table #table-th-contact {
5459
padding-right: 30px;
55-
width: 190px;
60+
/* width: 190px; */
5661
}
5762

5863
.crm__output-table #table-th-action {
59-
padding-right: 20px;
64+
/* padding-right: 20px; */
6065
}
6166

6267
.crm__o-table-head-cell:focus-visible {
@@ -91,3 +96,35 @@
9196
font-weight: var(--semi-bold);
9297
color: var(--main-purple);
9398
}
99+
100+
/* media queries, any-hover */
101+
102+
@media (max-width: 992px) {
103+
.crm__output-title {
104+
margin-bottom: 7px;
105+
}
106+
107+
.crm__output-table #table-th-id {
108+
width: 75px;
109+
}
110+
111+
.crm__output-table #table-th-fio {
112+
width: 280px;
113+
}
114+
115+
.crm__output-table #table-th-dt {
116+
width: 180px;
117+
}
118+
119+
.crm__output-table #table-th-change {
120+
width: 180px;
121+
}
122+
123+
.crm__output-table #table-th-contact {
124+
width: 190px;
125+
}
126+
127+
.crm__output-table #table-th-action {
128+
padding-right: 20px;
129+
}
130+
}

core-courses/3-js-basic-level/practicum-js-basic-level/sb-crm-client/css/page.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ svg {
5656
background-color: var(--bg-page);
5757
}
5858

59+
.page__container {
60+
padding: 0;
61+
max-width: var(--page-max-width);
62+
}
63+
5964
.page__title {
6065
margin-bottom: 16px;
6166
padding-top: 10px;

core-courses/3-js-basic-level/practicum-js-basic-level/sb-crm-client/css/variables.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
:root {
22
/* sizes */
33
--page-min-width: 320px;
4+
--page-max-width: 1366px;
5+
--output-padding: 90px;
46

57
/* fonts */
68
--open-sans: "Open Sans";

core-courses/3-js-basic-level/practicum-js-basic-level/sb-crm-client/js/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,10 @@
3535
searchLogoImg.setAttribute('width', '50');
3636
searchLogoImg.setAttribute('height', '50');
3737
searchLogoImg.setAttribute('alt', 'Логотип: Skillbus');
38+
searchForm.setAttribute('id', 'search-form');
3839
searchForm.setAttribute('action', '#');
3940
searchForm.setAttribute('novalidate', '');
41+
searchInput.setAttribute('id', 'search-form-input');
4042
searchInput.setAttribute('type', 'text');
4143
searchInput.setAttribute('pattern', '[А-Яа-яЁё\\-]+');
4244
searchInput.setAttribute('placeholder', 'Введите запрос');

0 commit comments

Comments
 (0)