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
Created page with "→All CSS here will be loaded for users of the Citizen skin: →Default style for navigation boxes: .navbox { →Navbox container style: box-sizing: border-box; border: 1px solid #a2a9b1; width: 100%; clear: both; font-size: 88%; text-align: center; padding: 1px; margin: 1em auto 0; →Prevent preceding content from clinging to navboxes: } .navbox .navbox { margin-top: 0; →No top margin for nested navboxes: } .na..."
 
No edit summary
Tag: Reverted
Line 1: Line 1:
/* All CSS here will be loaded for users of the Citizen skin */
/*
/* Default style for navigation boxes */
* Star Citizen Wiki
.navbox {                    /* Navbox container style */
* This stylesheet only contains site-wide styles.
box-sizing: border-box;
* For template styles, check the specific template documentation.
border: 1px solid #a2a9b1;
*/
width: 100%;
 
clear: both;
/* Adjust primary color */
font-size: 88%;
:root {
text-align: center;
--color-progressive-oklch__h: 230;
padding: 1px;
--color-progressive-hsl__h: 205;
margin: 1em auto 0;       /* Prevent preceding content from clinging to navboxes */
}
}
.navbox .navbox {
 
margin-top: 0;           /* No top margin for nested navboxes */
/* Adjust contrast since we changed primary color */
:root.skin-citizen-dark {
--color-primary__l: 56%;
}
}
.navbox + .navbox {
 
margin-top: -1px;         /* Single pixel border between adjacent navboxes */
h1,
h2,
h3,
h4,
h5,
h6,
.mw-logo-wordmark {
font-weight: var( --font-weight-medium );
letter-spacing: 0.0125em;
}
}
.navbox-inner,
 
.navbox-subgroup {
/* Align icon opacity with skin default */
width: 100%;
.mw-logo-icon {
opacity: var( --opacity-icon-base );
filter: var( --filter-invert );
}
}
.navbox-group,
 
.navbox-title,
/*
.navbox-abovebelow {
* Menu
padding: 0.25em 1em;      /* Title, group and above/below styles */
* Rich format menu to have more hierarchy
line-height: 1.5em;
*/
text-align: center;
/* Remove bottom spacing as it is handled in footer portlet */
.citizen-drawer__menu {
margin-bottom: 0;
padding-bottom: 0;
}
}
th.navbox-group {             /* Group style */
 
.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;
white-space: nowrap;
/* @noflip */
text-align: right;
}
}
.navbox,
 
.navbox-subgroup {
.mw-portlet-External .citizen-menu__heading {
background-color: #fdfdfd; /* Background color */
display: none;
}
}
.navbox-list {
 
line-height: 1.5em;
.mw-portlet-External ul {
border-color: #fdfdfd;   /* Must match background color */
display: flex;
overflow: auto;
}
}
/* cell spacing for navbox cells */
 
tr + tr > .navbox-abovebelow,
.mw-portlet-External .mw-list-item a {
tr + tr > .navbox-group,
gap: 0;
tr + tr > .navbox-image,
tr + tr > .navbox-list {   /* Borders above 2nd, 3rd, etc. rows */
border-top: 2px solid #fdfdfd; /* Must match background color */
}
}
.navbox th,
 
.navbox-title {
/* Label */
background-color: #ccccff;     /* Level 1 color */
.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-subtle ) !important;
}
}
.navbox-abovebelow,
 
th.navbox-group,
/* Icons */
.navbox-subgroup .navbox-title {
.citizen-drawer__menu [id^="n-sidebar-icon-"] a {
background-color: #ddddff;      /* Level 2 color */
font-size: 0;
}
    content-visibility: auto;
.navbox-subgroup .navbox-group,
 
.navbox-subgroup .navbox-abovebelow {
background-color: #e6e6ff;     /* Level 3 color */
}
.navbox-even {
background-color: #f7f7f7;     /* Even row striping */
}
.navbox-odd {
background-color: transparent;  /* Odd row striping */
}
.navbox .hlist td dl,
.navbox .hlist td ol,
.navbox .hlist td ul,
.navbox td.hlist dl,
.navbox td.hlist ol,
.navbox td.hlist ul {
padding: 0.125em 0;      /* Adjust hlist padding in navboxes */
}
}


/* Default styling for Navbar template */
.citizen-drawer__menu [id^="n-sidebar-icon-"] a:before {
.navbar {
display: inline;
font-size: 88%;
font-weight: normal;
}
.navbar ul {
display: inline;
white-space: nowrap;
}
.mw-body-content .navbar ul {
line-height: inherit;
}
.navbar li {
word-spacing: -0.125em;
}
.navbar.mini li abbr[title] {
font-variant: small-caps;
border-bottom: none;
text-decoration: none;
cursor: inherit;
}
/* Navbar styling when nested in infobox and navbox */
.infobox .navbar {
font-size: 100%;
}
.navbox .navbar {
display: block;
display: block;
font-size: 100%;
    content: "";
}
    width: var( --size-icon );
.navbox-title .navbar {
    height: var( --size-icon );
/* @noflip */
    background-color: currentColor;
float: left;
mask-size: contain;
/* @noflip */
mask-repeat: no-repeat;
text-align: left;
mask-position: center;
/* @noflip */
margin-right: 0.5em;
}
}


.infobox {
#n-sidebar-icon-discord a:before {
border: 1px solid #a2a9b1;
mask-image: url( https://media.starcitizen.tools/7/77/Discord_-_Simple_Icons.svg );
border-spacing: 3px;
background-color: #f8f9fa;
color: black;
/* @noflip */
margin: 0.5em 0 0.5em 1em;
padding: 0.2em;
/* @noflip */
float: right;
/* @noflip */
clear: right;
font-size: 88%;
line-height: 1.5em;
}
.infobox caption {
font-size: 125%;
font-weight: bold;
padding: 0.2em;
text-align: center;
}
.infobox td,
.infobox th {
vertical-align: top;
/* @noflip */
text-align: left;
}
.infobox.bordered {
border-collapse: collapse;
}
.infobox.bordered td,
.infobox.bordered th {
border: 1px solid #a2a9b1;
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
border: 0;
}
}


.infobox.sisterproject {
#n-sidebar-icon-twitter a:before {
width: 20em;
mask-image: url( https://media.starcitizen.tools/6/6a/Twitter_-_Simple_Icons.svg );
font-size: 90%;
}
}


.infobox.standard-talk {
#n-sidebar-icon-mastodon a:before {
border: 1px solid #c0c090;
mask-image: url( https://media.starcitizen.tools/d/de/Mastodon_-_Simple_Icons.svg );
background-color: #f8eaba;
}
.infobox.standard-talk.bordered td,
.infobox.standard-talk.bordered th {
border: 1px solid #c0c090;
}
}


/* styles for bordered infobox with merged rows */
#n-sidebar-icon-threads a:before {
.infobox.bordered .mergedtoprow td,
mask-image: url( https://media.starcitizen.tools/9/9b/Threads_-_Simple_Icons.svg );
.infobox.bordered .mergedtoprow th {
border: 0;
border-top: 1px solid #a2a9b1;
/* @noflip */
border-right: 1px solid #a2a9b1;
}
}


.infobox.bordered .mergedrow td,
#n-sidebar-icon-bluesky a:before {
.infobox.bordered .mergedrow th {
mask-image: url( https://media.starcitizen.tools/8/8b/Bluesky_-_Simple_Icons.svg );
border: 0;
/* @noflip */
border-right: 1px solid #a2a9b1;
}
}


/* Styles for geography infoboxes, eg countries,
#n-sidebar-icon-patreon a:before {
  country subdivisions, cities, etc.            */
mask-image: url( https://media.starcitizen.tools/e/e9/Patreon_-_Simple_Icons.svg );
.infobox.geography {
border-collapse: collapse;
line-height: 1.2em;
font-size: 90%;
}
}


.infobox.geography  td,
#n-sidebar-icon-kofi a:before {
.infobox.geography  th {
mask-image: url( https://media.starcitizen.tools/4/48/Kofi_-_Simple_Icons.svg );
border-top: 1px solid #a2a9b1;
padding: 0.4em 0.6em 0.4em 0.6em;
}
.infobox.geography .mergedtoprow td,
.infobox.geography .mergedtoprow th {
border-top: 1px solid #a2a9b1;
padding: 0.4em 0.6em 0.2em 0.6em;
}
}


.infobox.geography .mergedrow td,
#n-sidebar-icon-github a:before {
.infobox.geography .mergedrow th {
mask-image: url( https://media.starcitizen.tools/8/85/Github_-_Simple_Icons.svg );
border: 0;
padding: 0 0.6em 0.2em 0.6em;
}
}


.infobox.geography .mergedbottomrow td,
#n-sidebar-icon-reddit a:before {
.infobox.geography .mergedbottomrow th {
mask-image: url( https://media.starcitizen.tools/e/e8/Reddit_-_Simple_Icons.svg );
border-top: 0;
border-bottom: 1px solid #a2a9b1;
padding: 0 0.6em 0.4em 0.6em;
}
}


.infobox.geography .maptable td,
/*
.infobox.geography .maptable th {
* Footer icons
* We use custom footer icons so we need to fine tune it
*/
#footer-icons a {
border: 0;
border: 0;
padding: 0;
padding: 0;
background: transparent;
opacity: var( --opacity-icon-base );
transition: opacity 250ms ease;
}
}


div.listenlist {
#footer-icons a:hover {
background: url("//upload.wikimedia.org/wikipedia/commons/4/47/Sound-icon.svg") no-repeat scroll 0 0 transparent;
opacity: var( --opacity-icon-base--hover );
background-size: 30px;
padding-left: 40px;
}
}


/* Fix for hieroglyphs specificity issue in infoboxes ([[phab:T43869]]) */
#footer-icons a:active {
table.mw-hiero-table td {
opacity: var( --opacity-icon-base--active );
vertical-align: middle;
}
}


/* Style rules for media list templates */
/* More space between icons */
/* TemplateStyles */
#footer-icons ul,
div.medialist {
#footer-icons li {
min-height: 50px;
gap: var( --space-md );
margin: 1em;
/* @noflip */
background-position: top left;
background-repeat: no-repeat;
}
div.medialist ul {
list-style-type: none;
list-style-image: none;
margin: 0;
}
div.medialist ul li {
padding-bottom: 0.5em;
}
div.medialist ul li li {
font-size: 91%;
padding-bottom: 0;
}
}


/* Messagebox templates */
#footer-icons img {
.messagebox {
width: auto;
border: 1px solid #a2a9b1;
height: 32px;
background-color: #f8f9fa;
width: 80%;
margin: 0 auto 1em auto;
padding: .2em;
}
.messagebox.merge {
border: 1px solid #c0b8cc;
background-color: #f0e5ff;
text-align: center;
}
.messagebox.cleanup {
border: 1px solid #9f9fff;
background-color: #efefff;
text-align: center;
}
.messagebox.standard-talk {
border: 1px solid #c0c090;
background-color: #f8eaba;
margin: 4px auto;
}
/* For old WikiProject banners inside banner shells. */
.mbox-inside .standard-talk,
.messagebox.nested-talk {
border: 1px solid #c0c090;
background-color: #f8eaba;
width: 100%;
margin: 2px 0;
padding: 2px;
}
.messagebox.small {
width: 238px;
font-size: 85%;
/* @noflip */
float: right;
clear: both;
/* @noflip */
margin: 0 0 1em 1em;
line-height: 1.25em;
}
.messagebox.small-talk {
width: 238px;
font-size: 85%;
/* @noflip */
float: right;
clear: both;
/* @noflip */
margin: 0 0 1em 1em;
line-height: 1.25em;
background-color: #F8EABA;
}
}


/* Cell sizes for ambox/tmbox/imbox/cmbox/ombox/fmbox/dmbox message boxes */
/* Divide footer links into two columns */
th.mbox-text, td.mbox-text {   /* The message body cell(s) */
#footer-places {
border: none;
column-count: 2;
/* @noflip */
padding: 0.25em 0.9em;    /* 0.9em left/right */
width: 100%;              /* Make all mboxes the same width regardless of text length */
}
td.mbox-image {                /* The left image cell */
border: none;
/* @noflip */
padding: 2px 0 2px 0.9em;  /* 0.9em left, 0px right */
text-align: center;
}
td.mbox-imageright {          /* The right image cell */
border: none;
/* @noflip */
padding: 2px 0.9em 2px 0;  /* 0px left, 0.9em right */
text-align: center;
}
td.mbox-empty-cell {          /* An empty narrow cell */
border: none;
padding: 0;
width: 1px;
}
}


/* Article message box styles */
/* Fix misalignment in Safari and Firefox when using two columns */
table.ambox {
#footer-places ul {
margin: 0 10%;                  /* 10% = Will not overlap with other elements */
display: initial;
border: 1px solid #a2a9b1;
/* @noflip */
border-left: 10px solid #36c;  /* Default "notice" blue */
background-color: #fbfbfb;
box-sizing: border-box;
}
table.ambox + table.ambox {     /* Single border between stacked boxes. */
margin-top: -1px;
}
.ambox th.mbox-text,
.ambox td.mbox-text {            /* The message body cell(s) */
padding: 0.25em 0.5em;      /* 0.5em left/right */
}
.ambox td.mbox-image {          /* The left image cell */
/* @noflip */
padding: 2px 0 2px 0.5em;    /* 0.5em left, 0px right */
}
.ambox td.mbox-imageright {      /* The right image cell */
/* @noflip */
padding: 2px 0.5em 2px 0;    /* 0px left, 0.5em right */
}
}


table.ambox-notice {
/* Darken the footer icon in light mode */
/* @noflip */
.skin-citizen-light #footer-icons a {
border-left: 10px solid #36c;      /* Blue */
filter: invert( 1 ) hue-rotate( 180deg );
}
table.ambox-speedy {
/* @noflip */
border-left: 10px solid #b32424;    /* Red */
background-color: #fee7e6;          /* Pink */
}
table.ambox-delete {
/* @noflip */
border-left: 10px solid #b32424;    /* Red */
}
table.ambox-content {
/* @noflip */
border-left: 10px solid #f28500;    /* Orange */
}
table.ambox-style {
/* @noflip */
border-left: 10px solid #fc3;      /* Yellow */
}
table.ambox-move {
/* @noflip */
border-left: 10px solid #9932cc;    /* Purple */
}
table.ambox-protection {
/* @noflip */
border-left: 10px solid #a2a9b1;   /* Gray-gold */
}
}


/* Image message box styles */
/*
table.imbox {
* Very important checkmark
margin: 4px 10%;
* Blue checkmark near wordmark
border-collapse: collapse;
*/
border: 3px solid #36c;    /* Default "notice" blue */
.mw-logo-wordmark {
background-color: #fbfbfb;
    display: flex;
box-sizing: border-box;
    align-items: center;
}
    gap: var( --space-sm );
.imbox .mbox-text .imbox {  /* For imboxes inside imbox-text cells. */
margin: 0 -0.5em;      /* 0.9 - 0.5 = 0.4em left/right.        */
display: block;        /* Fix for webkit to force 100% width.  */
}
.mbox-inside .imbox {      /* For imboxes inside other templates.  */
margin: 4px;
}
}


table.imbox-notice {
/* CookieWarning tweaks */
border: 3px solid #36c;      /* Blue */
.mw-cookiewarning-container {
}
max-width: 480px;
table.imbox-speedy {
border: 3px solid #b32424;    /* Red */
background-color: #fee7e6;    /* Pink */
}
table.imbox-delete {
border: 3px solid #b32424;    /* Red */
}
table.imbox-content {
border: 3px solid #f28500;    /* Orange */
}
table.imbox-style {
border: 3px solid #fc3;       /* Yellow */
}
table.imbox-move {
border: 3px solid #9932cc;    /* Purple */
}
table.imbox-protection {
border: 3px solid #a2a9b1;    /* Gray-gold */
}
table.imbox-license {
border: 3px solid #88a;      /* Dark gray */
background-color: #f7f8ff;    /* Light gray */
}
table.imbox-featured {
border: 3px solid #cba135;    /* Brown-gold */
}
}


/* Category message box styles */
.mw-cookiewarning-text {
table.cmbox {
gap: var(--space-xs);
margin: 3px 10%;
border-collapse: collapse;
border: 1px solid #a2a9b1;
background-color: #DFE8FF;    /* Default "notice" blue */
box-sizing: border-box;
}
}


table.cmbox-notice {
.mw-cookiewarning-text::before {
background-color: #D8E8FF;    /* Blue */
content: '🍪';
}
    font-size: 2rem;
table.cmbox-speedy {
margin-top: 4px;
margin-bottom: 4px;
border: 4px solid #b32424;    /* Red */
background-color: #FFDBDB;    /* Pink */
}
table.cmbox-delete {
background-color: #FFDBDB;    /* Red */
}
table.cmbox-content {
background-color: #FFE7CE;    /* Orange */
}
table.cmbox-style {
background-color: #FFF9DB;   /* Yellow */
}
table.cmbox-move {
background-color: #E4D8FF;   /* Purple */
}
table.cmbox-protection {
background-color: #EFEFE1;    /* Gray-gold */
}
}


/* Other pages message box styles */
/* hide on pageload to prevent FoUC */
table.ombox {
.client-js .mw-cookiewarning-container {
margin: 4px 10%;
opacity: 0;
border-collapse: collapse;
visibility: hidden;
border: 1px solid #a2a9b1;   /* Default "notice" gray */
transition: opacity 250ms ease, visibility 250ms ease;
background-color: #f8f9fa;
box-sizing: border-box;
}
}


table.ombox-notice {
/* citizen-animations-ready is added when scripts are loaded */
border: 1px solid #a2a9b1;    /* Gray */
.client-js.citizen-animations-ready .mw-cookiewarning-container {
}
opacity: 1;
table.ombox-speedy {
visibility: visible;
border: 2px solid #b32424;    /* Red */
background-color: #fee7e6;    /* Pink */
}
table.ombox-delete {
border: 2px solid #b32424;    /* Red */
}
table.ombox-content {
border: 1px solid #f28500;    /* Orange */
}
table.ombox-style {
border: 1px solid #fc3;      /* Yellow */
}
table.ombox-move {
border: 1px solid #9932cc;   /* Purple */
}
table.ombox-protection {
border: 2px solid #a2a9b1;   /* Gray-gold */
}
}


/* Talk page message box styles */
/* Site notice styles */
table.tmbox {
#scw-birthday {
margin: 4px 10%;
padding: var( --space-sm ) var( --space-md );
border-collapse: collapse;
background-color: var( --color-surface-2 );
border: 1px solid #c0c090;    /* Default "notice" gray-brown */
font-size: var( --font-size-small );
background-color: #f8eaba;
font-weight: var( --font-weight-semibold );
min-width: 80%;
box-sizing: border-box;
}
.tmbox.mbox-small {
min-width: 0;                /* reset the min-width of tmbox above        */
}
.mediawiki .mbox-inside .tmbox { /* For tmboxes inside other templates. The "mediawiki" class ensures that */
margin: 2px 0;              /* this declaration overrides other styles (including mbox-small above)  */
width: 100%;                /* For Safari and Opera */
}
.mbox-inside .tmbox.mbox-small { /* "small" tmboxes should not be small when  */
line-height: 1.5em;         /* also "nested", so reset styles that are  */
font-size: 100%;            /* set in "mbox-small" above.                */
}
 
table.tmbox-speedy {
border: 2px solid #b32424;    /* Red */
background-color: #fee7e6;   /* Pink */
}
table.tmbox-delete {
border: 2px solid #b32424;    /* Red */
}
table.tmbox-content {
border: 2px solid #f28500;    /* Orange */
}
table.tmbox-style {
border: 2px solid #fc3;      /* Yellow */
}
table.tmbox-move {
border: 2px solid #9932cc;    /* Purple */
}
table.tmbox-protection,
table.tmbox-notice {
border: 1px solid #c0c090;   /* Gray-brown */
}
}


/* Disambig and set index box styles */
#scw-birthday-canvas {
table.dmbox {
position: absolute;
clear: both;
inset: 0;
margin: 0.9em 1em;
border-top: 1px solid #ccc;
border-bottom: 1px solid #ccc;
background-color: transparent;
}
 
/* Footer and header message box styles */
table.fmbox {
clear: both;
margin: 0.2em 0;
width: 100%;
width: 100%;
border: 1px solid #a2a9b1;
height: 100%;
background-color: #f8f9fa;    /* Default "system" gray */
box-sizing: border-box;
}
table.fmbox-system {
background-color: #f8f9fa;
}
table.fmbox-warning {
border: 1px solid #bb7070;  /* Dark pink */
background-color: #ffdbdb;  /* Pink */
}
table.fmbox-editnotice {
background-color: transparent;
}
/* Div based "warning" style fmbox messages. */
div.mw-warning-with-logexcerpt,
div.mw-lag-warn-high,
div.mw-cascadeprotectedwarning,
div#mw-protect-cascadeon,
div.titleblacklist-warning,
div.locked-warning {
clear: both;
margin: 0.2em 0;
border: 1px solid #bb7070;
background-color: #ffdbdb;
padding: 0.25em 0.9em;
box-sizing: border-box;
}
}


/* These mbox-small classes must be placed after all other
/* Full-width for pledge vehicle list page */
  ambox/tmbox/ombox etc classes. "html body.mediawiki" is so
.page-List_of_pledge_vehicles {
  they override "table.ambox + table.ambox" above. */
    --width-layout: 100vw;
html body.mediawiki .mbox-small {   /* For the "small=yes" option. */
/* @noflip */
clear: right;
/* @noflip */
float: right;
/* @noflip */
margin: 4px 0 4px 1em;
box-sizing: border-box;
width: 238px;
font-size: 88%;
line-height: 1.25em;
}
html body.mediawiki .mbox-small-left {  /* For the "small=left" option. */
/* @noflip */
margin: 4px 1em 4px 0;
box-sizing: border-box;
overflow: hidden;
width: 238px;
border-collapse: collapse;
font-size: 88%;
line-height: 1.25em;
}
}


/* Style for compact ambox */
/* Alternative theme */
/* Hide the images */
/*
.compact-ambox table .mbox-image,
:root {
.compact-ambox table .mbox-imageright,
    --font-family-citizen-base: monospace;
.compact-ambox table .mbox-empty-cell {
    --font-size-base: 0.875rem;
display: none;
    --color-primary__h: 30;
}
    --border-radius-base: 0;
/* Remove borders, backgrounds, padding, etc. */
    --border-color-base: hsla( var( --color-primary__h ), 85%, 65%, 25% ) !important;
.compact-ambox table.ambox {
    letter-spacing: -0.025em;
border: none;
border-collapse: collapse;
background-color: transparent;
margin: 0 0 0 1.6em !important;
padding: 0 !important;
width: auto;
display: block;
}
body.mediawiki .compact-ambox table.mbox-small-left {
font-size: 100%;
width: auto;
margin: 0;
}
/* Style the text cell as a list item and remove its padding */
.compact-ambox table .mbox-text {
padding: 0 !important;
margin: 0 !important;
}
.compact-ambox table .mbox-text-span {
display: list-item;
line-height: 1.5em;
list-style-type: square;
list-style-image: url(/w/skins/MonoBook/resources/images/bullet.gif);
}
.skin-vector .compact-ambox table .mbox-text-span {
list-style-type: disc;
list-style-image: url(/w/skins/Vector/images/bullet-icon.svg);
list-style-image: url(/w/skins/Vector/images/bullet-icon.png)\9;
}
/* Allow for hiding text in compact form */
.compact-ambox .hide-when-compact {
display: none;
}
}


/* For template documentation */
.mw-logo.citizen-header__button:after {
/* TemplateStyles */
    content: "🎃";
.template-documentation {
    position: absolute;
clear: both;
    left: 0;
margin: 1em 0 0 0;
border: 1px solid #a2a9b1;
background-color: #ecfcf4;
padding: 1em;
}
}
*/


.floatright {
/* Verified badge */
     margin: 0 0 0.5em 0.5em;
/*
     clear: right;
.mw-logo-wordmark:after {
     float: right;
content: "";
    width: 1em;
     height: 1em;
     display: block;
     background-image: url( https://media.starcitizen.tools/5/5f/SCW-Verified.svg );
}
}
*/


.floatleft {
/* HACK: Hide UploadWizard personal purpose option */
    margin: 0 0.5em 0.5em 0;
.mwe-upwiz-deed-purpose > label:last-child {
    float: left;
     display: none !important;
     clear: left;
}
}

Revision as of 08:19, 11 March 2025

/*
 * Star Citizen Wiki
 * This stylesheet only contains site-wide styles.
 * For template styles, check the specific template documentation.
*/

/* Adjust primary color */
:root {
	--color-progressive-oklch__h: 230;
	--color-progressive-hsl__h: 205;
}

/* Adjust contrast since we changed primary color */
:root.skin-citizen-dark {
	--color-primary__l: 56%;
}

h1,
h2,
h3,
h4,
h5,
h6,
.mw-logo-wordmark {
	font-weight: var( --font-weight-medium );
	letter-spacing: 0.0125em;
}

/* Align icon opacity with skin default */
.mw-logo-icon {
	opacity: var( --opacity-icon-base );
	filter: var( --filter-invert );
}

/*
 * Menu
 * Rich format menu to have more hierarchy
*/
/* Remove bottom spacing as it is handled in footer portlet */
.citizen-drawer__menu {
	margin-bottom: 0;
	padding-bottom: 0;
}

.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;
}

.mw-portlet-External .citizen-menu__heading {
	display: none;
}

.mw-portlet-External ul {
	display: flex;
	overflow: auto;
}

.mw-portlet-External .mw-list-item a {
	gap: 0;
}

/* Label */
.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-subtle ) !important;
}

/* Icons */
.citizen-drawer__menu [id^="n-sidebar-icon-"] a {
	font-size: 0;
    content-visibility: auto;

}

.citizen-drawer__menu [id^="n-sidebar-icon-"] a:before {
	display: block;
    content: "";
    width: var( --size-icon );
    height: var( --size-icon );
    background-color: currentColor;
	mask-size: contain;
	mask-repeat: no-repeat;
	mask-position: center;
}

#n-sidebar-icon-discord a:before {
	mask-image: url( https://media.starcitizen.tools/7/77/Discord_-_Simple_Icons.svg );
}

#n-sidebar-icon-twitter a:before {
	mask-image: url( https://media.starcitizen.tools/6/6a/Twitter_-_Simple_Icons.svg );
}

#n-sidebar-icon-mastodon a:before {
	mask-image: url( https://media.starcitizen.tools/d/de/Mastodon_-_Simple_Icons.svg );
}

#n-sidebar-icon-threads a:before {
	mask-image: url( https://media.starcitizen.tools/9/9b/Threads_-_Simple_Icons.svg );
}

#n-sidebar-icon-bluesky a:before {
	mask-image: url( https://media.starcitizen.tools/8/8b/Bluesky_-_Simple_Icons.svg );
}

#n-sidebar-icon-patreon a:before {
	mask-image: url( https://media.starcitizen.tools/e/e9/Patreon_-_Simple_Icons.svg );
}

#n-sidebar-icon-kofi a:before {
	mask-image: url( https://media.starcitizen.tools/4/48/Kofi_-_Simple_Icons.svg );
}

#n-sidebar-icon-github a:before {
	mask-image: url( https://media.starcitizen.tools/8/85/Github_-_Simple_Icons.svg );
}

#n-sidebar-icon-reddit a:before {
	mask-image: url( https://media.starcitizen.tools/e/e8/Reddit_-_Simple_Icons.svg );
}

/*
 * Footer icons
 * We use custom footer icons so we need to fine tune it
*/
#footer-icons a {
	border: 0;
	padding: 0;
	background: transparent;
	opacity: var( --opacity-icon-base );
	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 );
}

/*
 * Very important checkmark
 * Blue checkmark near wordmark
*/
.mw-logo-wordmark {
    display: flex;
    align-items: center;
    gap: var( --space-sm );
}

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

.mw-cookiewarning-text {
	gap: var(--space-xs);
}

.mw-cookiewarning-text::before {
	content: '🍪';
    font-size: 2rem;
}

/* hide on pageload to prevent FoUC */
.client-js .mw-cookiewarning-container {
	opacity: 0;
	visibility: hidden;
	transition: opacity 250ms ease, visibility 250ms ease;
}

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

/* Site notice styles */
#scw-birthday {
	padding: var( --space-sm ) var( --space-md );
	background-color: var( --color-surface-2 );
	font-size: var( --font-size-small );
	font-weight: var( --font-weight-semibold );
}

#scw-birthday-canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

/* Full-width for pledge vehicle list page */
.page-List_of_pledge_vehicles {
    --width-layout: 100vw;
}

/* Alternative theme */
/*
:root {
    --font-family-citizen-base: monospace;
    --font-size-base: 0.875rem;
    --color-primary__h: 30;
    --border-radius-base: 0;
    --border-color-base: hsla( var( --color-primary__h ), 85%, 65%, 25% ) !important;
    letter-spacing: -0.025em;
}

.mw-logo.citizen-header__button:after {
    content: "🎃";
    position: absolute;
    left: 0;
}
*/

/* Verified badge */
/*
.mw-logo-wordmark:after {
	content: "";
    width: 1em;
    height: 1em;
    display: block;
    background-image: url( https://media.starcitizen.tools/5/5f/SCW-Verified.svg );
}
*/

/* HACK: Hide UploadWizard personal purpose option */
.mwe-upwiz-deed-purpose > label:last-child {
    display: none !important;
}