Skip to content

Commit a0617c5

Browse files
feat: Add responsive styles to price calculation forms and related UI components.
1 parent e1edd70 commit a0617c5

File tree

4 files changed

+27
-3
lines changed

4 files changed

+27
-3
lines changed

src/pages_layer/PriceCalculation/style.module.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,9 @@
77
justify-content: flex-start;
88
box-sizing: border-box;
99
padding-top: 20px;
10+
11+
@media (max-width: 720px) {
12+
padding: 10px;
13+
padding-top: 20px;
14+
}
1015
}

src/shared/ui/FormItem/style.module.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
&WithNoLabel {
1212
justify-content: center;
1313
}
14+
@media (max-width: 520px) {
15+
flex-direction: column;
16+
gap: 10px;
17+
}
1418
}
1519

1620
&Label {

src/widgets/PriceCalculation/PriceCalculationForm/FileFormItem/style.module.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
flex-direction: row;
99
align-items: flex-start;
1010
justify-content: flex-start;
11+
12+
@media (max-width: 510px) {
13+
flex-direction: column;
14+
gap: 10px;
15+
}
1116
}
1217

1318
&Label {

src/widgets/PriceCalculation/PriceCalculationForm/style.module.scss

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
@use 'sass:math';
21
$WIDTH: 700px;
32
.form {
43
&Container {
@@ -7,8 +6,12 @@ $WIDTH: 700px;
76
position: relative;
87
&Loader {
98
position: absolute;
10-
top: calc(50% - 40px);
11-
right: math.div($WIDTH, 2);
9+
top: 50%;
10+
left: 50%;
11+
transform: translate(-50%, -50%);
12+
}
13+
@media (max-width: 720px) {
14+
width: 100%;
1215
}
1316
}
1417
&Head {
@@ -17,9 +20,16 @@ $WIDTH: 700px;
1720
align-items: center;
1821
box-sizing: border-box;
1922
height: 50px;
23+
@media (max-width: 400px) {
24+
height: fit-content;
25+
padding: 5px;
26+
}
2027
span {
2128
color: #e49e00;
2229
font-size: 20px;
30+
@media (max-width: 400px) {
31+
text-align: center;
32+
}
2333
}
2434
}
2535
&Body {

0 commit comments

Comments
 (0)