MediaWiki:Bhcvectorbrand-css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 18: | Line 18: | ||
body.bhc-branding .bhc-sitebar{ | body.bhc-branding .bhc-sitebar{ | ||
position: static; | position: static; /* non-sticky */ | ||
margin: 0; /* no artificial offset */ | |||
border-top: 5px solid rgb(165,174,121); | border-top: 5px solid rgb(165,174,121); | ||
border-bottom: 10px solid rgb(228,186,149); | border-bottom: 10px solid rgb(228,186,149); | ||
background: rgb(130,156,149); | background: rgb(130,156,149); | ||
color: #fff; | color: #fff; | ||
width: 100%; | |||
} | } | ||
| Line 53: | Line 55: | ||
body.bhc-branding .bhc-test-badge{ | body.bhc-branding .bhc-test-badge{ | ||
background: rgba(0,0,0,.18); | background: rgba(0,0,0,.18); | ||
border: 1px solid rgba(255,255,255,.35); | border: 1px solid rgba(255,255,255,.35); | ||
| Line 60: | Line 61: | ||
font-size: 12px; | font-size: 12px; | ||
letter-spacing: .06em; | letter-spacing: .06em; | ||
white-space: nowrap; | |||
} | } | ||
/* --------------------------------------------------------- | /* --------------------------------------------------------- | ||
Vector sticky UI should sit BELOW the BHC header | |||
JS sets --bhc-bar-height to header height | |||
--------------------------------------------------------- */ | --------------------------------------------------------- */ | ||
body.bhc-branding . | body.bhc-branding .vector-sticky-header, | ||
body.bhc-branding .vector-page-toolbar{ | |||
top: var(--bhc-bar-height) !important; | |||
body.bhc-branding . | |||
} | } | ||
/* --------------------------------------------------------- | /* --------------------------------------------------------- | ||
SEARCH: moved into the BHC header | |||
--------------------------------------------------------- */ | --------------------------------------------------------- */ | ||
/* Hide the original Vector search portlet/container now that we move the form */ | /* Hide the original Vector search portlet/container now that we move the form */ | ||
| Line 102: | Line 85: | ||
} | } | ||
/* | /* Search slot in header: keep it to the right */ | ||
body.bhc-branding .bhc-search-slot { | body.bhc-branding .bhc-search-slot { | ||
margin-left: auto; | margin-left: auto; | ||
| Line 110: | Line 93: | ||
} | } | ||
/* Basic styling for the moved search | /* Ensure badge stays on far right if present */ | ||
body.bhc-branding .bhc-search-slot + .bhc-test-badge { | |||
margin-left: 12px; | |||
} | |||
/* Basic styling for the moved search form */ | |||
body.bhc-branding .bhc-moved-search { | body.bhc-branding .bhc-moved-search { | ||
display: flex; | display: flex; | ||
| Line 131: | Line 119: | ||
} | } | ||
body.bhc-branding .bhc-search-submit { | body.bhc-branding .bhc-search-submit { | ||
padding: .45rem .7rem; | padding: .45rem .7rem; | ||
| Line 140: | Line 127: | ||
} | } | ||
/* | /* --------------------------------------------------------- | ||
FOOTER | |||
--------------------------------------------------------- */ | |||
body.bhc-branding .bhc-footer{ | |||
body.bhc-branding | margin-top: 2.25rem; | ||
padding-top: | padding: 1.5rem 0; | ||
border-top: 6px solid rgb(228,186,149); | |||
background: #f6f6f6; | |||
color: #222; | |||
clear: both; | |||
width: 100%; | |||
} | } | ||
body.bhc-branding .bhc-footer-inner{ | |||
body.bhc-branding .bhc- | max-width: 1200px; | ||
margin: 0 auto; | |||
padding: 0 16px; | |||
font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif; | |||
font-size: .95rem; | |||
line-height: 1.6; | |||
} | } | ||
Revision as of 19:02, 23 January 2026
/* =========================================================
BHC Vector Brand – presentation layer Scoped to body.bhc-branding only Header is NON-STICKY and scrolls with the page ========================================================= */
- root { --bhc-bar-height: 0px; }
/* Base */ body.bhc-branding{
padding-top: 0; overflow-x: hidden;
}
/* ---------------------------------------------------------
HEADER BAR (scrolls normally) --------------------------------------------------------- */
body.bhc-branding .bhc-sitebar{
position: static; /* non-sticky */ margin: 0; /* no artificial offset */ border-top: 5px solid rgb(165,174,121); border-bottom: 10px solid rgb(228,186,149); background: rgb(130,156,149); color: #fff; width: 100%;
}
body.bhc-branding .bhc-sitebar-inner{
max-width: 1200px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 12px; font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}
body.bhc-branding .bhc-logo{
width: 56px; height: 56px; background: url(/extensions/BHCVectorBrand/resources/images/bhc-logo.png) center/contain no-repeat; border-radius: 6px;
}
body.bhc-branding .bhc-title{
font-size: 18px; letter-spacing: 1px;
}
body.bhc-branding .bhc-strapline{
opacity: .95; margin-top: 2px;
}
body.bhc-branding .bhc-test-badge{
background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.35); padding: 4px 10px; border-radius: 999px; font-size: 12px; letter-spacing: .06em; white-space: nowrap;
}
/* ---------------------------------------------------------
Vector sticky UI should sit BELOW the BHC header JS sets --bhc-bar-height to header height --------------------------------------------------------- */
body.bhc-branding .vector-sticky-header, body.bhc-branding .vector-page-toolbar{
top: var(--bhc-bar-height) !important;
}
/* ---------------------------------------------------------
SEARCH: moved into the BHC header --------------------------------------------------------- */
/* Hide the original Vector search portlet/container now that we move the form */ body.bhc-branding #p-search, body.bhc-branding .vector-search-box, body.bhc-branding .vector-search-box-vue {
display: none !important;
}
/* Search slot in header: keep it to the right */ body.bhc-branding .bhc-search-slot {
margin-left: auto; display: flex; align-items: center; gap: .5rem;
}
/* Ensure badge stays on far right if present */ body.bhc-branding .bhc-search-slot + .bhc-test-badge {
margin-left: 12px;
}
/* Basic styling for the moved search form */ body.bhc-branding .bhc-moved-search {
display: flex; align-items: center; gap: .5rem;
}
body.bhc-branding .bhc-search-input {
width: min(340px, 40vw); max-width: 100%; padding: .45rem .6rem; border-radius: 6px; border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.12); color: #fff;
}
body.bhc-branding .bhc-search-input::placeholder {
color: rgba(255,255,255,.75);
}
body.bhc-branding .bhc-search-submit {
padding: .45rem .7rem; border-radius: 6px; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.12); color: #fff;
}
/* ---------------------------------------------------------
FOOTER --------------------------------------------------------- */
body.bhc-branding .bhc-footer{
margin-top: 2.25rem; padding: 1.5rem 0; border-top: 6px solid rgb(228,186,149); background: #f6f6f6; color: #222; clear: both; width: 100%;
}
body.bhc-branding .bhc-footer-inner{
max-width: 1200px; margin: 0 auto; padding: 0 16px; font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif; font-size: .95rem; line-height: 1.6;
}
