Skip to content

Commit 0920f9e

Browse files
authored
Merge pull request #31277 from sftim/20210110_fix_footer
Fix footer rendering
2 parents 05e3a57 + 688c246 commit 0920f9e

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

assets/scss/_custom.scss

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,15 +215,25 @@ body.td-404 main .error-details {
215215
}
216216
}
217217

218+
body > footer {
219+
width: 100vw;
220+
}
221+
218222
/* FOOTER */
219223
footer {
220224
background-color: #303030;
221225
background-image: url("/images/texture.png");
222226
padding: 1rem !important;
223227
min-height: initial !important;
224228

225-
.footer__links {
226-
width: 100%;
229+
> div, > p {
230+
max-width: 95%;
231+
@media only screen and (min-width: 768px) {
232+
max-width: calc(min(80rem,90vw)); // avoid spreading too wide
233+
}
234+
}
235+
236+
> .footer__links {
227237
margin: auto;
228238
padding-bottom: 1rem;
229239

@@ -233,6 +243,8 @@ footer {
233243
}
234244

235245
@media only screen and (min-width: 768px) {
246+
max-width: calc(min(60rem,90vw)); // avoid spreading too wide
247+
236248
nav {
237249
display: flex;
238250
flex-direction: row;

static/css/newcommunity.css

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ body {
8585
font-weight: 300;
8686
/* letter-spacing:0.03em; */
8787
/* font-size:15px; */
88-
margin: 0 auto;
88+
margin: 0;
8989

9090
}
9191

@@ -636,11 +636,9 @@ h2:after {
636636

637637
body {
638638
overflow-x: hidden;
639-
line-height: 1.5em;
640639
margin-top: 1%;
641640
letter-spacing: 0.03em;
642641
/* font-size: 13px; */
643-
margin: 0 auto;
644642

645643
}
646644

0 commit comments

Comments
 (0)