MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
m 1 revision imported |
||
| (5 intermediate revisions by 2 users not shown) | |||
| Line 176: | Line 176: | ||
background-position: center; | background-position: center; | ||
} | } | ||
.llsl-icon-comms { background-image: url(/brand/icons/cat_communications. | .llsl-icon-comms { background-image: url(/brand/icons/cat_communications.png); } | ||
.llsl-icon-emergency { background-image: url(/brand/icons/cat_emergency_services. | .llsl-icon-emergency { background-image: url(/brand/icons/cat_emergency_services.png); } | ||
.llsl-icon-radio { background-image: url(/brand/icons/cat_radios. | .llsl-icon-radio { background-image: url(/brand/icons/cat_radios.png); } | ||
.llsl-icon-enforcement { background-image: url(/brand/icons/cat_enforcement. | .llsl-icon-enforcement { background-image: url(/brand/icons/cat_enforcement.png); } | ||
.llsl-icon-security { background-image: url(/brand/icons/cat_security. | .llsl-icon-security { background-image: url(/brand/icons/cat_security.png); } | ||
.llsl-icon-civic { background-image: url(/brand/icons/cat_civic. | .llsl-icon-civic { background-image: url(/brand/icons/cat_civic.png); } | ||
.llsl-icon-vehicles { background-image: url(/brand/icons/cat_vehicles. | .llsl-icon-vehicles { background-image: url(/brand/icons/cat_vehicles.png); } | ||
.llsl-icon-commerce { background-image: url(/brand/icons/cat_commerce. | .llsl-icon-commerce { background-image: url(/brand/icons/cat_commerce.png); } | ||
.llsl-icon-travel { background-image: url(/brand/icons/cat_travel. | .llsl-icon-travel { background-image: url(/brand/icons/cat_travel.png); } | ||
.llsl-icon-utilities { background-image: url(/brand/icons/cat_utilities. | .llsl-icon-utilities { background-image: url(/brand/icons/cat_utilities.png); } | ||
/* Platform hubs (29-09-2026): where you use it */ | |||
.llsl-icon-inworld { background-image: url(/brand/icons/plat_inworld.png); } | |||
.llsl-icon-webos { background-image: url(/brand/icons/plat_webos.png); } | |||
.llsl-icon-mobileos { background-image: url(/brand/icons/plat_mobileos.png); } | |||
.llsl-card-title { | .llsl-card-title { | ||
font-family: 'Segoe UI', Arial, sans-serif; | font-family: 'Segoe UI', Arial, sans-serif; | ||
| Line 206: | Line 210: | ||
.llsl-card-title a.new:hover { | .llsl-card-title a.new:hover { | ||
color: #3777c8; | color: #3777c8; | ||
} | |||
/* Coming soon cards (25-11-2026): a card whose page does not exist yet | |||
is not clickable and carries a small Coming soon tag. MediaWiki marks a | |||
link to a missing page with class "new", so the card goes live by | |||
itself on the first view after its page is created. */ | |||
.llsl-card-title a.new { | |||
pointer-events: none; | |||
cursor: default; | |||
} | |||
.llsl-card-title a.new::after { | |||
content: "Coming soon"; | |||
display: inline-block; | |||
margin-left: 8px; | |||
padding: 1px 8px; | |||
border-radius: 999px; | |||
background: #eaf2fb; | |||
border: 1px solid #b8d4f0; | |||
color: #2f66ad; | |||
font-size: 0.7em; | |||
font-weight: 600; | |||
line-height: 1.6; | |||
vertical-align: middle; | |||
} | |||
.llsl-card:has(a.new) { | |||
border-top-color: #b8d4f0; | |||
background: #fafbfc; | |||
} | |||
.llsl-card:has(a.new):hover { | |||
box-shadow: none; | |||
} | |||
/* Category hubs: show "In-World Devices", not "Category:In-World Devices" */ | |||
.ns-14 .mw-page-title-namespace, | |||
.ns-14 .mw-page-title-separator { | |||
display: none; | |||
} | |||
/* Phones: the card grids go to one column */ | |||
@media (max-width: 720px) { | |||
.llsl-grid { | |||
grid-template-columns: 1fr; | |||
} | |||
} | } | ||
Latest revision as of 13:37, 25 November 2026
/* ==========================================================
LifeLinkSL Wiki — brand skin v2 (brand blue header)
Source of truth: brand/MediaWiki-Common.css in the repo.
Deployed by pasting into the wiki page MediaWiki:Common.css
========================================================== */
/* Brand blues drive links, buttons and progressive UI */
:root {
--color-progressive: #0078d4;
--color-progressive--hover: #3777c8;
--color-progressive--active: #2f66ad;
}
/* ---- Brand-blue header (Vector 2022) ---- */
.vector-header-container .mw-header,
.vector-header-container.vector-sticky-header-container,
#vector-sticky-header {
background: #0078d4;
border-bottom: 2px solid #2f66ad;
}
/* Header text and menu labels go white */
.mw-header a,
.mw-header .vector-dropdown-label,
#vector-sticky-header a,
#vector-sticky-header .vector-dropdown-label {
color: #eaf4ff;
}
.mw-header a:hover,
#vector-sticky-header a:hover {
color: #ffffff;
}
/* Header icons (hamburger, bell, tray, person) go white */
.mw-header .vector-icon,
#vector-sticky-header .vector-icon {
filter: brightness(0) invert(1);
}
.mw-header .vector-user-links .cdx-button,
#vector-sticky-header .cdx-button {
color: #ffffff;
}
/* Sticky header (appears on scroll): the page title and the divider next
to it are plain text, not links, so they need their own white rule */
#vector-sticky-header .vector-sticky-header-context-bar-primary,
#vector-sticky-header .vector-sticky-header-context-bar,
#vector-sticky-header .vector-sticky-header-context-bar-primary * {
color: #ffffff;
}
#vector-sticky-header .vector-sticky-header-context-bar {
border-left-color: rgba(255, 255, 255, 0.6);
}
/* Search input stays clean white — default Codex look works on blue */
/* Username + icon links on the header bar itself go white —
scoped so the user dropdown's white panel keeps dark text */
.mw-header .vector-user-links-main a,
#vector-sticky-header .vector-user-links-main a {
color: #ffffff !important;
}
/* Wide screens (1680px+): Vector swaps the header to a grid with a fixed
15.5rem logo column sized for compact logos — our icon + wordmark +
tagline lockup overflows it and the search box lands on the tagline
(visible logged-out, where the hamburger shifts the logo right).
Keep the narrower-width flex header at every width instead. */
@media screen and (min-width: 1680px) {
.vector-header-container .mw-header {
display: flex;
}
.client-js .vector-search-box.vector-search-box-auto-expand-width {
margin-left: 0;
}
}
/* ---- Content area stays light for readability ---- */
/* Next-gen headings: sans-serif, not Wikipedia's serif */
.mw-body h1,
.mw-body h2,
.vector-body h1 {
font-family: 'Segoe UI', Arial, sans-serif;
font-weight: 600;
}
/* Selected tab gets the brand colour */
.vector-tab-noicon.selected > a,
.vector-tab-noicon.selected {
color: #0078d4;
}
/* Table of contents active item */
.vector-toc .vector-toc-list-item-active > a {
color: #0078d4;
}
/* Standard wiki tables pick up a light brand touch */
.wikitable > tr > th,
.wikitable > * > tr > th {
background: #eaf2fb;
color: #0a0c12;
}
/* Footer */
.mw-footer-container {
border-top: 2px solid #0078d4;
}
/* ==========================================================
Main Page
========================================================== */
/* The Main Page speaks for itself — hide the default H1 */
.page-Main_Page.action-view #firstHeading,
.page-Main_Page.action-view .mw-first-heading,
.page-Main_Page.action-view #siteSub,
.page-Main_Page.action-view #contentSub {
display: none;
}
/* Hero */
.llsl-hero {
background: linear-gradient(135deg, #0078d4, #2f66ad);
color: #ffffff;
border-radius: 12px;
padding: 32px 36px;
margin: 12px 0 28px;
}
.llsl-hero-title {
font-family: 'Segoe UI', Arial, sans-serif;
font-size: 2em;
font-weight: 600;
margin-bottom: 8px;
}
.llsl-hero-sub {
color: #d6ecff;
font-size: 1.05em;
max-width: 58em;
line-height: 1.5;
}
/* Section heading between blocks */
.llsl-section-title {
font-family: 'Segoe UI', Arial, sans-serif;
font-size: 1.35em;
font-weight: 600;
margin: 24px 0 4px;
}
/* Product family card grid */
.llsl-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 16px;
margin: 16px 0 28px;
}
.llsl-card {
background: #ffffff;
border: 1px solid #d3dbe6;
border-top: 3px solid #0078d4;
border-radius: 10px;
padding: 18px 18px 16px;
transition: box-shadow 0.15s;
}
.llsl-card:hover {
box-shadow: 0 2px 12px rgba(0, 60, 120, 0.15);
}
.llsl-card-icon {
width: 42px;
height: 42px;
margin-bottom: 10px;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
}
.llsl-icon-comms { background-image: url(/brand/icons/cat_communications.png); }
.llsl-icon-emergency { background-image: url(/brand/icons/cat_emergency_services.png); }
.llsl-icon-radio { background-image: url(/brand/icons/cat_radios.png); }
.llsl-icon-enforcement { background-image: url(/brand/icons/cat_enforcement.png); }
.llsl-icon-security { background-image: url(/brand/icons/cat_security.png); }
.llsl-icon-civic { background-image: url(/brand/icons/cat_civic.png); }
.llsl-icon-vehicles { background-image: url(/brand/icons/cat_vehicles.png); }
.llsl-icon-commerce { background-image: url(/brand/icons/cat_commerce.png); }
.llsl-icon-travel { background-image: url(/brand/icons/cat_travel.png); }
.llsl-icon-utilities { background-image: url(/brand/icons/cat_utilities.png); }
/* Platform hubs (29-09-2026): where you use it */
.llsl-icon-inworld { background-image: url(/brand/icons/plat_inworld.png); }
.llsl-icon-webos { background-image: url(/brand/icons/plat_webos.png); }
.llsl-icon-mobileos { background-image: url(/brand/icons/plat_mobileos.png); }
.llsl-card-title {
font-family: 'Segoe UI', Arial, sans-serif;
font-size: 1.1em;
font-weight: 600;
margin-bottom: 6px;
}
.llsl-card-desc {
color: #54595d;
font-size: 0.95em;
line-height: 1.45;
}
/* Card titles: unwritten families get brand blue like written ones —
no redlink red on the Main Page grid */
.llsl-card-title a.new,
.llsl-card-title a.new:visited {
color: #0078d4;
}
.llsl-card-title a.new:hover {
color: #3777c8;
}
/* Coming soon cards (25-11-2026): a card whose page does not exist yet
is not clickable and carries a small Coming soon tag. MediaWiki marks a
link to a missing page with class "new", so the card goes live by
itself on the first view after its page is created. */
.llsl-card-title a.new {
pointer-events: none;
cursor: default;
}
.llsl-card-title a.new::after {
content: "Coming soon";
display: inline-block;
margin-left: 8px;
padding: 1px 8px;
border-radius: 999px;
background: #eaf2fb;
border: 1px solid #b8d4f0;
color: #2f66ad;
font-size: 0.7em;
font-weight: 600;
line-height: 1.6;
vertical-align: middle;
}
.llsl-card:has(a.new) {
border-top-color: #b8d4f0;
background: #fafbfc;
}
.llsl-card:has(a.new):hover {
box-shadow: none;
}
/* Category hubs: show "In-World Devices", not "Category:In-World Devices" */
.ns-14 .mw-page-title-namespace,
.ns-14 .mw-page-title-separator {
display: none;
}
/* Phones: the card grids go to one column */
@media (max-width: 720px) {
.llsl-grid {
grid-template-columns: 1fr;
}
}
/* Status notice */
.llsl-notice {
background: #eaf2fb;
border: 1px solid #b8d4f0;
border-left: 4px solid #0078d4;
border-radius: 8px;
padding: 12px 16px;
margin: 8px 0 24px;
}