(Created page with "→CSS DIRECTORY [ 1. Imports [ 2. Root Variables [ 3. Javascript Mods [ 4. Template Mods [ 5. Sidebar Adjustments [ 6. Header/Footer Adjustments [ 7. Fixes [ 8. Forums [ 9. Overrides ============================================================================================: →Imports ============================================================================================: →latin-ext: @font-face { font-family: 'Kreon'; font-style: normal; font-wei...") |
No edit summary Tag: Reverted |
||
Line 120: | Line 120: | ||
} | } | ||
/* | /* | ||
* Star Citizen Wiki | |||
* This stylesheet only contains site-wide styles. | |||
* For template styles, check the specific template documentation. | |||
*/ | |||
/* Adjust primary color */ | |||
:root { | |||
--color-primary__h: 205; | |||
/* | |||
} | } | ||
/* Adjust contrast since we changed primary color */ | |||
:root.skin-citizen-dark { | |||
--color-primary__l: 56%; | |||
/* | |||
} | } | ||
/* | /* Align icon opacity with skin default */ | ||
.mw-logo-icon { | |||
opacity: var( --opacity-icon-base ); | |||
} | } | ||
/* | /* | ||
* Menu | |||
* Rich format menu to have more hierarchy | |||
*/ | |||
.mw-portlet-External { | .mw-portlet-External { | ||
margin-top: var( --space-md ); | margin-top: var( --space-md ); | ||
Line 289: | Line 152: | ||
grid-column: 1 / -1; | grid-column: 1 / -1; | ||
white-space: nowrap; | white-space: nowrap; | ||
} | } | ||
Line 308: | Line 157: | ||
display: none; | display: none; | ||
} | } | ||
.mw-portlet-External ul { | .mw-portlet-External ul { | ||
display: flex; | display: flex; | ||
overflow: auto; | overflow: auto; | ||
} | } | ||
.mw-portlet-External .mw-list-item a { | .mw-portlet-External .mw-list-item a { | ||
gap: 0; | gap: 0; | ||
} | } | ||
Line 361: | Line 198: | ||
} | } | ||
#n-sidebar-icon-discord a:before { | |||
#n-sidebar-icon-discord a:before { | background-image: url( https://media.starcitizen.tools/7/77/Discord_-_Simple_Icons.svg ) | ||
} | } | ||
#n-sidebar-icon-twitter a:before { | |||
background-image: url( https://media.starcitizen.tools/6/6a/Twitter_-_Simple_Icons.svg ) | |||
} | } | ||
#n-sidebar-icon-mastodon a:before { | |||
background-image: url( https://media.starcitizen.tools/d/de/Mastodon_-_Simple_Icons.svg ) | |||
. | |||
} | } | ||
#n-sidebar-icon-threads a:before { | |||
# | background-image: url( https://media.starcitizen.tools/9/9b/Threads_-_Simple_Icons.svg ) | ||
} | } | ||
#n-sidebar-icon-patreon a:before { | |||
background-image: url( https://media.starcitizen.tools/e/e9/Patreon_-_Simple_Icons.svg ) | |||
} | } | ||
#n-sidebar-icon-kofi a:before { | |||
background-image: url( https://media.starcitizen.tools/4/48/Kofi_-_Simple_Icons.svg ) | |||
} | } | ||
#n-sidebar-icon-github a:before { | |||
background-image: url( https://media.starcitizen.tools/8/85/Github_-_Simple_Icons.svg ) | |||
} | } | ||
#n-sidebar-icon-reddit a:before { | |||
background-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 { | |||
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 ); | |||
} | } | ||
/* | /* 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 ); | |||
} | } | ||
/* | /* Lighten the icon in dark mode */ | ||
.skin-citizen-dark .mw-logo-icon { | |||
filter: invert( 1 ) hue-rotate( 180deg ); | |||
.mw-logo- | |||
} | } | ||
/* | /* Hide main page header */ | ||
.page-Star_Citizen_Wiki .mw-body-header { | |||
display: none; | |||
.page- | |||
.mw- | |||
} | } | ||
/* | /* | ||
. | * Very important checkmark | ||
* Blue checkmark near wordmark | |||
*/ | |||
.mw-logo-wordmark { | |||
display: flex; | |||
align-items: center; | |||
gap: var( --space-sm ); | |||
} | } | ||
. | .mw-logo-wordmark:after { | ||
content: ""; | |||
width: 1em; | |||
height: 1em; | |||
display: block; | |||
background-image: url( https://media.starcitizen.tools/5/5f/SCW-Verified.svg ); | |||
} | } |
Revision as of 22:40, 15 February 2024
/* CSS DIRECTORY
[ 1. Imports
[ 2. Root Variables
[ 3. Javascript Mods
[ 4. Template Mods
[ 5. Sidebar Adjustments
[ 6. Header/Footer Adjustments
[ 7. Fixes
[ 8. Forums
[ 9. Overrides
============================================================================================*/
/* Imports
============================================================================================ */
/* latin-ext */
@font-face {
font-family: 'Kreon';
font-style: normal;
font-weight: 300;
font-display: swap;
src: url(/hosted/fonts/t5t9IRIUKY-TFF_LW5lnMR3v2DnvPNiWcz8el2c.woff2) format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Kreon';
font-style: normal;
font-weight: 300;
font-display: swap;
src: url(/hosted/fonts/t5t9IRIUKY-TFF_LW5lnMR3v2DnvPNiWfT8e.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
font-family: 'Quicksand';
font-style: normal;
font-weight: 500;
font-display: swap;
src: url(/hosted/fonts/6xK-dSZaM9iE8KbpRA_LJ3z8mH9BOJvgkM0o58i-wi40.woff2) format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Quicksand';
font-style: normal;
font-weight: 500;
font-display: swap;
src: url(/hosted/fonts/6xK-dSZaM9iE8KbpRA_LJ3z8mH9BOJvgkM0o58a-wg.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
font-family: 'Rokkitt';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(/hosted/fonts/qFdb35qfgYFjGy5hukqqhw5XeRgdi1ryd6DCGb-3vA.woff2) format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Rokkitt';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(/hosted/fonts/qFdb35qfgYFjGy5hukqqhw5XeRgdi1ryd6DMGb8.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
font-family: 'Varela Round';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(/hosted/fonts/w8gdH283Tvk__Lua32TysjIfqcuPP9g.woff2) format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Varela Round';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(/hosted/fonts/w8gdH283Tvk__Lua32TysjIfp8uP.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* minecraft */
@font-face {
font-family: 'Minecraft';
src: url('/hosted/fonts/Minecraft.woff2') format('woff2'),
url('/hosted/fonts/Minecraft.woff') format('woff');
font-weight: normal;
font-style: normal;
font-display: swap;
}
/* ROOT VARIABLES
[ These are variables explicitly supported by the theme.
[ https://github.com/StarCitizenTools/mediawiki-skins-Citizen/wiki/Customizing-Citizen-styles
============================================================================================ */
/* Font replacements */
:root {
--font-family-base: 'Quicksand', sans-serif;
--font-family-alternate: 'Varela Round', monospace;
--font-family-serif: 'Kreon', serif;
}
/* Color replacements */
:root {
--background-color-overlay: rgba(255,255,255,0.80);
--color-surface-0: hsl(180, 11.1%, 98.2%);
--color-surface-2: hsl(0, 0%, 96.5%);
--background-color-warning: #fbf6e9;
}
:root.skin-citizen-dark {
--background-color-overlay: hsla(var(--color-primary__h) 20% 10% / 85%);
--background-color-warning: #323028;
}
/*
* Star Citizen Wiki
* This stylesheet only contains site-wide styles.
* For template styles, check the specific template documentation.
*/
/* Adjust primary color */
:root {
--color-primary__h: 205;
}
/* Adjust contrast since we changed primary color */
:root.skin-citizen-dark {
--color-primary__l: 56%;
}
/* Align icon opacity with skin default */
.mw-logo-icon {
opacity: var( --opacity-icon-base );
}
/*
* Menu
* Rich format menu to have more hierarchy
*/
.mw-portlet-External {
margin-top: var( --space-md );
padding-top: var( --space-sm );
border-top: 1px solid var( --border-color-base );
font-size: 0.8125rem;
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-base--subtle ) !important;
}
/* Icons */
.citizen-drawer__menu [id^="n-sidebar-icon-"] a {
font-size: 0;
}
.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 );
}
.skin-citizen-dark .citizen-drawer__menu [id^="n-sidebar-icon-"] a:before {
filter: invert( 1 );
}
#n-sidebar-icon-discord a:before {
background-image: url( https://media.starcitizen.tools/7/77/Discord_-_Simple_Icons.svg )
}
#n-sidebar-icon-twitter a:before {
background-image: url( https://media.starcitizen.tools/6/6a/Twitter_-_Simple_Icons.svg )
}
#n-sidebar-icon-mastodon a:before {
background-image: url( https://media.starcitizen.tools/d/de/Mastodon_-_Simple_Icons.svg )
}
#n-sidebar-icon-threads a:before {
background-image: url( https://media.starcitizen.tools/9/9b/Threads_-_Simple_Icons.svg )
}
#n-sidebar-icon-patreon a:before {
background-image: url( https://media.starcitizen.tools/e/e9/Patreon_-_Simple_Icons.svg )
}
#n-sidebar-icon-kofi a:before {
background-image: url( https://media.starcitizen.tools/4/48/Kofi_-_Simple_Icons.svg )
}
#n-sidebar-icon-github a:before {
background-image: url( https://media.starcitizen.tools/8/85/Github_-_Simple_Icons.svg )
}
#n-sidebar-icon-reddit a:before {
background-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 {
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 );
}
/* 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 );
}
/* Lighten the icon in dark mode */
.skin-citizen-dark .mw-logo-icon {
filter: invert( 1 ) hue-rotate( 180deg );
}
/* Hide main page header */
.page-Star_Citizen_Wiki .mw-body-header {
display: none;
}
/*
* Very important checkmark
* Blue checkmark near wordmark
*/
.mw-logo-wordmark {
display: flex;
align-items: center;
gap: var( --space-sm );
}
.mw-logo-wordmark:after {
content: "";
width: 1em;
height: 1em;
display: block;
background-image: url( https://media.starcitizen.tools/5/5f/SCW-Verified.svg );
}