Jump to content

MediaWiki:Common.css: Difference between revisions

From LifeLinkSL Wiki
No edit summary
m 1 revision imported
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
/* ==========================================================
/* ==========================================================
   LifeLinkSL Wiki — brand skin (blue on navy)
   LifeLinkSL Wiki — brand skin v2 (brand blue header)
   Source of truth: brand/MediaWiki-Common.css in the repo.
   Source of truth: brand/MediaWiki-Common.css in the repo.
  Deployed by pasting into the wiki page MediaWiki:Common.css
   ========================================================== */
   ========================================================== */


Line 11: Line 12:
}
}


/* ---- Navy header (Vector 2022) ---- */
/* ---- Brand-blue header (Vector 2022) ---- */
.vector-header-container .mw-header,
.vector-header-container .mw-header,
.vector-header-container.vector-sticky-header-container,
.vector-header-container.vector-sticky-header-container,
#vector-sticky-header {
#vector-sticky-header {
background: #0a0c12;
background: #0078d4;
border-bottom: 2px solid #0078d4;
border-bottom: 2px solid #2f66ad;
}
}


/* Header text and menu labels go light */
/* Header text and menu labels go white */
.mw-header a,
.mw-header a,
.mw-header .vector-dropdown-label,
.mw-header .vector-dropdown-label,
#vector-sticky-header a,
#vector-sticky-header a,
#vector-sticky-header .vector-dropdown-label {
#vector-sticky-header .vector-dropdown-label {
color: #cfe4ff;
color: #eaf4ff;
}
}
.mw-header a:hover,
.mw-header a:hover,
Line 31: Line 32:
}
}


/* Header icons (hamburger, search, bell) are dark SVGs — lift them */
/* Header icons (hamburger, bell, tray, person) go white */
.mw-header .vector-icon,
.mw-header .vector-icon,
#vector-sticky-header .vector-icon {
#vector-sticky-header .vector-icon {
filter: invert(0.85) brightness(1.3);
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 */


/* Search box matches the OS dark surfaces */
/* Username + icon links on the header bar itself go white —
.mw-header .cdx-text-input__input,
  scoped so the user dropdown's white panel keeps dark text */
#vector-sticky-header .cdx-text-input__input {
.mw-header .vector-user-links-main a,
background: #13161f;
#vector-sticky-header .vector-user-links-main a {
border-color: #1e2230;
color: #ffffff !important;
color: #eaf2fb;
}
}
.mw-header .cdx-text-input__input::placeholder {
 
color: #6b7891;
/* 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;
}
}
}


Line 58: Line 86:
}
}


/* Selected tab gets the brand underline */
/* Selected tab gets the brand colour */
.vector-tab-noicon.selected > a,
.vector-tab-noicon.selected > a,
.vector-tab-noicon.selected {
.vector-tab-noicon.selected {
Line 80: Line 108:
border-top: 2px solid #0078d4;
border-top: 2px solid #0078d4;
}
}
/* Codex-drawn icons (user links, notifications, search magnifier)
 
   use currentColor — recolour rather than filter */
/* ==========================================================
.mw-header .cdx-icon,
  Main Page
.mw-header .cdx-button,
  ========================================================== */
#p-search .cdx-icon,
 
#vector-sticky-header .cdx-icon {
/* The Main Page speaks for itself — hide the default H1 */
color: #cfe4ff;
.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;
}
}
}
.mw-header .mw-ui-icon,
 
.mw-header .vector-user-links .mw-ui-icon {
/* Status notice */
filter: invert(0.85) brightness(1.3);
.llsl-notice {
background: #eaf2fb;
border: 1px solid #b8d4f0;
border-left: 4px solid #0078d4;
border-radius: 8px;
padding: 12px 16px;
margin: 8px 0 24px;
}
}

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;
}