MediaWiki:Citizen.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary |
||
| Line 30: | Line 30: | ||
margin-inline: auto; | margin-inline: auto; | ||
} | } | ||
} | |||
/* Stack footer links vertically */ | |||
#footer-places ul { | |||
display: flex; | |||
flex-direction: column; | |||
gap: 0.4rem; /* Adds a little space between the links */ | |||
align-items: flex-start; /* Keeps links aligned to the left */ | |||
} | |||
/* Ensure list items don't have extra margins that break alignment */ | |||
#footer-places li { | |||
margin: 0; | |||
display: block; | |||
} | } | ||
Revision as of 04:26, 5 February 2026
/* Default: Full width */
:root.citizen-feature-custom-width-clientpref-standard,
:root {
--width-layout: 100vw;
}
/* Override for specific pages using body class */
.page-Main_Page,
.page-Hauptseite {
--width-layout: 1600px;
}
/* Fix main page layout on mobile - override inline styles */
@media (max-width: 768px) {
/* Override the min-width: 480px inline style */
.mw-parser-output > div[style*="min-width: 480px"] {
min-width: 100% !important;
width: 100% !important;
flex-basis: 100% !important;
}
/* Make parent flex container stack vertically on mobile */
.mw-parser-output > div[style*="display: flex"] {
flex-direction: column !important;
}
}
@media screen {
.citizen-footer__container {
max-width: 100vw;
margin-inline: auto;
}
}
/* Stack footer links vertically */
#footer-places ul {
display: flex;
flex-direction: column;
gap: 0.4rem; /* Adds a little space between the links */
align-items: flex-start; /* Keeps links aligned to the left */
}
/* Ensure list items don't have extra margins that break alignment */
#footer-places li {
margin: 0;
display: block;
}