No edit summary |
No edit summary |
||
| Line 118: | Line 118: | ||
/* Reset skin defaults on h2 */ | /* Reset skin defaults on h2 */ | ||
.lp-page .pl-col | .lp-page .pl-col h2 { | ||
margin: 0 0 0.5rem; | margin: 0 0 0.5rem; | ||
padding: 0; | padding: 0; | ||
| Line 126: | Line 126: | ||
} | } | ||
| Line 171: | Line 170: | ||
.lp-page .pl-container-card > .pl-col:hover::after { transform: translateX(4px); } | .lp-page .pl-container-card > .pl-col:hover::after { transform: translateX(4px); } | ||
/*hide section anchors */ | |||
.lp-page .pl-col .sectionanchors-button, #content .lp-page .pl-col .mw-editsection {display:none!important} | |||
@media (prefers-reduced-motion: reduce) { | @media (prefers-reduced-motion: reduce) { | ||
.lp-page .pl-container-card > .pl-col, | .lp-page .pl-container-card > .pl-col, | ||
| Line 176: | Line 180: | ||
.lp-page .pl-container-card > .pl-col:hover { transform: none; } | .lp-page .pl-container-card > .pl-col:hover { transform: none; } | ||
} | } | ||
/** End landing pages styling **/ | |||
Revision as of 09:13, 16 October 2026
/* CSS placed here will be applied to all skins */
/*modernize wikitable*/
.wikitable {background-color:white!important;}
.wikitable tr th {background-color:#f2f3f9!important}
.wikitable th, .wikitable td {border-color: #c4c5ca!important}
/*hide NeoWiki nav */
#n-links-neowiki-page-tools-label {display:none;}
/*emphasize nav titles */
#sb-pri-cnt .card-header.menu-title {
background:#f1f3f9;
border-radius:5px;
margin-left:5px;
font-size:0.95em;
padding:2px 10px ;
margin-bottom:0.6em
}
/* images for Reference pages */
#importdata .mw li {
margin-left: 0;
list-style-type: none;
padding-left: 30px;
background: no-repeat left 1px top 3px / 18px url('/w/nsfr_img_auth.php/c/c6/MediaWiki-2020-small-icon.svg');
}
#importdata .bs li {
margin-left: 0;
list-style-type: none;
padding-left: 30px;
background: no-repeat left 2px top 4px / 15px url('/w/nsfr_img_auth.php/c/c4/Bluespice_Icon.svg');
}
/* created by Claude.ai
Everything is scoped to .lp-page, so other Galaxy card layouts are untouched.
To restyle ALL pl-container-card layouts wiki-wide, delete the ".lp-page " prefixes.
Optimized for WCAG */
:root {
--lp-accent: #2B80EA;
--lp-accent-soft: rgba(43, 128, 234, 0.12);
--lp-surface: #ffffff;
--lp-border: rgba(0, 0, 0, 0.1);
--lp-radius: 10px;
}
@media (prefers-color-scheme: dark) {
:root:not(.skin-light) {
--lp-border: rgba(255, 255, 255, 0.12);
--lp-text: #e8eaf0;
--lp-muted: #aab1c3;
--lp-accent-soft: rgba(43, 128, 234, 0.22);
}
}
/* Hero */
.lp-page .lp-hero {
padding: 2.5rem 2rem;
margin-bottom: 1.5rem;
border-radius: var(--lp-radius);
background:
radial-gradient(900px 300px at 0% 0%, var(--lp-accent-soft), transparent 70%),
var(--lp-surface);
border: 1px solid var(--lp-border);
}
.lp-page .lp-hero h1 {
margin: 0 0 0.5rem;
border: 0;
font-weight: 700;
letter-spacing: -0.02em;
color: var(--lp-text);
}
.lp-page .lp-lead {
max-width: 46rem;
margin: 0;
font-size: 1.15rem;
line-height: 1.6;
color: var(--lp-muted);
}
/* Galaxy card layout: spacing between rows and equal-height columns.
Layout (columns, breakpoints) is left to the pl-* classes. */
.lp-page .pl-container-card {
gap: 1.5rem;
margin-bottom: 1.5rem;
align-items: stretch;
}
/* The card itself */
.lp-page .pl-container-card > .pl-col {
position: relative; /* anchors the full-card click area */
box-sizing: border-box;
padding: 1.5rem;
border: 1px solid var(--lp-border);
border-radius: var(--lp-radius);
background: var(--lp-surface);
transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.lp-page .pl-container-card > .pl-col:hover,
.lp-page .pl-container-card > .pl-col:focus-within {
border-color: var(--lp-accent);
box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}
/* Icon in a tinted rounded square */
.lp-page .lp-icon {
display: flex;
align-items: center;
justify-content: center;
width: 3rem;
height: 3rem;
margin-bottom: 1rem;
border-radius: 12px;
background: var(--lp-accent-soft);
}
/* Reset skin defaults on h2 */
.lp-page .pl-col h2 {
margin: 0 0 0.5rem;
padding: 0;
border: 0;
font-size: 1.2rem;
font-weight: 650;
}
/* Whole card clickable + arrow affordance */
.lp-page .pl-container-card > .pl-col::after {
content: "\2192"; /* → */
display: block;
margin-top: 1rem;
font-weight: 600;
transition: transform 0.18s ease;
}
/* visible focus ring around the whole card */
.lp-page .pl-col .card-title a:focus-visible { outline: none; }
.lp-page .pl-col .card-title a:focus-visible::after {
outline: 3px solid var(--lp-accent);
outline-offset: 2px;
}
/* the link must NOT be positioned, or the overlay anchors to it */
.lp-page .pl-col .card-title a,
.lp-page .pl-col .card-text a { position: static; }
/* stretch whichever link exists (title or description) over the card */
.lp-page .pl-col .card-title a::after,
.lp-page .pl-col .card-text a::after {
content: "";
position: absolute;
inset: 0;
z-index: 1;
border-radius: var(--lp-radius);
}
.lp-page .pl-col .card-title a { text-decoration: none; }
/* arrow: decorative, with empty alt text (falls back below for older browsers) */
.lp-page .pl-container-card > .pl-col::after { content: "\2192"; }
@supports (content: "x" / "") {
.lp-page .pl-container-card > .pl-col::after { content: "\2192" / ""; }
}
.lp-page .pl-container-card > .pl-col:hover::after { transform: translateX(4px); }
/*hide section anchors */
.lp-page .pl-col .sectionanchors-button, #content .lp-page .pl-col .mw-editsection {display:none!important}
@media (prefers-reduced-motion: reduce) {
.lp-page .pl-container-card > .pl-col,
.lp-page .pl-container-card > .pl-col::after { transition: none; }
.lp-page .pl-container-card > .pl-col:hover { transform: none; }
}
/** End landing pages styling **/