MediaWiki:Timeless.css: Difference between revisions
No edit summary Tag: Manual revert |
No edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
/* ========================================================= | /* ========================================================= | ||
Bellingham Heritage Centre – Timeless skin branding | Bellingham Heritage Centre – Timeless skin branding | ||
FINAL SYNCED VERSION | |||
========================================================= */ | ========================================================= */ | ||
| Line 12: | Line 12: | ||
--bhc-sand: rgb(228,186,149); | --bhc-sand: rgb(228,186,149); | ||
/* | /* Brand colours */ | ||
--bhc-maroon: rgb(93, 8, 58); | --bhc-maroon: rgb(93, 8, 58); | ||
--bhc-gold: rgb(228, 186, 123); | --bhc-gold: rgb(228, 186, 123); | ||
--bhc-link: #005DB3; | --bhc-link: #005DB3; | ||
--bhc-text: #202020; | --bhc-text: #202020; | ||
/* Header | /* Header */ | ||
--bhc-header-bg: #ffffff; | --bhc-header-bg: #ffffff; | ||
--bhc-header-text: #202020; | --bhc-header-text: #202020; | ||
/* Fonts */ | /* Fonts */ | ||
| Line 34: | Line 28: | ||
--bhc-accent-font: "Satisfy", cursive; | --bhc-accent-font: "Satisfy", cursive; | ||
font-size: 18px; | |||
font-size: | |||
line-height: 1.65; | line-height: 1.65; | ||
background: #eaecf0; | |||
background: #eaecf0; | |||
} | } | ||
| Line 47: | Line 38: | ||
/* --------------------------------------------------------- | /* --------------------------------------------------------- | ||
Typography | |||
--------------------------------------------------------- */ | --------------------------------------------------------- */ | ||
| Line 58: | Line 49: | ||
body.skin-timeless a{ color: var(--bhc-link); } | body.skin-timeless a{ color: var(--bhc-link); } | ||
body.skin-timeless .mw-parser-output h1, | body.skin-timeless .mw-parser-output h1, | ||
| Line 66: | Line 56: | ||
letter-spacing: .02em; | letter-spacing: .02em; | ||
color: var(--bhc-maroon); | color: var(--bhc-maroon); | ||
} | } | ||
body.skin-timeless .mw-parser-output h2{ | body.skin-timeless .mw-parser-output h2{ | ||
border-bottom: 3px solid var(--bhc-sand); | border-bottom: 3px solid var(--bhc-sand); | ||
padding-bottom: .25rem; | padding-bottom: .25rem; | ||
} | } | ||
/* --------------------------------------------------------- | |||
Header container + bars | |||
--------------------------------------------------------- */ | |||
body.skin-timeless #mw-header-hack, | body.skin-timeless #mw-header-hack, | ||
body.skin-timeless #mw-header-nav-hack, | body.skin-timeless #mw-header-nav-hack, | ||
| Line 126: | Line 73: | ||
} | } | ||
body.skin-timeless #mw-header-container{ | body.skin-timeless #mw-header-container{ | ||
position: relative !important; | position: relative !important; | ||
background: var(--bhc-header-bg) | background: var(--bhc-header-bg) !important; | ||
overflow: visible !important; | overflow: visible !important; | ||
} | } | ||
/* Top bar | /* Top bar */ | ||
body.skin-timeless #mw-header-container::before{ | body.skin-timeless #mw-header-container::before{ | ||
content: ""; | content: ""; | ||
position: absolute; | position: absolute; | ||
inset: 0 0 auto 0; | |||
height: 20px; | height: 20px; | ||
background: linear-gradient( | background: linear-gradient( | ||
to bottom, | to bottom, | ||
var(--bhc | var(--bhc-olive) 0 25%, | ||
var(--bhc | var(--bhc-teal) 25% 100% | ||
); | ); | ||
} | } | ||
/* Bottom bar | /* Bottom bar */ | ||
body.skin-timeless #mw-header-container::after{ | body.skin-timeless #mw-header-container::after{ | ||
content: ""; | content: ""; | ||
position: absolute; | position: absolute; | ||
inset: auto 0 0 0; | |||
height: 20px; | height: 20px; | ||
background: linear-gradient( | background: linear-gradient( | ||
to bottom, | to bottom, | ||
var(--bhc- | var(--bhc-gold) 0 33%, | ||
var(--bhc | var(--bhc-maroon) 33% 100% | ||
); | ); | ||
} | } | ||
/* | /* --------------------------------------------------------- | ||
Header layout (FINAL) | |||
--------------------------------------------------------- */ | |||
( | |||
body.skin-timeless #mw-header{ | body.skin-timeless #mw-header{ | ||
display: grid; | |||
display: | grid-template-columns: 1fr auto; | ||
grid-template-rows: auto auto auto; | |||
column-gap: 1.5rem; | |||
gap: 1. | |||
padding: calc(20px + 14px) 0 calc(20px + 12px); | |||
padding | align-items: start; | ||
} | } | ||
/* | /* Title + strapline block */ | ||
body.skin-timeless | body.skin-timeless #p-logo-text{ | ||
grid-column: 1 / -1; | |||
max-width: 100%; | |||
width: 100% | |||
} | } | ||
/* | /* Search */ | ||
body.skin-timeless | body.skin-timeless #p-search{ | ||
grid-column: 2; | |||
grid-row: 2; | |||
max-width: 520px; | max-width: 520px; | ||
margin-left: auto; | margin-left: auto; | ||
} | } | ||
/* | /* User tools */ | ||
body.skin-timeless | body.skin-timeless #user-tools{ | ||
grid-column: 2; | |||
grid-row: 1; | |||
justify-self: end; | |||
} | } | ||
/* --------------------------------------------------------- | |||
Logo + title | |||
--------------------------------------------------------- */ | |||
body.skin-timeless #p-banner{ | |||
body.skin-timeless | |||
display: block; | display: block; | ||
background: url(/resources/assets/BHClogo.jpg) no-repeat left center / 96px 96px; | |||
padding-left: 118px; | |||
min-height: 96px; | |||
font-family: var(--bhc-heading-font) | font-family: var(--bhc-heading-font); | ||
font-size: 40px; | |||
font-weight: 700; | font-weight: 700; | ||
line-height: 1.05; | line-height: 1.05; | ||
color: var(--bhc-maroon); | |||
white-space: normal; | white-space: normal; | ||
} | } | ||
/* Strapline | /* Strapline */ | ||
body.skin-timeless .bhc-strapline{ | body.skin-timeless .bhc-strapline{ | ||
margin-top: | margin-top: .1rem; | ||
font-family: var(--bhc-accent-font); | font-family: var(--bhc-accent-font); | ||
font-size: 20px; | |||
color: var(--bhc-teal); | color: var(--bhc-teal); | ||
} | } | ||
/* --------------------------------------------------------- | |||
Footer | |||
--------------------------------------------------------- */ | |||
body.skin-timeless #mw-footer-container{ | body.skin-timeless #mw-footer-container{ | ||
| Line 464: | Line 175: | ||
} | } | ||
body.skin-timeless #mw-footer, | |||
body.skin-timeless #mw-footer | body.skin-timeless #mw-footer *{ | ||
body.skin-timeless #mw-footer{ | |||
color: #fff !important; | color: #fff !important; | ||
} | } | ||
body.skin-timeless #mw-footer a{ | |||
body.skin-timeless #mw-footer a | |||
color: var(--bhc-gold) !important; | color: var(--bhc-gold) !important; | ||
} | } | ||
/* | /* --------------------------------------------------------- | ||
Remove Timeless default borders | |||
--------------------------------------------------------- */ | |||
body.skin-timeless .toctitle, | body.skin-timeless .toctitle, | ||
body.skin-timeless .mw-heading2, | body.skin-timeless .mw-heading2, | ||
body.skin-timeless .mw-heading3, | body.skin-timeless .mw-heading3, | ||
body.skin-timeless .mw-heading4, | body.skin-timeless .mw-heading4, | ||
body.skin-timeless .mw-heading5 { | body.skin-timeless .mw-heading5{ | ||
border-bottom: none !important; | border-bottom: none !important; | ||
} | } | ||
Revision as of 19:38, 26 January 2026
/* =========================================================
Bellingham Heritage Centre – Timeless skin branding
FINAL SYNCED VERSION
========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Roboto+Condensed:wght@400;700&family=Satisfy&display=swap');
body.skin-timeless{
/* Palette */
--bhc-teal: rgb(130,156,149);
--bhc-olive: rgb(165,174,121);
--bhc-sand: rgb(228,186,149);
/* Brand colours */
--bhc-maroon: rgb(93, 8, 58);
--bhc-gold: rgb(228, 186, 123);
--bhc-link: #005DB3;
--bhc-text: #202020;
/* Header */
--bhc-header-bg: #ffffff;
--bhc-header-text: #202020;
/* Fonts */
--bhc-body-font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
--bhc-heading-font: "Roboto Condensed", "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
--bhc-accent-font: "Satisfy", cursive;
font-size: 18px;
line-height: 1.65;
background: #eaecf0;
}
@media (max-width: 720px){
body.skin-timeless{ font-size: 16.5px; }
}
/* ---------------------------------------------------------
Typography
--------------------------------------------------------- */
body.skin-timeless,
body.skin-timeless .mw-body,
body.skin-timeless .mw-parser-output{
font-family: var(--bhc-body-font);
color: var(--bhc-text);
}
body.skin-timeless a{ color: var(--bhc-link); }
body.skin-timeless .mw-parser-output h1,
body.skin-timeless .mw-parser-output h2,
body.skin-timeless .mw-parser-output h3{
font-family: var(--bhc-heading-font);
letter-spacing: .02em;
color: var(--bhc-maroon);
}
body.skin-timeless .mw-parser-output h2{
border-bottom: 3px solid var(--bhc-sand);
padding-bottom: .25rem;
}
/* ---------------------------------------------------------
Header container + bars
--------------------------------------------------------- */
body.skin-timeless #mw-header-hack,
body.skin-timeless #mw-header-nav-hack,
body.skin-timeless .color-bar{
display: none !important;
}
body.skin-timeless #mw-header-container{
position: relative !important;
background: var(--bhc-header-bg) !important;
overflow: visible !important;
}
/* Top bar */
body.skin-timeless #mw-header-container::before{
content: "";
position: absolute;
inset: 0 0 auto 0;
height: 20px;
background: linear-gradient(
to bottom,
var(--bhc-olive) 0 25%,
var(--bhc-teal) 25% 100%
);
}
/* Bottom bar */
body.skin-timeless #mw-header-container::after{
content: "";
position: absolute;
inset: auto 0 0 0;
height: 20px;
background: linear-gradient(
to bottom,
var(--bhc-gold) 0 33%,
var(--bhc-maroon) 33% 100%
);
}
/* ---------------------------------------------------------
Header layout (FINAL)
--------------------------------------------------------- */
body.skin-timeless #mw-header{
display: grid;
grid-template-columns: 1fr auto;
grid-template-rows: auto auto auto;
column-gap: 1.5rem;
padding: calc(20px + 14px) 0 calc(20px + 12px);
align-items: start;
}
/* Title + strapline block */
body.skin-timeless #p-logo-text{
grid-column: 1 / -1;
max-width: 100%;
}
/* Search */
body.skin-timeless #p-search{
grid-column: 2;
grid-row: 2;
max-width: 520px;
margin-left: auto;
}
/* User tools */
body.skin-timeless #user-tools{
grid-column: 2;
grid-row: 1;
justify-self: end;
}
/* ---------------------------------------------------------
Logo + title
--------------------------------------------------------- */
body.skin-timeless #p-banner{
display: block;
background: url(/resources/assets/BHClogo.jpg) no-repeat left center / 96px 96px;
padding-left: 118px;
min-height: 96px;
font-family: var(--bhc-heading-font);
font-size: 40px;
font-weight: 700;
line-height: 1.05;
color: var(--bhc-maroon);
white-space: normal;
}
/* Strapline */
body.skin-timeless .bhc-strapline{
margin-top: .1rem;
font-family: var(--bhc-accent-font);
font-size: 20px;
color: var(--bhc-teal);
}
/* ---------------------------------------------------------
Footer
--------------------------------------------------------- */
body.skin-timeless #mw-footer-container{
background: var(--bhc-maroon) !important;
border-top: 10px solid var(--bhc-gold) !important;
}
body.skin-timeless #mw-footer,
body.skin-timeless #mw-footer *{
color: #fff !important;
}
body.skin-timeless #mw-footer a{
color: var(--bhc-gold) !important;
}
/* ---------------------------------------------------------
Remove Timeless default borders
--------------------------------------------------------- */
body.skin-timeless .toctitle,
body.skin-timeless .mw-heading2,
body.skin-timeless .mw-heading3,
body.skin-timeless .mw-heading4,
body.skin-timeless .mw-heading5{
border-bottom: none !important;
}
