Toggle 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
mNo edit summary
No edit summary
Line 1: Line 1:
/*
/*
  * This stylesheet only contains site-wide styles.
* MediaWiki:Common.css
  * For template styles, check the specific template documentation.
  * This stylesheet contains site-wide styles.
  * For template-specific styles, check the template documentation.
*/
*/


/* Align icon opacity with skin default
/*  
  * .mw-logo-icon {
  * Global Styles
  * opacity: var( --opacity-icon-base );
  * Styles that apply to the entire site.
*  filter: var( --filter-invert );
* }
*/
*/
/* Universal box-sizing set to border-box */
html {
    box-sizing: border-box;
    scroll-padding-top: 6rem; /* Adjust scroll padding */
}
html, body {
    min-height: 100vh;
    padding: 0;
    margin: 0;
    color: var(--color-base); /* Base text color */
    accent-color: var(--color-progressive); /* Accent color */
    background: var(--color-surface-0); /* Background color */
}
/* Apply border-box universally unless overwritten */
*, *::before, *::after {
    box-sizing: inherit;
}
/* Focus outline styles */
:focus {
    outline-color: var(--color-progressive);
}
/* Ensure focus-visible outline is styled */
:focus-visible {
    outline: 2px solid var(--color-progressive);
    outline-offset: 1px;
}
/* Input, select, and textarea styles */
input, select, textarea {
    color: var(--color-emphasized);
    background-color: transparent;
    border: 1px solid var(--border-color-interactive);
}
/* Option elements in select inputs */
select option {
    background-color: var(--color-surface-1);
}
/* Textarea width to fill its container */
textarea {
    width: 100%;
}
/* Superscript and subscript line height adjustment */
sup, sub {
    line-height: 1;
}


/*
/*
  * Menu
  * Menu Styles
  * Rich format menu to have more hierarchy
  * Styling for the rich format menu to ensure proper hierarchy and layout.
*/
*/
/* Remove bottom spacing as it is handled in footer portlet */
.templatequote .templatequotecite::before {
    content: '';
}


/* Remove bottom spacing in the drawer menu, handled in footer portlet */
.citizen-drawer__menu {
.citizen-drawer__menu {
margin-bottom: 0;
    margin-bottom: 0;
padding-bottom: 0;
    padding-bottom: 0;
}
}


/* External portlet styling for sticky positioning at the bottom */
.mw-portlet-External {
.mw-portlet-External {
position: sticky;
    position: sticky;
bottom: 0;
    bottom: 0;
margin-top: var( --space-md );
    margin-top: var(--space-md);
     padding: var( --space-xs ) 0;
     padding: var(--space-xs) 0;
border-top: 1px solid var( --border-color-base );
    border-top: 1px solid var(--border-color-base);
background: var( --color-surface-1 );
    background: var(--color-surface-1);
font-size: var( --font-size-x-small );
    font-size: var(--font-size-x-small);
grid-column: 1 / -1;
    grid-column: 1 / -1;
white-space: nowrap;
    white-space: nowrap;
}
}


/* Hide the heading in the external portlet */
.mw-portlet-External .citizen-menu__heading {
.mw-portlet-External .citizen-menu__heading {
display: none;
    display: none;
}
}


/* Flex layout for the external portlet's list */
.mw-portlet-External ul {
.mw-portlet-External ul {
display: flex;
    display: flex;
overflow: auto;
    overflow: auto;
}
}


/* Remove gap in the list items of the external portlet */
.mw-portlet-External .mw-list-item a {
.mw-portlet-External .mw-list-item a {
gap: 0;
    gap: 0;
}
}


/* Label */
/* Label styling in the drawer menu */
.citizen-drawer__menu [id^="n-sidebar-label-"] a {
.citizen-drawer__menu [id^="n-sidebar-label-"] a {
pointer-events: none;
    pointer-events: none;
     margin-left: var( --space-xs );
     margin-left: var(--space-xs);
     padding-left: var( --space-md );
     padding-left: var(--space-md);
padding-right: var( --space-xs );
    padding-right: var(--space-xs);
border-left: 1px solid var( --border-color-base );
    border-left: 1px solid var(--border-color-base);
     border-radius: 0;
     border-radius: 0;
     letter-spacing: 0.05em;
     letter-spacing: 0.05em;
     font-weight: var( --font-weight-normal );
     font-weight: var(--font-weight-normal);
     color: var( --color-base--subtle ) !important;
     color: var(--color-base--subtle) !important;
}
}


/* Icons */
/* Icon styling in the drawer menu */
.citizen-drawer__menu [id^="n-sidebar-icon-"] a {
.citizen-drawer__menu [id^="n-sidebar-icon-"] a {
font-size: 0;
    font-size: 0;
}
}


/* Ensure icons are displayed correctly with specific size and background */
.citizen-drawer__menu [id^="n-sidebar-icon-"] a:before {
.citizen-drawer__menu [id^="n-sidebar-icon-"] a:before {
display: block;
    display: block;
     content: "";
     content: "";
     width: var( --size-icon );
     width: var(--size-icon);
     height: var( --size-icon );
     height: var(--size-icon);
     background: transparent center/contain no-repeat;
     background: transparent center/contain no-repeat;
     opacity: var( --opacity-icon-base );
     opacity: var(--opacity-icon-base);
     filter: var( --filter-invert );
     filter: var(--filter-invert);
}
}


/*
/*
  * Footer icons
  * Footer Styles
  * We use custom footer icons so we need to fine tune it
  * Adjust the appearance and layout of custom footer icons and elements.
*
*/
* #footer-icons a {
 
* opacity: var( --opacity-icon-base );
/* Display flex for logo wordmark with alignment */
* transition: opacity 250ms ease;
* }
*
* #footer-icons a:hover {
* opacity: var( --opacity-icon-base--hover );
* }
*
* #footer-icons a:active {
* opacity: var( --opacity-icon-base--active );
* }
*
* More space between icons
* #footer-icons ul,
* #footer-icons li {
* gap: var( --space-md );
* }
*
* #footer-icons img {
* width: auto;
* height: 32px;
* }
*
* Divide footer links into two columns
* #footer-places {
* column-count: 2;
* }
*
* Fix misalignment in Safari and Firefox when using two columns
* #footer-places ul {
* display: initial;
* }
*
* Darken the footer icon in light mode
* .skin-citizen-light #footer-icons a {
* filter: invert( 1 ) hue-rotate( 180deg );
* }
*
*
* Move main page page actions to the bottom of the page
* .page-Star_Citizen_Wiki .citizen-body-container {
* grid-template-areas:
*        'content'
*        'header'
*        'footer';
* }
*/
/*
* Very important checkmark
* Blue checkmark near wordmark
*/
.mw-logo-wordmark {
.mw-logo-wordmark {
     display: flex;
     display: flex;
     align-items: center;
     align-items: center;
     gap: var( --space-sm );
     gap: var(--space-sm);
}
}


/* CookieWarning tweaks */
/* Custom cookie warning styling */
.mw-cookiewarning-container {
.mw-cookiewarning-container {
max-width: 480px;
    max-width: 480px;
}
}


/* Adjust gap in cookie warning text */
.mw-cookiewarning-text {
.mw-cookiewarning-text {
gap: var(--space-xs);
    gap: var(--space-xs);
}
}


/* Add a cookie emoji before the warning text */
.mw-cookiewarning-text::before {
.mw-cookiewarning-text::before {
content: '🍪';
    content: '🍪';
     font-size: 2rem;
     font-size: 2rem;
}
}


/* hide on pageload to prevent FoUC */
/* Hide cookie warning on page load to prevent Flash of Unstyled Content (FoUC) */
.client-js .mw-cookiewarning-container {
.client-js .mw-cookiewarning-container {
opacity: 0;
    opacity: 0;
visibility: hidden;
    visibility: hidden;
transition: opacity 250ms ease, visibility 250ms ease;
    transition: opacity 250ms ease, visibility 250ms ease;
}
}


/* citizen-animations-ready is added when scripts are loaded */
/* Show cookie warning when scripts are loaded */
.client-js.citizen-animations-ready .mw-cookiewarning-container {
.client-js.citizen-animations-ready .mw-cookiewarning-container {
opacity: 1;
    opacity: 1;
visibility: visible;
    visibility: visible;
}
 
/*
* Blockquote Styles
* Custom styling for blockquotes to remove unwanted emdash before citations.
*/
 
/* Remove the unwanted emdash before citations in blockquotes */
blockquote cite::before {
    content: ''; /* Remove the unwanted emdash */
}
}

Revision as of 15:38, 30 June 2024

/*
 * MediaWiki:Common.css
 * This stylesheet contains site-wide styles.
 * For template-specific styles, check the template documentation.
*/

/* 
 * Global Styles
 * Styles that apply to the entire site.
*/

/* Universal box-sizing set to border-box */
html {
    box-sizing: border-box;
    scroll-padding-top: 6rem; /* Adjust scroll padding */
}

html, body {
    min-height: 100vh;
    padding: 0;
    margin: 0;
    color: var(--color-base); /* Base text color */
    accent-color: var(--color-progressive); /* Accent color */
    background: var(--color-surface-0); /* Background color */
}

/* Apply border-box universally unless overwritten */
*, *::before, *::after {
    box-sizing: inherit;
}

/* Focus outline styles */
:focus {
    outline-color: var(--color-progressive);
}

/* Ensure focus-visible outline is styled */
:focus-visible {
    outline: 2px solid var(--color-progressive);
    outline-offset: 1px;
}

/* Input, select, and textarea styles */
input, select, textarea {
    color: var(--color-emphasized);
    background-color: transparent;
    border: 1px solid var(--border-color-interactive);
}

/* Option elements in select inputs */
select option {
    background-color: var(--color-surface-1);
}

/* Textarea width to fill its container */
textarea {
    width: 100%;
}

/* Superscript and subscript line height adjustment */
sup, sub {
    line-height: 1;
}

/*
 * Menu Styles
 * Styling for the rich format menu to ensure proper hierarchy and layout.
*/

/* Remove bottom spacing in the drawer menu, handled in footer portlet */
.citizen-drawer__menu {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* External portlet styling for sticky positioning at the bottom */
.mw-portlet-External {
    position: sticky;
    bottom: 0;
    margin-top: var(--space-md);
    padding: var(--space-xs) 0;
    border-top: 1px solid var(--border-color-base);
    background: var(--color-surface-1);
    font-size: var(--font-size-x-small);
    grid-column: 1 / -1;
    white-space: nowrap;
}

/* Hide the heading in the external portlet */
.mw-portlet-External .citizen-menu__heading {
    display: none;
}

/* Flex layout for the external portlet's list */
.mw-portlet-External ul {
    display: flex;
    overflow: auto;
}

/* Remove gap in the list items of the external portlet */
.mw-portlet-External .mw-list-item a {
    gap: 0;
}

/* Label styling in the drawer menu */
.citizen-drawer__menu [id^="n-sidebar-label-"] a {
    pointer-events: none;
    margin-left: var(--space-xs);
    padding-left: var(--space-md);
    padding-right: var(--space-xs);
    border-left: 1px solid var(--border-color-base);
    border-radius: 0;
    letter-spacing: 0.05em;
    font-weight: var(--font-weight-normal);
    color: var(--color-base--subtle) !important;
}

/* Icon styling in the drawer menu */
.citizen-drawer__menu [id^="n-sidebar-icon-"] a {
    font-size: 0;
}

/* Ensure icons are displayed correctly with specific size and background */
.citizen-drawer__menu [id^="n-sidebar-icon-"] a:before {
    display: block;
    content: "";
    width: var(--size-icon);
    height: var(--size-icon);
    background: transparent center/contain no-repeat;
    opacity: var(--opacity-icon-base);
    filter: var(--filter-invert);
}

/*
 * Footer Styles
 * Adjust the appearance and layout of custom footer icons and elements.
*/

/* Display flex for logo wordmark with alignment */
.mw-logo-wordmark {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Custom cookie warning styling */
.mw-cookiewarning-container {
    max-width: 480px;
}

/* Adjust gap in cookie warning text */
.mw-cookiewarning-text {
    gap: var(--space-xs);
}

/* Add a cookie emoji before the warning text */
.mw-cookiewarning-text::before {
    content: '🍪';
    font-size: 2rem;
}

/* Hide cookie warning on page load to prevent Flash of Unstyled Content (FoUC) */
.client-js .mw-cookiewarning-container {
    opacity: 0;
    visibility: hidden;
    transition: opacity 250ms ease, visibility 250ms ease;
}

/* Show cookie warning when scripts are loaded */
.client-js.citizen-animations-ready .mw-cookiewarning-container {
    opacity: 1;
    visibility: visible;
}

/*
 * Blockquote Styles
 * Custom styling for blockquotes to remove unwanted emdash before citations.
*/

/* Remove the unwanted emdash before citations in blockquotes */
blockquote cite::before {
    content: ''; /* Remove the unwanted emdash */
}