Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Citizen.css: Difference between revisions

MediaWiki interface page
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
 
(10 intermediate revisions by the same user not shown)
Line 11: Line 11:
}
}


/* Mobile fixes - prevent horizontal overflow */
/* Fix main page layout on mobile - override inline styles */
@media (max-width: 768px) {
@media (max-width: 768px) {
body {
/* Override the min-width: 480px inline style */
overflow-x: hidden !important;
.mw-parser-output > div[style*="min-width: 480px"] {
min-width: 100% !important;
width: 100% !important;
flex-basis: 100% !important;
}
}
    :root.citizen-feature-custom-width-clientpref-full,
      :root {
    --width-layout: 100%;
      }
.mw-page-container,
/* Make parent flex container stack vertically on mobile */
.page-Container,
.mw-parser-output > div[style*="display: flex"] {
.mw-body,
flex-direction: column !important;
.mw-body-content {
max-width: 100vw !important;
overflow-x: hidden !important;
margin-left: 0 !important;
margin-right: 0 !important;
}
/* Fix for full-width elements causing overflow */
* {
max-width: 100%;
}
/* Reset any fixed positioning that might cause issues */
.home-header,
.mw-parser-output {
width: 100% !important;
max-width: 100% !important;
overflow-x: hidden !important;
box-sizing: border-box !important;
}
}
}
}
@media screen {
  .citizen-footer__container {
    max-width: 100vw;
    margin-inline: auto;
  }
}
#footer-places {
    margin-left: auto;
    display: flex;
    justify-content: flex-end;
}
#footer-places ul {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Aligns the <li> items to the right */
    text-align: right;    /* Ensures text alignment is consistent */
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}


/* Fix Citizen mobile layout - content shifted right */
#footer-places li {
@media (max-width: 999px) {
    margin: 0;
/* Reset page container positioning */
    display: block;
.mw-page-container {
position: relative !important;
left: 0 !important;
right: 0 !important;
transform: none !important;
margin: 0 !important;
padding-left: 0 !important;
padding-right: 0 !important;
width: 100% !important;
max-width: 100% !important;
}
/* Reset content wrapper */
.mw-content-container,
.mw-body {
margin-left: 0 !important;
margin-right: 0 !important;
padding-left: 1rem !important;
padding-right: 1rem !important;
}
/* Fix any transform/translate issues */
body {
overflow-x: hidden !important;
}
html {
overflow-x: hidden !important;
}
}
}


@media (max-width: 999px) {
#footer-sitetitle .mw-logo-icon {
.mw-page-container,
    display: none !important;
.mw-content-container,
.mw-body,
.mw-body-content,
.parsoid-body,
.mw-parser-output {
width: 100% !important;
max-width: 100% !important;
min-width: 100% !important;
margin: 0 !important;
padding-left: 1rem !important;
padding-right: 1rem !important;
box-sizing: border-box !important;
}
/* Remove any container width limits */
.citizen-page-container,
.citizen-body-container {
width: 100% !important;
max-width: none !important;
}
/* Ensure content uses full available space */
#content {
width: 100% !important;
max-width: 100% !important;
}
}
}

Latest revision as of 18:46, 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;
  }
}


#footer-places {
    margin-left: auto; 
    display: flex;
    justify-content: flex-end;
}


#footer-places ul {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Aligns the <li> items to the right */
    text-align: right;    /* Ensures text alignment is consistent */
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}


#footer-places li {
    margin: 0;
    display: block;
}

#footer-sitetitle .mw-logo-icon {
    display: none !important;
}