Skip to content

Commit 3f9cc23

Browse files
committed
[PRAC/cont] Check layout/app for "overflow"
Organiz CRM-app test for/on el/content "overflow" (min testing). Worth noting: - that it's an attempt to avoid unforeseen future behavior. core: B-3 / JS-BL
1 parent e48961d commit 3f9cc23

File tree

5 files changed

+72
-15
lines changed

5 files changed

+72
-15
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,36 @@
22
display: flex;
33
justify-content: center;
44
align-items: center;
5+
column-gap: 10px;
56
padding-right: var(--container-padding);
67
padding-left: var(--container-padding);
78
}
89

910
.crm__add-btn-wrap {
11+
display: flex;
12+
flex-direction: column;
13+
row-gap: 10px;
1014
padding-bottom: 30px;
1115
}
1216

1317
.crm__add-btn {
1418
display: flex;
19+
flex-wrap: wrap;
1520
justify-content: flex-end;
1621
align-items: center;
1722
position: relative;
1823
border: 1px solid var(--main-purple);
1924
padding: 12px 25px;
2025
padding-right: 29px;
2126
min-width: 217px;
27+
max-width: 217px;
2228
font-family: var(--open-sans), sans-serif;
2329
font-weight: var(--semi-bold);
2430
font-size: var(--default-fs);
2531
color: var(--main-purple);
2632
background: transparent;
2733
outline: none;
34+
text-align: right;
2835
transition-property: border, color, background-color;
2936
transition-duration: var(--short);
3037
transition-timing-function: ease;

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

Lines changed: 38 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,12 @@
99

1010
.crm__output-title-wrap {
1111
display: flex;
12+
flex-wrap: wrap;
1213
align-items: center;
1314
column-gap: 2px;
1415
margin-bottom: 12px;
1516
}
1617

17-
.crm__output-title {
18-
font-weight: var(--semi-bold);
19-
font-size: 28px;
20-
}
21-
2218
.crm__output-title-hash {
2319
font-weight: var(--semi-bold);
2420
font-size: 32px;
@@ -37,6 +33,15 @@
3733
color: var(--gray);
3834
}
3935

36+
.crm__output-title {
37+
font-weight: var(--semi-bold);
38+
font-size: 28px;
39+
}
40+
41+
.crm__output-title:not(:last-of-type) {
42+
margin-right: 10px;
43+
}
44+
4045
.crm__output-table-wrap {
4146
padding: 3px;
4247
}
@@ -52,6 +57,10 @@
5257
table-layout: fixed;
5358
}
5459

60+
.crm__output-table:not(:last-of-type) {
61+
margin-bottom: 10px;
62+
}
63+
5564
.crm__output-table tbody {
5665
display: table;
5766
width: 1180px;
@@ -106,20 +115,29 @@
106115
width: 195px;
107116
}
108117

118+
.crm__output-table #table-th-dt {
119+
padding-left: 4px;
120+
}
121+
109122
.crm__output-table #table-th-change,
110123
.crm__output-table .crm__output-table-body-cell_chg-d-time {
111124
width: 195px;
112125
}
113126

114-
.crm__output-table #table-th-contact {
115-
cursor: default;
127+
.crm__output-table #table-th-change {
128+
padding-left: 3px;
116129
}
117130

118131
.crm__output-table #table-th-contact,
119132
.crm__output-table .crm__output-table-body-cell_contacts {
120133
width: 130px;
121134
}
122135

136+
.crm__output-table #table-th-contact {
137+
padding-left: 3px;
138+
cursor: default;
139+
}
140+
123141
.crm__output-table #table-th-action {
124142
cursor: default;
125143
}
@@ -212,6 +230,16 @@
212230
color: var(--text-gray);
213231
}
214232

233+
.crm__output-table-body-cell_crt-d-time-wrap {
234+
display: flex;
235+
flex-wrap: wrap;
236+
}
237+
238+
.crm__output-table-body-cell_chg-d-time-wrap {
239+
display: flex;
240+
flex-wrap: wrap;
241+
}
242+
215243
.crm__output-table-body-cell_crt-date,
216244
.crm__output-table-body-cell_chg-date {
217245
margin-right: 8px;
@@ -284,8 +312,10 @@
284312

285313
.crm__output-table-body-cell_actions-btns-wrap {
286314
display: flex;
315+
flex-wrap: wrap;
287316
justify-content: flex-start;
288-
column-gap: 5px;
317+
column-gap: 2px;
318+
width: 205px;
289319
}
290320

291321
.table-row-btn {

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@
1515
}
1616

1717
.crm__search-logo-wrap {
18+
display: flex;
19+
flex-wrap: wrap;
1820
flex-shrink: 0;
21+
gap: 10px;
1922
margin-right: 55px;
2023
}
2124

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

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,23 @@ body.modal-open {
3434
}
3535

3636
.modal-delete__header {
37-
display: flex;
37+
flex-wrap: wrap;
38+
justify-content: center;
39+
align-items: center;
40+
column-gap: 5px;
3841
margin-bottom: 11px;
3942
}
4043

4144
.modal-delete__header-title {
42-
margin-right: 10px;
4345
font-weight: var(--bold);
4446
font-size: 18px;
4547
color: var(--black);
4648
}
4749

4850
.modal-delete__header .modal-delete__header-x-btn {
49-
position: relative;
50-
top: -12px;
51-
right: -105px;
51+
position: absolute;
52+
top: 22px;
53+
right: 17px;
5254
padding: 5px;
5355
}
5456

@@ -67,6 +69,14 @@ body.modal-open {
6769
text-align: center;
6870
}
6971

72+
.modal-delete__body-text:not(:last-of-type) {
73+
margin-bottom: 10px;
74+
}
75+
76+
.modal-delete__footer {
77+
column-gap: 10px;
78+
}
79+
7080
.modal-delete__footer-btns-wrap {
7181
display: flex;
7282
flex-direction: column;
@@ -137,7 +147,7 @@ body.modal-open {
137147
}
138148

139149
.modal-delete__header .modal-delete__header-x-btn {
140-
right: -32px;
150+
right: 15px;
141151
}
142152
}
143153

@@ -156,7 +166,7 @@ body.modal-open {
156166
}
157167

158168
.modal-delete__header .modal-delete__header-x-btn {
159-
right: -52px;
169+
right: 15px;
160170
}
161171

162172
.modal-delete__body {

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,14 +170,17 @@ body.modal-open {
170170

171171
.modal__body-add-btn {
172172
display: flex;
173+
flex-wrap: wrap;
173174
justify-content: flex-end;
174175
align-items: center;
175176
position: relative;
176177
padding: 10px 20px;
177178
min-width: 191px;
179+
max-width: 191px;
178180
font-family: var(--open-sans), sans-serif;
179181
font-weight: var(--semi-bold);
180182
font-size: var(--default-fs);
183+
text-align: end;
181184
transition-property: color, background-color;
182185
transition-duration: var(--short);
183186
transition-timing-function: ease;
@@ -217,6 +220,10 @@ body.modal-open {
217220
margin-bottom: 15px;
218221
}
219222

223+
.modal-contact-btn-margin:not(:last-of-type) {
224+
margin-bottom: 0;
225+
}
226+
220227
.modal__body-contacts-wrap {
221228
display: flex;
222229
flex-direction: column;

0 commit comments

Comments
 (0)