MediaWiki:Timeless.css: Difference between revisions

No edit summary
No edit summary
Line 1: Line 1:
/* All CSS here will be loaded for users of the Timeless skin */
/* All CSS here will be loaded for users of the Timeless skin */
/* =========================================================
/* =========================================================
   Bellingham Heritage Centre – Timeless skin branding (CSS-only)
   BHC – Strapline in header (CSS-only, Option 1)
   Stable baseline + strapline (Option A) + hide mw-header-hack
   Adds text under the site title via ::after
   ========================================================= */
   ========================================================= */


@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Roboto+Condensed:wght@400;700&display=swap');
/* Ensure the title anchor can host a block-level ::after */
 
body.skin-timeless #p-logo-text #p-banner{
/* ---------------------------------------------------------
  Variables & base
  --------------------------------------------------------- */
 
body.skin-timeless{
  --bhc-teal: rgb(130,156,149);
  --bhc-olive: rgb(165,174,121);
  --bhc-sand: rgb(228,186,149);
  --bhc-maroon: rgb(93, 8, 58);
 
  --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);
 
  --bhc-header-bg: #ffffff;
  --bhc-text: #202020;
  --bhc-link: #005DB3;
 
  /* Strapline tuning */
  --bhc-strapline-color: rgba(32,32,32,.78);
  --bhc-strapline-size: 18px;
 
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
 
  background: #eaecf0; /* prevents black bleed */
  overflow-x: hidden;
}
 
@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{
  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: "Roboto Condensed", "Roboto", system-ui, sans-serif;
  letter-spacing: .02em;
  color: var(--bhc-maroon);
}
 
/* ---------------------------------------------------------
  Timeless fixed "color-bar" hacks: hide so they can't appear on scroll
  (Your observed issue: #mw-header-hack.color-bar showing through)
  --------------------------------------------------------- */
 
body.skin-timeless #mw-header-hack,
body.skin-timeless #mw-header-nav-hack{
  display: none !important;
}
 
/* ---------------------------------------------------------
  HEADER CONTAINER + BARS
  --------------------------------------------------------- */
 
body.skin-timeless #mw-header-container{
  position: relative !important;
  background: var(--bhc-header-bg) !important;
  border: 0 !important;
}
 
/* Top bar */
body.skin-timeless #mw-header-container::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:20px;
  background: linear-gradient(
    to bottom,
    var(--bhc-topbar-olive) 0 25%,
    var(--bhc-topbar-teal) 25% 100%
  );
  z-index:5;
}
 
/* Bottom bar */
body.skin-timeless #mw-header-container::after{
  content:"";
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  height:20px;
  background: linear-gradient(
    to bottom,
    var(--bhc-bottombar-sand) 0 33%,
    var(--bhc-bottombar-maroon) 33% 100%
  );
  z-index:5;
}
 
/* ---------------------------------------------------------
  HEADER LAYOUT
  --------------------------------------------------------- */
 
body.skin-timeless #mw-header{
   position: relative;
   position: relative;
   display: flex;
   display: inline-block;
  align-items: flex-start;
   white-space: normal; /* allow wrap if needed */
   gap: 1.25rem;
 
  padding-top: calc(14px + 20px);
  padding-bottom: calc(24px + 20px);
 
  color: #202020;
}
 
body.skin-timeless #mw-header a{
  color: inherit !important;
}
}


/* Logo / title block */
/* Strapline */
body.skin-timeless #p-logo-text{
body.skin-timeless #p-logo-text #p-banner::after{
   flex: 1 1 auto;
   content: "Explore the Heritage of the Northern Borders";
   min-width: 720px;
   display: block;
  position: relative; /* anchor for strapline positioning */
}


/* Search block */
  /* Styling requested */
body.skin-timeless #p-search{
  font-family: "Satisfy", cursive;
   flex: 0 0 340px;
   font-size: 40px;
   max-width: 340px;
   line-height: 1.05;
   margin-left: auto;
   font-weight: 400;
}
  color: rgb(130,156,149);


/* Hide sidebar logo */
  /* Positioning: sits immediately below the title,
body.skin-timeless #mw-site-navigation #p-logo{
    indented to match the title text start (logo + gap).
   display:none !important;
    Adjust this ONE value if your logo/title padding changes. */
  margin-top: 0.15rem;
   padding-left: 0; /* keep within the same indent as the title text */
}
}


/* ---------------------------------------------------------
/* If your title line-height is tall (e.g., 96px), this helps keep it tight */
  SITE TITLE + LOGO
  --------------------------------------------------------- */
 
body.skin-timeless #p-logo-text #p-banner{
body.skin-timeless #p-logo-text #p-banner{
   display:inline-block;
   line-height: 1.1; /* keeps title from forcing huge vertical gaps */
  font-family: "Roboto Condensed", "Roboto", sans-serif;
  font-size:40px;
  font-weight:700;
  color:var(--bhc-maroon) !important;
 
  background:url(/resources/assets/BHClogo.jpg) no-repeat left center;
  background-size:96px 96px;
 
  padding-left:118px;
  min-height:96px;
  line-height:96px;
  text-decoration:none;
  white-space:nowrap;
}
}


@media (max-width:720px){
/* Optional: on smaller screens, reduce strapline size to prevent wrapping weirdly */
   body.skin-timeless #p-logo-text #p-banner{
@media (max-width: 1024px){
     white-space:normal;
   body.skin-timeless #p-logo-text #p-banner::after{
    line-height:1.1;
     font-size: 32px;
   }
   }
}
}
/* ---------------------------------------------------------
  STRAPLINE (Option A): reuse #siteSub and move it into header
  - Timeless normally shows #siteSub in the content area
  - We position it under the site title/logo instead
  --------------------------------------------------------- */
/* Place strapline visually under the title, aligned with the text start */
body.skin-timeless #siteSub{
  position: absolute;
  left: 118px;      /* aligns with title start (padding-left) */
  top: 84px;        /* tuned to sit under the title line */
  margin: 0;
  padding: 0;
  font-size: var(--bhc-strapline-size);
  line-height: 1.25;
  font-style: normal;
  color: var(--bhc-strapline-color) !important;
  /* keep it from affecting clicks */
  pointer-events: none;
  z-index: 3;
}
/* Ensure #siteSub doesn't consume vertical space where Timeless normally puts it */
body.skin-timeless #bodyContentOuter #siteSub{
  height: 0 !important;
  overflow: visible !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* On small screens, let strapline wrap naturally and sit a bit lower */
@media (max-width: 720px){
@media (max-width: 720px){
   body.skin-timeless #siteSub{
   body.skin-timeless #p-logo-text #p-banner::after{
    top: 92px;
     font-size: 26px;
    left: 118px;
    max-width: calc(100% - 132px);
     white-space: normal;
   }
   }
}
}


/* ---------------------------------------------------------
  SEARCH (clean + external icon)
  --------------------------------------------------------- */


body.skin-timeless #p-search #simpleSearch{
/* =========================================================
  position:relative;
  BHC – Footer palette (Timeless)
}
  Background burgundy, text white, links sand
  ========================================================= */


body.skin-timeless #p-search input[type="search"]{
body.skin-timeless #mw-footer-container{
  width:100%;
   background: rgb(93, 8, 58) !important; /* site burgundy */
  padding:.45rem .8rem;
   border-top: 0 !important;             /* remove any previous border */
  padding-right:3.1rem;
  border-radius:10px;
   background:#fff !important;
  border:1px solid rgba(0,0,0,.18);
   color:#202020;
}
 
body.skin-timeless #p-search input#mw-searchButton{
  position:absolute;
  right:6px;
  top:50%;
  transform:translateY(-50%);
  width:38px;
  height:38px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.18);
  background:#fff 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") no-repeat center;
  text-indent:-9999px;
}
}


/* ---------------------------------------------------------
body.skin-timeless #mw-footer{
  PERSONAL MENU
   color: #fff !important;
  --------------------------------------------------------- */
 
body.skin-timeless #personal,
body.skin-timeless #personal *{
   color:#202020 !important;
}
}


body.skin-timeless #personal .dropdown,
/* Footer text + list items */
body.skin-timeless #personal .mw-portlet-body{
body.skin-timeless #mw-footer,
   background:#fff !important;
body.skin-timeless #mw-footer *{
   color: #fff;
}
}


/* ---------------------------------------------------------
/* Links in footer */
  CONTENT SPACING (FINAL FIX)
body.skin-timeless #mw-footer a,
  --------------------------------------------------------- */
body.skin-timeless #mw-footer a:visited{
 
  color: rgb(228,186,123) !important;
@media screen and (min-width: 851px){
  text-decoration: none;
  body.skin-timeless #mw-content-container{
    margin-top: 0;
    padding-top: 1rem;
    padding-bottom: 1em;
  }
}
}
 
body.skin-timeless #mw-footer a:hover{
/* ---------------------------------------------------------
   text-decoration: underline;
  FOOTER
  --------------------------------------------------------- */
 
body.skin-timeless #mw-footer-container{
   background:#f6f6f6;
  border-top:6px solid var(--bhc-sand);
}
}


body.skin-timeless .mw-footer-container a,
/* Optional: soften small-print a touch without changing colour */
body.skin-timeless .mw-footer-container a:visited{
body.skin-timeless #mw-footer #footer-info,
   color:#37a;
body.skin-timeless #mw-footer #footer-places{
   opacity: 0.95;
}
}

Revision as of 19:46, 24 January 2026

/* All CSS here will be loaded for users of the Timeless skin */
/* =========================================================
   BHC – Strapline in header (CSS-only, Option 1)
   Adds text under the site title via ::after
   ========================================================= */

/* Ensure the title anchor can host a block-level ::after */
body.skin-timeless #p-logo-text #p-banner{
  position: relative;
  display: inline-block;
  white-space: normal; /* allow wrap if needed */
}

/* Strapline */
body.skin-timeless #p-logo-text #p-banner::after{
  content: "Explore the Heritage of the Northern Borders";
  display: block;

  /* Styling requested */
  font-family: "Satisfy", cursive;
  font-size: 40px;
  line-height: 1.05;
  font-weight: 400;
  color: rgb(130,156,149);

  /* Positioning: sits immediately below the title,
     indented to match the title text start (logo + gap).
     Adjust this ONE value if your logo/title padding changes. */
  margin-top: 0.15rem;
  padding-left: 0; /* keep within the same indent as the title text */
}

/* If your title line-height is tall (e.g., 96px), this helps keep it tight */
body.skin-timeless #p-logo-text #p-banner{
  line-height: 1.1; /* keeps title from forcing huge vertical gaps */
}

/* Optional: on smaller screens, reduce strapline size to prevent wrapping weirdly */
@media (max-width: 1024px){
  body.skin-timeless #p-logo-text #p-banner::after{
    font-size: 32px;
  }
}
@media (max-width: 720px){
  body.skin-timeless #p-logo-text #p-banner::after{
    font-size: 26px;
  }
}


/* =========================================================
   BHC – Footer palette (Timeless)
   Background burgundy, text white, links sand
   ========================================================= */

body.skin-timeless #mw-footer-container{
  background: rgb(93, 8, 58) !important; /* site burgundy */
  border-top: 0 !important;              /* remove any previous border */
}

body.skin-timeless #mw-footer{
  color: #fff !important;
}

/* Footer text + list items */
body.skin-timeless #mw-footer,
body.skin-timeless #mw-footer *{
  color: #fff;
}

/* Links in footer */
body.skin-timeless #mw-footer a,
body.skin-timeless #mw-footer a:visited{
  color: rgb(228,186,123) !important;
  text-decoration: none;
}
body.skin-timeless #mw-footer a:hover{
  text-decoration: underline;
}

/* Optional: soften small-print a touch without changing colour */
body.skin-timeless #mw-footer #footer-info,
body.skin-timeless #mw-footer #footer-places{
  opacity: 0.95;
}