MediaWiki:Timeless.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 39: | Line 39: | ||
overflow-x: hidden; | overflow-x: hidden; | ||
/* page background */ | |||
background: #eaecf0; | |||
} | } | ||
| Line 126: | Line 128: | ||
} | } | ||
/* Header container – ensure no clipping | /* Header container – ensure no clipping */ | ||
body.skin-timeless #mw-header-container{ | body.skin-timeless #mw-header-container{ | ||
position: relative !important; | position: relative !important; | ||
background: var(--bhc-header-bg) !important; /* white */ | background: var(--bhc-header-bg) !important; /* white */ | ||
border: 0 !important; | border: 0 !important; | ||
overflow: visible !important; | overflow: visible !important; | ||
} | } | ||
| Line 174: | Line 176: | ||
} | } | ||
/* | /* Header layout: wrap + controlled reflow (prevents search collisions) */ | ||
body.skin-timeless #mw-header{ | body.skin-timeless #mw-header{ | ||
position: relative; | position: relative !important; | ||
display: flex; | display: flex !important; | ||
align-items: flex-start; | flex-wrap: wrap !important; | ||
gap: | align-items: flex-start !important; | ||
gap: 1.25rem !important; | |||
/* leave room for the bars */ | /* leave room for the bars */ | ||
padding-top: calc(14px + 20px); | padding-top: calc(14px + 20px) !important; | ||
padding-bottom: calc( | padding-bottom: calc(12px + 20px) !important; | ||
} | } | ||
/* | /* Title/logo block */ | ||
body.skin-timeless #mw-header #p-logo-text{ | body.skin-timeless #mw-header #p-logo-text{ | ||
min-width: 0 !important; | |||
min-width: | flex: 1 1 720px !important; /* prefers wide, can shrink */ | ||
order: 1 !important; | |||
flex: | |||
} | } | ||
/* User tools compact */ | |||
body.skin-timeless #mw-header #user-tools{ | body.skin-timeless #mw-header #user-tools{ | ||
flex: 0 0 auto; | flex: 0 0 auto !important; | ||
order: 2 !important; | |||
margin-left: auto !important; | |||
} | } | ||
/* Search compact by default (right aligned) */ | |||
/* Search | |||
body.skin-timeless #mw-header #p-search{ | body.skin-timeless #mw-header #p-search{ | ||
flex: 0 1 360px; | flex: 0 1 360px !important; | ||
max-width: 360px; | max-width: 360px !important; | ||
margin-left: auto; | width: 360px !important; | ||
order: 3 !important; | |||
margin-left: auto !important; | |||
} | } | ||
/* Medium widths: | /* Medium widths: title row first; user tools + search beneath/right */ | ||
@media (max-width: 1200px){ | @media (max-width: 1200px){ | ||
body.skin-timeless #mw-header #p-logo-text{ | body.skin-timeless #mw-header #p-logo-text{ | ||
flex: 1 1 100% | flex: 1 1 100% !important; | ||
} | } | ||
body.skin-timeless #mw-header #p-search{ | body.skin-timeless #mw-header #p-search{ | ||
flex: 1 1 420px !important; | |||
flex: 1 1 420px; | width: auto !important; | ||
max-width: 520px !important; | |||
} | } | ||
} | } | ||
/* Small widths: search | /* Small widths: search full width */ | ||
@media (max-width: 720px){ | @media (max-width: 720px){ | ||
body.skin-timeless #mw-header #p-search{ | body.skin-timeless #mw-header #p-search{ | ||
width: 100%; | width: 100% !important; | ||
max-width: none; | max-width: none !important; | ||
margin-left: 0; | margin-left: 0 !important; | ||
} | } | ||
} | } | ||
| Line 308: | Line 260: | ||
padding-left: 118px; | padding-left: 118px; | ||
min-height: 96px; | min-height: 96px; | ||
/* keep the title line tight so strapline doesn't create a big gap */ | |||
line-height: 1.05; | line-height: 1.05; | ||
padding-top: 10px; | |||
padding-bottom: 0; | |||
white-space: nowrap; | |||
} | } | ||
/* Strapline via ::after (Option 1) — clean, small, wraps naturally */ | |||
body.skin-timeless #p-logo-text #p-banner::after{ | body.skin-timeless #p-logo-text #p-banner::after{ | ||
content: "Explore the Heritage of the Northern Borders"; | content: "Explore the Heritage of the Northern Borders"; | ||
display: block; | display: block; | ||
font-family: var(--bhc-accent-font); | font-family: var(--bhc-accent-font); | ||
color: var(--bhc-teal); | color: var(--bhc-teal); | ||
font-size: 20px; | font-size: 20px; | ||
line-height: 1.12; | line-height: 1.12; | ||
font-weight: 400; | font-weight: 400; | ||
margin-top: 0.15rem; | margin-top: 0.15rem; | ||
white-space: normal; | |||
white-space: normal; | max-width: 52rem; | ||
max-width: 52rem; | |||
} | } | ||
/* | /* Wrap title + tune strapline at smaller widths */ | ||
@media (max-width: 1024px){ | @media (max-width: 1024px){ | ||
body.skin-timeless #p-logo-text #p-banner{ | |||
white-space: normal; | |||
line-height: 1.05; | |||
} | |||
body.skin-timeless #p-logo-text #p-banner::after{ | body.skin-timeless #p-logo-text #p-banner::after{ | ||
font-size: 18px; | font-size: 18px; | ||
max-width: 100%; | max-width: 100%; | ||
} | } | ||
| Line 383: | Line 300: | ||
@media (max-width: 720px){ | @media (max-width: 720px){ | ||
body.skin-timeless #p-logo-text #p-banner{ | |||
white-space: normal; | |||
padding-top: 6px; | |||
min-height: 96px; | |||
} | |||
body.skin-timeless #p-logo-text #p-banner::after{ | body.skin-timeless #p-logo-text #p-banner::after{ | ||
font-size: 16px; | font-size: 16px; | ||
} | } | ||
} | } | ||
| Line 400: | Line 321: | ||
body.skin-timeless #p-search #simpleSearch{ | body.skin-timeless #p-search #simpleSearch{ | ||
position: relative; | position: relative; | ||
} | |||
body.skin-timeless #mw-header #p-search #searchInput, | |||
body.skin-timeless #mw-header #p-search input[type="search"]{ | |||
width: 100% !important; | |||
box-sizing: border-box !important; | |||
} | } | ||
| Line 405: | Line 332: | ||
body.skin-timeless #p-search input[type="search"], | body.skin-timeless #p-search input[type="search"], | ||
body.skin-timeless #p-search #searchInput{ | body.skin-timeless #p-search #searchInput{ | ||
padding: .45rem .8rem; | padding: .45rem .8rem; | ||
border-radius: 10px; | border-radius: 10px; | ||
| Line 498: | Line 422: | ||
========================================================= */ | ========================================================= */ | ||
/* | /* Kill Timeless “cat.svg” and green border if it appears */ | ||
body.skin-timeless #mw-content-container{ | body.skin-timeless #mw-content-container{ | ||
background: #eaecf0 !important; | background: #eaecf0 !important; | ||
background-image: none !important; | background-image: none !important; | ||
border-bottom: 0 !important; | border-bottom: 0 !important; | ||
padding-top: 1rem !important; /* | |||
/* breathing space under header bar */ | |||
padding-top: 1rem !important; | |||
} | |||
/* Reduce Timeless default top gap below header (was ~3.475em) */ | |||
@media screen and (min-width: 851px){ | |||
body.skin-timeless #mw-content-container{ | |||
margin-top: 0.5rem !important; /* adjust if needed */ | |||
padding-bottom: 1em !important; | |||
} | |||
} | } | ||
| Line 527: | Line 461: | ||
} | } | ||
body.skin-timeless #mw-footer a, | body.skin-timeless #mw-footer a, | ||
body.skin-timeless #mw-footer a:visited{ | body.skin-timeless #mw-footer a:visited{ | ||
color: var(--bhc-gold) !important; | color: var(--bhc-gold) !important; | ||
} | } | ||
Revision as of 10:47, 25 January 2026
/* =========================================================
Bellingham Heritage Centre – Timeless skin branding (CSS-only)
Applies ONLY when the Timeless skin is in use.
========================================================= */
@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);
/* Site colours */
--bhc-maroon: rgb(93, 8, 58); /* main burgundy */
--bhc-gold: rgb(228, 186, 123); /* site gold/yellow */
--bhc-link: #005DB3;
--bhc-text: #202020;
/* Header is WHITE */
--bhc-header-bg: #ffffff;
--bhc-header-text: #202020;
/* Bars */
--bhc-topbar-olive: rgb(165, 174, 121);
--bhc-topbar-teal: rgb(130, 156, 149);
--bhc-bottombar-sand: rgb(228, 186, 123);
--bhc-bottombar-maroon: rgb(95, 8, 58);
/* 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;
/* Readability */
font-size: 18px;
line-height: 1.65;
overflow-x: hidden;
/* page background */
background: #eaecf0;
}
@media (max-width: 720px){
body.skin-timeless{ font-size: 16.5px; }
}
/* ---------------------------------------------------------
Global typography (content)
--------------------------------------------------------- */
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 a:hover{ text-decoration: underline; }
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 h1{
font-size: 2.05rem;
line-height: 1.15;
margin: 0.25rem 0 0.75rem;
font-weight: 700;
}
body.skin-timeless .mw-parser-output h2{
font-size: 1.55rem;
line-height: 1.2;
margin: 1.6rem 0 0.6rem;
border-bottom: 3px solid var(--bhc-sand);
padding-bottom: .25rem;
}
body.skin-timeless .mw-parser-output h3{
font-size: 1.25rem;
line-height: 1.25;
margin: 1.2rem 0 0.45rem;
}
body.skin-timeless .mw-parser-output h4{
font-size: 1.1rem;
line-height: 1.3;
}
body.skin-timeless .mw-parser-output p{ margin: 0.75rem 0; }
body.skin-timeless .mw-parser-output ul,
body.skin-timeless .mw-parser-output ol{ margin: 0.6rem 0 0.9rem 1.25rem; }
body.skin-timeless .mw-parser-output li{ margin: 0.2rem 0; }
body.skin-timeless #toc,
body.skin-timeless .toc,
body.skin-timeless .mw-normal-catlinks,
body.skin-timeless .catlinks,
body.skin-timeless .mw-editsection,
body.skin-timeless .mw-editsection a,
body.skin-timeless .mw-changeslist,
body.skin-timeless .mw-footer{
font-size: 0.95rem;
}
/* Optional accent class you can use in wiki content */
body.skin-timeless .bhc-script{ font-family: var(--bhc-accent-font); }
/* =========================================================
HEADER: white background + top/bottom bars (20px each)
========================================================= */
/* Hide Timeless fixed decorative bars that can “float” during scroll */
body.skin-timeless #mw-header-hack,
body.skin-timeless #mw-header-nav-hack,
body.skin-timeless .color-bar{
display: none !important;
}
/* Header container – ensure no clipping */
body.skin-timeless #mw-header-container{
position: relative !important;
background: var(--bhc-header-bg) !important; /* white */
border: 0 !important;
overflow: visible !important;
}
/* Top bar (olive then teal) */
body.skin-timeless #mw-header-container::before{
content: "";
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 20px;
z-index: 5;
pointer-events: none;
background: linear-gradient(
to bottom,
var(--bhc-topbar-olive) 0 25%,
var(--bhc-topbar-teal) 25% 100%
);
}
/* Bottom bar (gold then maroon) */
body.skin-timeless #mw-header-container::after{
content: "";
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 20px;
z-index: 5;
pointer-events: none;
background: linear-gradient(
to bottom,
var(--bhc-bottombar-sand) 0 33%,
var(--bhc-bottombar-maroon) 33% 100%
);
}
/* Make header text dark by default */
body.skin-timeless #mw-header,
body.skin-timeless #mw-header a{
color: var(--bhc-header-text) !important;
}
/* Header layout: wrap + controlled reflow (prevents search collisions) */
body.skin-timeless #mw-header{
position: relative !important;
display: flex !important;
flex-wrap: wrap !important;
align-items: flex-start !important;
gap: 1.25rem !important;
/* leave room for the bars */
padding-top: calc(14px + 20px) !important;
padding-bottom: calc(12px + 20px) !important;
}
/* Title/logo block */
body.skin-timeless #mw-header #p-logo-text{
min-width: 0 !important;
flex: 1 1 720px !important; /* prefers wide, can shrink */
order: 1 !important;
}
/* User tools compact */
body.skin-timeless #mw-header #user-tools{
flex: 0 0 auto !important;
order: 2 !important;
margin-left: auto !important;
}
/* Search compact by default (right aligned) */
body.skin-timeless #mw-header #p-search{
flex: 0 1 360px !important;
max-width: 360px !important;
width: 360px !important;
order: 3 !important;
margin-left: auto !important;
}
/* Medium widths: title row first; user tools + search beneath/right */
@media (max-width: 1200px){
body.skin-timeless #mw-header #p-logo-text{
flex: 1 1 100% !important;
}
body.skin-timeless #mw-header #p-search{
flex: 1 1 420px !important;
width: auto !important;
max-width: 520px !important;
}
}
/* Small widths: search full width */
@media (max-width: 720px){
body.skin-timeless #mw-header #p-search{
width: 100% !important;
max-width: none !important;
margin-left: 0 !important;
}
}
/* =========================================================
SITE TITLE + LOGO (left)
Timeless uses: #p-logo-text a#p-banner
========================================================= */
body.skin-timeless #p-logo-text{
position: relative;
}
body.skin-timeless #p-logo-text #p-banner{
display: inline-block;
text-decoration: none;
font-family: var(--bhc-heading-font) !important;
font-weight: 700;
font-size: 40px;
letter-spacing: .01em;
color: var(--bhc-maroon) !important;
/* logo image */
background-image: url(/resources/assets/BHClogo.jpg);
background-repeat: no-repeat;
background-position: left center;
background-size: 96px 96px;
padding-left: 118px;
min-height: 96px;
/* keep the title line tight so strapline doesn't create a big gap */
line-height: 1.05;
padding-top: 10px;
padding-bottom: 0;
white-space: nowrap;
}
/* Strapline via ::after (Option 1) — clean, small, wraps naturally */
body.skin-timeless #p-logo-text #p-banner::after{
content: "Explore the Heritage of the Northern Borders";
display: block;
font-family: var(--bhc-accent-font);
color: var(--bhc-teal);
font-size: 20px;
line-height: 1.12;
font-weight: 400;
margin-top: 0.15rem;
white-space: normal;
max-width: 52rem;
}
/* Wrap title + tune strapline at smaller widths */
@media (max-width: 1024px){
body.skin-timeless #p-logo-text #p-banner{
white-space: normal;
line-height: 1.05;
}
body.skin-timeless #p-logo-text #p-banner::after{
font-size: 18px;
max-width: 100%;
}
}
@media (max-width: 720px){
body.skin-timeless #p-logo-text #p-banner{
white-space: normal;
padding-top: 6px;
min-height: 96px;
}
body.skin-timeless #p-logo-text #p-banner::after{
font-size: 16px;
}
}
/* Hide Timeless sidebar logo to avoid double branding */
body.skin-timeless #mw-site-navigation #p-logo{
display: none !important;
}
/* =========================================================
SEARCH: icon OUTSIDE input (right side)
========================================================= */
body.skin-timeless #p-search #simpleSearch{
position: relative;
}
body.skin-timeless #mw-header #p-search #searchInput,
body.skin-timeless #mw-header #p-search input[type="search"]{
width: 100% !important;
box-sizing: border-box !important;
}
/* Input */
body.skin-timeless #p-search input[type="search"],
body.skin-timeless #p-search #searchInput{
padding: .45rem .8rem;
border-radius: 10px;
background: #fff !important;
color: #202020 !important;
caret-color: #202020 !important;
border: 1px solid rgba(0,0,0,.18) !important;
box-shadow: none !important;
-webkit-appearance: none;
appearance: none;
/* room for icon */
padding-right: 3.1rem !important;
}
body.skin-timeless #p-search input[type="search"]::placeholder,
body.skin-timeless #p-search #searchInput::placeholder{
color: rgba(0,0,0,.55) !important;
}
/* Hide WebKit search decorations */
body.skin-timeless #p-search input[type="search"]::-webkit-search-decoration,
body.skin-timeless #p-search input[type="search"]::-webkit-search-cancel-button,
body.skin-timeless #p-search input[type="search"]::-webkit-search-results-button,
body.skin-timeless #p-search input[type="search"]::-webkit-search-results-decoration{
-webkit-appearance: none;
display: none;
}
/* Keep ONE icon button (Search), hide Go */
body.skin-timeless #p-search input#mw-searchButton,
body.skin-timeless #p-search input#searchButton{
position: absolute;
top: 50%;
right: 6px;
transform: translateY(-50%);
width: 38px;
height: 38px;
padding: 0;
margin: 0;
border-radius: 10px;
border: 1px solid rgba(0,0,0,.18);
background: #fff;
cursor: pointer;
text-indent: -9999px;
overflow: hidden;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M10 18a8 8 0 1 1 5.293-14.293A8 8 0 0 1 10 18m0-2a6 6 0 1 0-6-6a6 6 0 0 0 6 6m9.707 6.293l-5.1-5.1l1.414-1.414l5.1 5.1z'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: center;
}
body.skin-timeless #p-search input#searchButton{
display: none !important;
}
/* Label styling */
body.skin-timeless #p-search label{
color: rgba(32,32,32,.75) !important;
}
/* =========================================================
Personal dropdown: ensure text is dark (header is white)
========================================================= */
body.skin-timeless #personal,
body.skin-timeless #personal a,
body.skin-timeless #personal h2,
body.skin-timeless #personal h3,
body.skin-timeless #personal .mw-portlet,
body.skin-timeless #personal .mw-portlet *{
color: #202020 !important;
}
body.skin-timeless #personal .dropdown,
body.skin-timeless #personal .mw-portlet-body{
background: #fff !important;
}
/* =========================================================
CONTENT WRAPPER FIXES
========================================================= */
/* Kill Timeless “cat.svg” and green border if it appears */
body.skin-timeless #mw-content-container{
background: #eaecf0 !important;
background-image: none !important;
border-bottom: 0 !important;
/* breathing space under header bar */
padding-top: 1rem !important;
}
/* Reduce Timeless default top gap below header (was ~3.475em) */
@media screen and (min-width: 851px){
body.skin-timeless #mw-content-container{
margin-top: 0.5rem !important; /* adjust if needed */
padding-bottom: 1em !important;
}
}
/* =========================================================
FOOTER: match site (burgundy, white text, gold links) + top border
========================================================= */
body.skin-timeless #mw-footer-container{
background: var(--bhc-maroon) !important;
border-top: 10px solid var(--bhc-gold) !important;
}
/* Full-bleed footer: remove Timeless .ts-inner side padding ONLY in footer */
body.skin-timeless #mw-footer-container .ts-inner{
max-width: none !important;
padding-left: 0 !important;
padding-right: 0 !important;
}
body.skin-timeless #mw-footer{
font-family: var(--bhc-body-font);
color: #fff !important;
}
body.skin-timeless #mw-footer a,
body.skin-timeless #mw-footer a:visited{
color: var(--bhc-gold) !important;
}
