Skip to content

Commit cacf101

Browse files
Refactor footer styles and remove social icon hiding
Removed CSS rules for hiding social icons on small mobile viewports and adjusted footer styles.
1 parent 6bb4861 commit cacf101

File tree

1 file changed

+36
-13
lines changed

1 file changed

+36
-13
lines changed

docs/stylesheets/extra.css

Lines changed: 36 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,6 @@
33

44
}
55

6-
/* Completely hide social icons on small mobile viewports (<=600px) as requested */
7-
@media (max-width: 600px) {
8-
.md-social,
9-
.md-footer .md-social,
10-
.md-social *,
11-
.md-footer .md-social * {
12-
display: none !important;
13-
visibility: hidden !important;
14-
}
15-
}
16-
176
.md-header__button.md-logo img {
187
width: 34px;
198
height: auto;
@@ -299,8 +288,6 @@
299288
}
300289
}
301290

302-
/* Center the outer social container on small mobile viewports only
303-
Keep social icons inline (do not stack them). */
304291
@media (max-width: 600px) {
305292
/* Center the social container itself */
306293
.md-social,
@@ -325,6 +312,42 @@
325312
}
326313
}
327314

315+
\
316+
.md-footer-meta__inner.md-grid {
317+
display: flex !important;
318+
flex-direction: column !important;
319+
align-items: center !important;
320+
justify-content: center !important;
321+
gap: 0.25rem !important;
322+
text-align: center !important;
323+
}
324+
325+
.md-footer-meta__inner.md-grid .md-social {
326+
display: block !important;
327+
}
328+
329+
.md-footer-meta__inner.md-grid .md-social a {
330+
display: inline-block !important;
331+
margin: 0 0.25rem !important;
332+
}
333+
334+
/* Center only the copyright line without affecting social icons */
335+
.md-footer .md-copyright,
336+
.md-footer-meta__inner.md-grid .md-copyright {
337+
display: block !important;
338+
width: 100% !important;
339+
text-align: center !important;
340+
margin: 0.25rem 0 !important;
341+
}
342+
343+
.md-footer .md-social,
344+
.md-footer-meta__inner.md-grid .md-social {
345+
display: inline-block !important;
346+
vertical-align: middle !important;
347+
}
348+
349+
350+
328351

329352

330353

0 commit comments

Comments
 (0)