Template:PatchHighlights/styles.css: Difference between revisions
Template page
More actions
No edit summary Tags: Mobile edit Mobile web edit |
No edit summary Tags: Mobile edit Mobile web edit |
||
| Line 1: | Line 1: | ||
/* SpiritVale Wiki — Template:PatchHighlights/styles.css */ | /* SpiritVale Wiki — Template:PatchHighlights/styles.css */ | ||
/* Patch highlight cards and responsive grid styles. */ | /* Patch highlight cards and responsive grid styles. */ | ||
/* -------------------------------------------------------------------------- */ | |||
/* Canonical ownership map */ | |||
/* -------------------------------------------------------------------------- */ | |||
/* This sheet owns only the PatchHighlights namespace: the wrap, grid, cards, */ | |||
/* and any responsive changes that are specific to PatchHighlights behavior. */ | |||
/* */ | |||
/* It does NOT own sitewide tokens, shared utilities, Citizen shell styling, */ | |||
/* or breakpoint definitions. Those remain in Common.css / Citizen.css. */ | |||
/* */ | |||
/* Responsive cleanup note: PatchHighlights now uses the canonical breakpoint */ | |||
/* ladder directly. It serves as a clean example of a module moving from */ | |||
/* ad hoc thresholds into the shared responsive vocabulary. */ | |||
/* -------------------------------------------------------------------------- */ | |||
/* Canonical ladder */ | |||
/* -------------------------------------------------------------------------- */ | |||
/* - default: <640px */ | |||
/* - sm: >=640px */ | |||
/* - md: >=768px */ | |||
/* - lg: >=1024px */ | |||
/* - xl: >=1280px */ | |||
/* - 2xl: >=1536px */ | |||
/* -------------------------------------------------------------------------- */ | |||
/* -------------------------------------------------------------------------- */ | /* -------------------------------------------------------------------------- */ | ||
| Line 25: | Line 48: | ||
.sv-ph-grid{ | .sv-ph-grid{ | ||
display:grid; | display:grid; | ||
grid-template-columns: | grid-template-columns:1fr; | ||
gap:1rem; | gap:1rem; | ||
align-items:start; | align-items:start; | ||
width:100%; | width:100%; | ||
direction: | direction:ltr; | ||
} | } | ||
| Line 100: | Line 123: | ||
/* -------------------------------------------------------------------------- */ | /* -------------------------------------------------------------------------- */ | ||
/* 4) Responsive */ | /* 4) Responsive */ | ||
/* -------------------------------------------------------------------------- */ | /* -------------------------------------------------------------------------- */ | ||
/* default (<640px): single featured card. */ | |||
/* sm-md (>=640px): two-up grid with two cards visible. */ | |||
/* lg+ (>=1024px): three-up grid with three cards visible. */ | |||
@media ( | .sv-ph-grid > .sv-ph-item:nth-of-type(n+2){ | ||
display:none; | |||
} | |||
@media (min-width:640px){ | |||
.sv-ph-grid{ | .sv-ph-grid{ | ||
grid-template-columns:repeat(2,1fr); | grid-template-columns:repeat(2,1fr); | ||
direction:rtl; | |||
} | |||
.sv-ph-grid > .sv-ph-item:nth-of-type(n+2){ | |||
display:block; | |||
} | } | ||
| Line 113: | Line 148: | ||
} | } | ||
@media ( | @media (min-width:1024px){ | ||
.sv-ph-grid{ | .sv-ph-grid{ | ||
grid-template-columns:1fr | grid-template-columns:repeat(3,1fr); | ||
} | } | ||
.sv-ph-grid > .sv-ph-item:nth-of-type(n+ | .sv-ph-grid > .sv-ph-item:nth-of-type(n+3){ | ||
display: | display:block; | ||
} | } | ||
} | } | ||