Jump to content

MediaWiki:Common.css: Difference between revisions

From RuneBR Wiki
RuneBR look: brand palette, wordmark, Main Page components
 
Header wordmark visible in night mode
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* RuneBR look. The palette is the brand's (client/public/brand/make-banners.ps1): dark brown
/* RuneBR look: the same style as the landing page (site/index.html at playrunebr.com). Neutral
   #2b2620, border #675a4a, gold #f0d9a0, tan #c7ae7e, headings in Arial Black. Everyone is in
   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: #2b2620;
--background-color-base: #1b1b1b;
--background-color-neutral: #3a332b;
--background-color-neutral: #2c2c2c;
--background-color-neutral-subtle: #332d26;
--background-color-neutral-subtle: #242424;
--background-color-interactive: #3a332b;
--background-color-interactive: #2c2c2c;
--background-color-interactive-subtle: #332d26;
--background-color-interactive-subtle: #242424;
--background-color-inverted: #f0d9a0;
--background-color-progressive: #2f6fd6;
--background-color-progressive: #d8b86e;
--background-color-progressive--hover: #3b7be2;
--background-color-progressive--hover: #f0d9a0;
--background-color-progressive--active: #2861bd;
--background-color-progressive--active: #c7ae7e;
--background-color-progressive--focus: #2f6fd6;
--background-color-progressive--focus: #f0d9a0;
--background-color-progressive-subtle: #1f2a3d;
--background-color-progressive-subtle: #463c2c;
--color-base: #e6e6e6;
--background-color-notice-subtle: #3a332b;
--color-emphasized: #f5f5f5;
--color-base: #e8dfcb;
--color-subtle: #9a9a9a;
--color-emphasized: #f6efdd;
--color-base--subtle: #9a9a9a;
--color-subtle: #b5a78c;
--color-progressive: #8ab4f8;
--color-base--subtle: #b5a78c;
--color-progressive--hover: #a8c7fa;
--color-inverted: #2b2620;
--color-progressive--active: #6f9ef0;
--color-progressive: #f0d9a0;
--color-visited: #b39ddb;
--color-progressive--hover: #fbe9bf;
--border-color-base: #3a3a3a;
--color-progressive--active: #c7ae7e;
--border-color-subtle: #3a3a3a;
--color-visited: #c7ae7e;
--border-color-muted: #303030;
--color-destructive: #f08a6c;
--border-color-interactive: #555;
--color-notice: #f6efdd;
--border-color-progressive: #2f6fd6;
--border-color-base: #675a4a;
--border-color-progressive--focus: #8ab4f8;
--border-color-subtle: #54493c;
--box-shadow-color-progressive--focus: #8ab4f8;
--border-color-muted: #423a30;
--border-color-interactive: #8a7a64;
--border-color-inverted: #2b2620;
--border-color-progressive: #d8b86e;
--border-color-progressive--hover: #f0d9a0;
--border-color-progressive--active: #c7ae7e;
--border-color-progressive--focus: #f0d9a0;
--border-color-notice: #675a4a;
--box-shadow-color-progressive--focus: #f0d9a0;
}
}


Line 46: Line 37:
}
}


/* Wordmark and headings in the brand's heavy type. */
/* 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: 'Arial Black', 'Arial Bold', Gadget, sans-serif;
font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
font-weight: 900;
}
/* 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: #f0d9a0;
color: #e6e6e6;
font-size: 1.4em;
font-size: 1.25em;
text-shadow: 2px 2px 0 #000;
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 {
color: #f0d9a0;
font-weight: 700;
border-bottom-color: #675a4a;
}
.mw-body-content h3 {
color: #c7ae7e;
}
}


/* ---- 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;
}
}


/* The banner: the forum banner's layout, the R icon beside the wordmark and tagline. */
.rbr-head {
.rbr-hero {
margin: 8px 0 24px;
display: flex;
align-items: center;
gap: 28px;
background: #2b2620;
border: 3px solid #675a4a;
padding: 24px 32px;
margin: 0 0 1.2em;
}
}
.rbr-hero-icon {
.rbr-title {
flex: none;
font-size: 2rem;
width: 128px;
font-weight: 700;
height: 128px;
line-height: 1.2;
background: url(/runebr-assets/icon-192.png) center / contain no-repeat;
color: #e6e6e6;
}
}
.rbr-hero-title {
.rbr-tagline {
font-family: 'Arial Black', 'Arial Bold', Gadget, sans-serif;
color: #9a9a9a;
font-weight: 900;
margin: 4px 0 0;
font-size: 64px;
line-height: 1;
color: #f0d9a0;
text-shadow: 3px 3px 0 #000;
}
}
.rbr-hero-tag {
.rbr-cta {
font-family: 'Arial Black', 'Arial Bold', Gadget, sans-serif;
display: flex;
font-weight: 900;
flex-wrap: wrap;
font-size: 15px;
gap: 10px;
letter-spacing: 3px;
margin: 16px 0 0;
color: #c7ae7e;
margin: 10px 0 16px;
}
}
.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;
margin: 0 6px 6px 0;
padding: 10px 18px;
padding: 6px 16px;
border: 1px solid #3a3a3a;
border: 1px solid #675a4a;
border-radius: 4px;
background: #3a332b;
background: none;
color: #f0d9a0;
color: #e6e6e6;
font-weight: bold;
text-decoration: none;
text-decoration: none;
}
}
Line 122: Line 107:
}
}
.mw-parser-output .rbr-btn a:hover {
.mw-parser-output .rbr-btn a:hover {
background: #463c2c;
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: #f0d9a0;
background: #2f6fd6;
border-color: #f0d9a0;
border-color: #2f6fd6;
color: #2b2620;
color: #fff;
}
.mw-parser-output .rbr-btn-primary a:hover {
background: #fbe9bf;
}
}


/* 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( 210px, 1fr ) );
grid-template-columns: repeat( auto-fill, minmax( 200px, 1fr ) );
gap: 12px;
gap: 10px;
margin: 0.6em 0 1em;
margin: 8px 0 12px;
}
}
.rbr-card {
.rbr-card {
background: #332d26;
background: #242424;
border: 1px solid #675a4a;
border: 1px solid #3a3a3a;
border-top: 3px solid #c7ae7e;
border-radius: 4px;
padding: 12px 14px;
padding: 10px 12px;
}
}
.rbr-card-title {
.rbr-card-title {
font-family: 'Arial Black', 'Arial Bold', Gadget, sans-serif;
font-weight: 600;
font-weight: 900;
font-size: 1.15em;
margin-bottom: 4px;
}
}
.rbr-card-text {
.rbr-card-text {
color: #b5a78c;
color: #9a9a9a;
font-size: 0.92em;
font-size: 0.85rem;
}
}


/* Skill links as chips. */
/* 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: 3px 10px;
padding: 4px 10px;
background: #332d26;
border: 1px solid #3a3a3a;
border: 1px solid #54493c;
border-radius: 4px;
border-radius: 3px;
}
}
.mw-parser-output .rbr-chips a:hover {
.mw-parser-output .rbr-chips a:hover {
border-color: #c7ae7e;
border-color: #555;
text-decoration: none;
text-decoration: none;
}
@media ( max-width: 640px ) {
.rbr-hero {
flex-direction: column;
text-align: center;
gap: 12px;
padding: 20px 16px;
}
.rbr-hero-icon {
width: 88px;
height: 88px;
}
.rbr-hero-title {
font-size: 44px;
}
.rbr-hero-tag {
font-size: 12px;
letter-spacing: 2px;
}
}
}

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