MediaWiki:Common.css: Difference between revisions
Appearance
Lighter wordmark shadow |
Header wordmark visible in night mode |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
/* RuneBR look | /* RuneBR look: the same style as the landing page (site/index.html at playrunebr.com). Neutral | ||
dark grey, system font, blue links, a blue primary button and thin grey borders. Everyone is in | |||
Vector's night mode (LocalSettings.php sets it as the default); the values below replace its | Vector's night mode (LocalSettings.php sets it as the default); the values below replace its | ||
colours. Pages that never load site CSS (login, preferences) keep Vector's own dark palette. */ | colours. Pages that never load site CSS (login, preferences) keep Vector's own dark palette. */ | ||
html.skin-theme-clientpref-night { | html.skin-theme-clientpref-night { | ||
--background-color-base: # | --background-color-base: #1b1b1b; | ||
--background-color-neutral: # | --background-color-neutral: #2c2c2c; | ||
--background-color-neutral-subtle: # | --background-color-neutral-subtle: #242424; | ||
--background-color-interactive: # | --background-color-interactive: #2c2c2c; | ||
--background-color-interactive-subtle: # | --background-color-interactive-subtle: #242424; | ||
--background-color-progressive: #2f6fd6; | |||
--background-color-progressive: # | --background-color-progressive--hover: #3b7be2; | ||
--background-color-progressive--hover: # | --background-color-progressive--active: #2861bd; | ||
--background-color-progressive--active: # | --background-color-progressive--focus: #2f6fd6; | ||
--background-color-progressive--focus: # | --background-color-progressive-subtle: #1f2a3d; | ||
--background-color-progressive-subtle: # | --color-base: #e6e6e6; | ||
--color-emphasized: #f5f5f5; | |||
--color-base: # | --color-subtle: #9a9a9a; | ||
--color-emphasized: # | --color-base--subtle: #9a9a9a; | ||
--color-subtle: # | --color-progressive: #8ab4f8; | ||
--color-base--subtle: # | --color-progressive--hover: #a8c7fa; | ||
--color-progressive--active: #6f9ef0; | |||
--color-progressive: # | --color-visited: #b39ddb; | ||
--color-progressive--hover: # | --border-color-base: #3a3a3a; | ||
--color-progressive--active: # | --border-color-subtle: #3a3a3a; | ||
--color-visited: # | --border-color-muted: #303030; | ||
--border-color-interactive: #555; | |||
--border-color-progressive: #2f6fd6; | |||
--border-color-base: # | --border-color-progressive--focus: #8ab4f8; | ||
--border-color-subtle: # | --box-shadow-color-progressive--focus: #8ab4f8; | ||
--border-color-muted: # | |||
--border-color-interactive: # | |||
--border-color-progressive | |||
--border-color-progressive--focus: # | |||
--box-shadow-color-progressive--focus: # | |||
} | } | ||
| Line 46: | Line 37: | ||
} | } | ||
/* | /* The landing page's type: system font everywhere, headings bold rather than serif. */ | ||
body, | |||
.mw-logo-wordmark, | .mw-logo-wordmark, | ||
.mw-body h1.firstHeading, | .mw-body h1.firstHeading, | ||
.mw-body-content h1, | .mw-body-content h1, | ||
.mw-body-content h2 { | .mw-body-content h2 { | ||
font-family: | font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; | ||
} | |||
/* Vector inverts the logo in night mode (skin-invert); the wordmark is already light text. */ | |||
html.skin-theme-clientpref-night .mw-logo-container.skin-invert { | |||
filter: none; | |||
} | } | ||
.mw-logo-wordmark { | .mw-logo-wordmark { | ||
color: # | color: #e6e6e6; | ||
font-size: 1. | font-size: 1.25em; | ||
font-weight: 700; | |||
white-space: nowrap; | |||
} | } | ||
.mw-body h1.firstHeading, | .mw-body h1.firstHeading, | ||
.mw-body-content h1, | .mw-body-content h1, | ||
.mw-body-content h2 { | .mw-body-content h2 { | ||
font-weight: 700; | |||
} | } | ||
/* ---- Main Page | /* ---- Main Page: laid out like the landing page ------------------------------------------------ */ | ||
.page-Main_Page #firstHeading { | .page-Main_Page #firstHeading { | ||
display: none; | display: none; | ||
} | |||
.page-Main_Page .mw-body-content h2 { | |||
font-size: 1.1rem; | |||
border-bottom: 0; | |||
border-top: 1px solid #3a3a3a; | |||
padding-top: 16px; | |||
margin: 20px 0 8px; | |||
} | } | ||
.rbr-head { | |||
.rbr- | margin: 8px 0 24px; | ||
margin: 0 | |||
} | } | ||
.rbr- | .rbr-title { | ||
font-size: 2rem; | |||
font-weight: 700; | |||
height: | line-height: 1.2; | ||
color: #e6e6e6; | |||
} | } | ||
.rbr- | .rbr-tagline { | ||
color: #9a9a9a; | |||
margin: 4px 0 0; | |||
color: # | |||
} | } | ||
.rbr- | .rbr-cta { | ||
display: flex; | |||
flex-wrap: wrap; | |||
gap: 10px; | |||
margin: 16px 0 0; | |||
margin: | |||
} | } | ||
.mw-parser-output .rbr-btn a, | .mw-parser-output .rbr-btn a, | ||
.mw-parser-output .rbr-btn a.external { | .mw-parser-output .rbr-btn a.external { | ||
display: inline-block; | display: inline-block; | ||
padding: 10px 18px; | |||
padding: | border: 1px solid #3a3a3a; | ||
border: 1px solid # | border-radius: 4px; | ||
background: none; | |||
color: #e6e6e6; | |||
text-decoration: none; | text-decoration: none; | ||
} | } | ||
| Line 122: | Line 107: | ||
} | } | ||
.mw-parser-output .rbr-btn a:hover { | .mw-parser-output .rbr-btn a:hover { | ||
filter: brightness( 1.1 ); | |||
text-decoration: none; | text-decoration: none; | ||
} | } | ||
.mw-parser-output .rbr-btn-primary a, | .mw-parser-output .rbr-btn-primary a, | ||
.mw-parser-output .rbr-btn-primary a.external { | .mw-parser-output .rbr-btn-primary a.external { | ||
background: # | background: #2f6fd6; | ||
border-color: # | border-color: #2f6fd6; | ||
color: # | color: #fff; | ||
} | } | ||
/* The data page cards. */ | /* The data page cards: the landing page's Player of the Week tile. */ | ||
.rbr-cards { | .rbr-cards { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat( auto-fill, minmax( | grid-template-columns: repeat( auto-fill, minmax( 200px, 1fr ) ); | ||
gap: | gap: 10px; | ||
margin: 0 | margin: 8px 0 12px; | ||
} | } | ||
.rbr-card { | .rbr-card { | ||
background: # | background: #242424; | ||
border: 1px solid # | border: 1px solid #3a3a3a; | ||
border- | border-radius: 4px; | ||
padding: 12px | padding: 10px 12px; | ||
} | } | ||
.rbr-card-title { | .rbr-card-title { | ||
font-weight: 600; | |||
font-weight: | |||
} | } | ||
.rbr-card-text { | .rbr-card-text { | ||
color: # | color: #9a9a9a; | ||
font-size: 0. | font-size: 0.85rem; | ||
} | } | ||
/* Skill links as | /* Skill links as small bordered buttons. */ | ||
.mw-parser-output .rbr-chips a { | .mw-parser-output .rbr-chips a { | ||
display: inline-block; | display: inline-block; | ||
margin: 0 4px 6px 0; | margin: 0 4px 6px 0; | ||
padding: | padding: 4px 10px; | ||
border: 1px solid #3a3a3a; | |||
border: 1px solid # | border-radius: 4px; | ||
border-radius: | |||
} | } | ||
.mw-parser-output .rbr-chips a:hover { | .mw-parser-output .rbr-chips a:hover { | ||
border-color: # | border-color: #555; | ||
text-decoration: none; | text-decoration: none; | ||
} | } | ||
Latest revision as of 19:33, 27 September 2026
/* RuneBR look: the same style as the landing page (site/index.html at playrunebr.com). Neutral
dark grey, system font, blue links, a blue primary button and thin grey borders. Everyone is in
Vector's night mode (LocalSettings.php sets it as the default); the values below replace its
colours. Pages that never load site CSS (login, preferences) keep Vector's own dark palette. */
html.skin-theme-clientpref-night {
--background-color-base: #1b1b1b;
--background-color-neutral: #2c2c2c;
--background-color-neutral-subtle: #242424;
--background-color-interactive: #2c2c2c;
--background-color-interactive-subtle: #242424;
--background-color-progressive: #2f6fd6;
--background-color-progressive--hover: #3b7be2;
--background-color-progressive--active: #2861bd;
--background-color-progressive--focus: #2f6fd6;
--background-color-progressive-subtle: #1f2a3d;
--color-base: #e6e6e6;
--color-emphasized: #f5f5f5;
--color-subtle: #9a9a9a;
--color-base--subtle: #9a9a9a;
--color-progressive: #8ab4f8;
--color-progressive--hover: #a8c7fa;
--color-progressive--active: #6f9ef0;
--color-visited: #b39ddb;
--border-color-base: #3a3a3a;
--border-color-subtle: #3a3a3a;
--border-color-muted: #303030;
--border-color-interactive: #555;
--border-color-progressive: #2f6fd6;
--border-color-progressive--focus: #8ab4f8;
--box-shadow-color-progressive--focus: #8ab4f8;
}
/* The palette is the look, so the day/night switch in the Appearance menu is hidden. */
#skin-client-prefs-skin-theme {
display: none;
}
/* The landing page's type: system font everywhere, headings bold rather than serif. */
body,
.mw-logo-wordmark,
.mw-body h1.firstHeading,
.mw-body-content h1,
.mw-body-content h2 {
font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}
/* Vector inverts the logo in night mode (skin-invert); the wordmark is already light text. */
html.skin-theme-clientpref-night .mw-logo-container.skin-invert {
filter: none;
}
.mw-logo-wordmark {
color: #e6e6e6;
font-size: 1.25em;
font-weight: 700;
white-space: nowrap;
}
.mw-body h1.firstHeading,
.mw-body-content h1,
.mw-body-content h2 {
font-weight: 700;
}
/* ---- Main Page: laid out like the landing page ------------------------------------------------ */
.page-Main_Page #firstHeading {
display: none;
}
.page-Main_Page .mw-body-content h2 {
font-size: 1.1rem;
border-bottom: 0;
border-top: 1px solid #3a3a3a;
padding-top: 16px;
margin: 20px 0 8px;
}
.rbr-head {
margin: 8px 0 24px;
}
.rbr-title {
font-size: 2rem;
font-weight: 700;
line-height: 1.2;
color: #e6e6e6;
}
.rbr-tagline {
color: #9a9a9a;
margin: 4px 0 0;
}
.rbr-cta {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin: 16px 0 0;
}
.mw-parser-output .rbr-btn a,
.mw-parser-output .rbr-btn a.external {
display: inline-block;
padding: 10px 18px;
border: 1px solid #3a3a3a;
border-radius: 4px;
background: none;
color: #e6e6e6;
text-decoration: none;
}
.mw-parser-output .rbr-btn a.external::after {
content: none;
display: none;
}
.mw-parser-output .rbr-btn a:hover {
filter: brightness( 1.1 );
text-decoration: none;
}
.mw-parser-output .rbr-btn-primary a,
.mw-parser-output .rbr-btn-primary a.external {
background: #2f6fd6;
border-color: #2f6fd6;
color: #fff;
}
/* The data page cards: the landing page's Player of the Week tile. */
.rbr-cards {
display: grid;
grid-template-columns: repeat( auto-fill, minmax( 200px, 1fr ) );
gap: 10px;
margin: 8px 0 12px;
}
.rbr-card {
background: #242424;
border: 1px solid #3a3a3a;
border-radius: 4px;
padding: 10px 12px;
}
.rbr-card-title {
font-weight: 600;
}
.rbr-card-text {
color: #9a9a9a;
font-size: 0.85rem;
}
/* Skill links as small bordered buttons. */
.mw-parser-output .rbr-chips a {
display: inline-block;
margin: 0 4px 6px 0;
padding: 4px 10px;
border: 1px solid #3a3a3a;
border-radius: 4px;
}
.mw-parser-output .rbr-chips a:hover {
border-color: #555;
text-decoration: none;
}