Skip to content

Commit c7194cd

Browse files
committed
Update styles.css
1 parent 833b9b9 commit c7194cd

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

data/styles/styles.css

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,6 +633,40 @@ script {
633633
border-top: var(--mainBorder);
634634
}
635635

636+
/* keep the button rows of roughly equal width */
637+
@media (max-width: 980px) {
638+
#footer {
639+
display: flex;
640+
flex-flow: column nowrap;
641+
align-items: center;
642+
}
643+
#footerLinks {
644+
max-width: 600px;
645+
}
646+
}
647+
648+
/* prevent two rows of 4 and a single button below - force a 3x3 grid */
649+
@media (max-width: 620px) {
650+
#footerLinks {
651+
max-width: 420px;
652+
}
653+
}
654+
655+
/* smaller margins */
656+
@media (max-width: 380px) {
657+
.footerLink {
658+
margin: 5px!important;
659+
}
660+
}
661+
662+
/* smaller margins */
663+
@media (max-width: 200px) {
664+
.footerLink {
665+
margin: 2px!important;
666+
}
667+
}
668+
669+
636670
#footer > * {
637671
margin: calc(var(--footerMargin) + env(safe-area-inset-right)) calc(var(--footerMargin) + env(safe-area-inset-left));
638672
}

0 commit comments

Comments
 (0)