Skip to content

Commit 7f1cce3

Browse files
committed
start fixing mobile layout
1 parent 4dd4418 commit 7f1cce3

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

frontend-next-migration/src/preparedPages/NewsPages/ui/NewsElementPage/ui/NewsElementPage.module.scss

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@
1010
align-items: center;
1111
justify-content: center;
1212
row-gap: 1rem;
13+
padding-inline: 5em;
14+
}
15+
16+
@media (max-width: breakpoint(md)) {
17+
.NewsElementPage {
18+
padding-inline: 1em;
19+
align-items: stretch;
20+
}
1321
}
1422

1523
.navButtons {
@@ -87,6 +95,7 @@
8795
margin: 0 auto;
8896
@media (max-width: breakpoint(md)) {
8997
font: var(--font-sw-l);
98+
text-align: left;
9099
}
91100
}
92101

@@ -99,23 +108,23 @@
99108
margin: 0 auto;
100109
@media (max-width: breakpoint(md)) {
101110
font: var(--font-sw-m);
111+
text-align: left;
102112
}
103113
}
104114

105115
.text {
106116
color: var(--white);
107117
font: var(--font-dm-m);
108118
line-height: 28px;
109-
padding: 10px 5em;
119+
padding: 10px 0;
110120
text-align: left;
111-
width: 80%;
121+
width: 100%;
112122
white-space: pre-line;
113123
}
114124

115125
@media (max-width: breakpoint(md)) {
116126
.text {
117-
padding: 10px 1em;
118-
width: 98%;
127+
text-align: left;
119128
}
120129
}
121130

@@ -158,14 +167,21 @@
158167
padding: 0 40px 20px 40px;
159168
width: 100%;
160169
gap: 16px;
170+
@media (max-width: breakpoint(md)) {
171+
justify-content: flex-start;
172+
padding: 0 0 20px 0;
173+
flex-direction: column;
174+
align-items: flex-start;
175+
gap: 4px
176+
}
161177
}
162178

163179
.shareButton {
164180
color: var(--primary-color);
165181
display: flex;
166182
align-items: center;
167183
align-self: flex-start;
168-
padding: 0 5em;
184+
padding: 0;
169185
margin-top: 16px;
170186
}
171187

0 commit comments

Comments
 (0)