Skip to content

Commit c4a92ea

Browse files
authored
Merge pull request #52386 from ritovision/fix/footer-rebalance-mobile-columns
fix(footer): rebalance mobile columns
2 parents 23df25e + bc42ac3 commit c4a92ea

File tree

1 file changed

+34
-14
lines changed

1 file changed

+34
-14
lines changed

assets/scss/_custom.scss

Lines changed: 34 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -296,21 +296,41 @@ footer {
296296
}
297297
}
298298

299-
300299
@media (max-width: 799px) {
301-
footer ul.footer-icons {
302-
display: flex;
303-
flex-wrap: nowrap;
304-
flex-direction: column;
305-
align-items: flex-start;
306-
row-gap: 0.5em;
307-
}
308-
footer div.order-1 ul.footer-icons {
309-
margin-left: auto;
310-
}
311-
footer div.order-3 ul.footer-icons {
312-
margin-right: auto;
313-
}
300+
footer ul.footer-icons {
301+
display: flex;
302+
flex-wrap: nowrap;
303+
flex-direction: column;
304+
row-gap: 0.5em;
305+
}
306+
307+
footer div.order-1 ul.footer-icons {
308+
align-items: flex-start;
309+
margin-left: 0;
310+
margin-right: auto;
311+
}
312+
313+
footer div.order-3 ul.footer-icons {
314+
align-items: flex-end;
315+
margin-left: auto;
316+
margin-right: 0;
317+
}
318+
319+
// These character icons are bigger than the others and creates an offset, this restores centeredness
320+
.fa-laptop-code {
321+
font-size: 1.1rem;
322+
}
323+
.fa-youtube {
324+
font-size: 1.3rem;
325+
}
326+
.fa-envelope {
327+
font-size: 1.3rem;
328+
}
329+
330+
// Makes the text column wider on mobile while leaving the inline bootstrap code for desktop
331+
footer .row > .order-1 { flex: 0 0 16.6667%; max-width: 16.6667%; }
332+
footer .row > .order-2 { flex: 0 0 66.6667%; max-width: 66.6667%; }
333+
footer .row > .order-3 { flex: 0 0 16.6667%; max-width: 16.6667%; }
314334
}
315335

316336
/* SIDE-DRAWER MENU */

0 commit comments

Comments
 (0)