Template:Main Page/styles.css: Difference between revisions
Template page
More actions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* --- | /* --- CONTAINER --- */ | ||
.cs- | .cs-doc-container { | ||
max-width: | max-width: 1100px; | ||
margin: 0 auto; | margin: 0 auto; | ||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; | ||
color: #1f2937; | color: #1f2937; | ||
line-height: 1.6; | |||
} | } | ||
/* --- HERO | /* --- HERO SECTION (Clean & Centered) --- */ | ||
.cs- | .cs-doc-hero { | ||
text-align: center; | |||
padding: 60px 20px 40px; | |||
margin-bottom: 40px; | |||
margin-bottom: | |||
border-bottom: 1px solid #e5e7eb; | border-bottom: 1px solid #e5e7eb; | ||
} | } | ||
.cs-doc-hero h1 { | |||
font-size: 2.5em; | |||
font-weight: 700; | |||
margin: 0 0 15px 0; | |||
color: #111827; | |||
.cs- | |||
font-size: 2. | |||
font-weight: | |||
margin: 0 0 | |||
border: none; | border: none; | ||
line-height: 1.2; | |||
} | } | ||
.cs- | .cs-doc-hero p { | ||
font-size: 1.2em; | font-size: 1.2em; | ||
color: # | color: #6b7280; | ||
margin: 0 auto 30px; | |||
max-width: 600px; | max-width: 600px; | ||
} | } | ||
/* --- SEARCH BAR --- */ | /* --- SEARCH BAR (Modern & Wide) --- */ | ||
.cs- | .cs-search-wrapper { | ||
max-width: 600px; | |||
max-width: | |||
margin: 0 auto; | margin: 0 auto; | ||
} | } | ||
.cs- | .cs-search-wrapper input { | ||
width: 100% !important; | |||
padding: 15px 20px !important; | |||
font-size: 1.1em !important; | font-size: 1.1em !important; | ||
border: 2px solid #e5e7eb !important; | |||
border-radius: 8px !important; | |||
outline: none !important; | outline: none !important; | ||
color: | transition: border-color 0.2s; | ||
box-shadow: 0 2px 5px rgba(0,0,0,0.05); | |||
} | } | ||
/* --- | .cs-search-wrapper input:focus { | ||
.cs- | border-color: #3b82f6 !important; /* Blue focus */ | ||
} | |||
/* --- TRACKS GRID --- */ | |||
.cs-track-header { | |||
display: flex; | display: flex; | ||
align-items: | align-items: baseline; | ||
justify-content: space-between; | justify-content: space-between; | ||
margin | margin: 40px 0 20px; | ||
border-bottom: 2px solid #f3f4f6; | |||
border-bottom: 2px solid # | |||
padding-bottom: 10px; | padding-bottom: 10px; | ||
} | } | ||
.cs- | .cs-track-header h2 { | ||
font-size: 1.5em; | font-size: 1.5em; | ||
margin: 0; | margin: 0; | ||
border: none; | border: none; | ||
font-weight: 700; | |||
color: #111827; | color: #111827; | ||
} | } | ||
.cs- | .cs-track-grid { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); | grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); | ||
gap: | gap: 20px; | ||
} | } | ||
/* --- | /* --- CARDS (Minimalist) --- */ | ||
.cs-card { | .cs-doc-card { | ||
background: #ffffff; | background: #ffffff; | ||
border: 1px solid #e5e7eb; | border: 1px solid #e5e7eb; | ||
border-radius: | border-radius: 8px; | ||
padding: | padding: 24px; | ||
transition: | transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s; | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
height: 100%; /* Force equal height */ | |||
box-sizing: border-box; /* Fix padding issues */ | |||
} | } | ||
.cs-card:hover { | .cs-doc-card:hover { | ||
transform: translateY(-2px); | |||
box-shadow: 0 | box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1); | ||
border-color: #3b82f6; | border-color: #3b82f6; | ||
} | } | ||
.cs-card- | /* Header inside card */ | ||
.cs-doc-card h3 { | |||
margin-top: 0 !important; /* Force reset MediaWiki margins */ | |||
margin-bottom: 10px !important; | |||
font-size: 1.25em; | |||
font-weight: 600; | |||
border: none; | |||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
gap: 10px; | |||
gap: | |||
} | } | ||
.cs-icon | /* The Icon */ | ||
.cs-card-icon { | |||
font-size: 1.2em; | |||
opacity: 0.8; | |||
font-size: 1. | |||
} | } | ||
/* | /* The Description */ | ||
.cs- | .cs-doc-card p { | ||
font-size: 0.95em; | |||
font-size: | |||
color: #6b7280; | color: #6b7280; | ||
margin-bottom: 15px; | |||
margin-bottom: | flex-grow: 1; /* Pushes list down */ | ||
flex-grow: 1; | |||
} | } | ||
/* | /* The Links List */ | ||
.cs- | .cs-doc-list { | ||
margin: 0; | margin: 0; | ||
padding: 0; | padding: 0; | ||
list-style: none; | |||
border-top: 1px solid #f3f4f6; | border-top: 1px solid #f3f4f6; | ||
padding-top: 15px; | padding-top: 15px; | ||
} | } | ||
.cs- | .cs-doc-list li { | ||
margin-bottom: 8px; | margin-bottom: 8px; | ||
padding-left: 0; | padding-left: 0; | ||
font-size: 0.95em; | |||
} | } | ||
.cs- | .cs-doc-list li a { | ||
text-decoration: none; | text-decoration: none; | ||
color: #374151; | color: #374151; /* Dark grey */ | ||
font-weight: 500; | font-weight: 500; | ||
display: block; | display: block; | ||
transition: color 0.2s; | transition: color 0.2s; | ||
} | } | ||
.cs- | .cs-doc-list li a:hover { | ||
color: #2563eb; | color: #2563eb; /* Blue hover */ | ||
text-decoration: underline; | |||
} | } | ||
.cs-card-footer { | |||
.cs- | margin-top: 10px; | ||
font-size: 0.85em; | |||
text-align: right; | |||
font-weight: bold; | |||
} | |||
/* --- FOOTER CTA --- */ | |||
.cs-footer-cta { | |||
margin-top: 60px; | margin-top: 60px; | ||
padding: 40px; | |||
background-color: #f9fafb; | |||
border: 1px solid #e5e7eb; | |||
border-radius: 8px; | |||
text-align: center; | text-align: center; | ||
} | } | ||
/* ========================================= */ | /* ========================================= */ | ||
/* === DARK MODE | /* === DARK MODE (Citizen Skin Overrides) === */ | ||
/* ========================================= */ | /* ========================================= */ | ||
html.skin-theme-clientpref-night .cs- | html.skin-theme-clientpref-night .cs-doc-container { | ||
color: # | color: #d1d5db; | ||
} | } | ||
/* Hero Dark | /* Hero Dark */ | ||
html.skin-theme-clientpref-night .cs- | html.skin-theme-clientpref-night .cs-doc-hero { | ||
border-bottom-color: #374151; | |||
} | } | ||
html.skin-theme-clientpref-night .cs-doc-hero h1 { | |||
html.skin-theme-clientpref-night .cs- | color: #f3f4f6; | ||
} | } | ||
html.skin-theme-clientpref-night .cs-doc-hero p { | |||
html.skin-theme-clientpref-night .cs- | |||
color: #9ca3af; | color: #9ca3af; | ||
} | } | ||
html.skin-theme-clientpref-night .cs- | /* Search Dark */ | ||
color: # | html.skin-theme-clientpref-night .cs-search-wrapper input { | ||
background-color: #1f2937 !important; | |||
border-color: #4b5563 !important; | |||
color: #ffffff !important; | |||
} | } | ||
html.skin-theme-clientpref-night .cs-search-wrapper input:focus { | |||
html.skin-theme-clientpref-night .cs- | border-color: #60a5fa !important; | ||
color: # | |||
} | } | ||
/* | /* Headers Dark */ | ||
html.skin-theme-clientpref-night .cs- | html.skin-theme-clientpref-night .cs-track-header { | ||
border-bottom-color: #374151; | |||
border-color: # | |||
} | } | ||
html.skin-theme-clientpref-night .cs-track-header h2 { | |||
html.skin-theme-clientpref-night .cs- | color: #f3f4f6; | ||
color: #f3f4f6 | |||
} | } | ||
/* | /* Cards Dark */ | ||
html.skin-theme-clientpref-night .cs- | html.skin-theme-clientpref-night .cs-doc-card { | ||
background-color: #1f2937; /* Dark Grey background */ | |||
border-color: #374151; | border-color: #374151; | ||
} | } | ||
html.skin-theme-clientpref-night .cs- | html.skin-theme-clientpref-night .cs-doc-card:hover { | ||
color: # | border-color: #60a5fa; /* Light Blue hover */ | ||
background-color: #262f3e; /* Slightly lighter on hover */ | |||
} | } | ||
html.skin-theme-clientpref-night .cs- | html.skin-theme-clientpref-night .cs-doc-card h3 { | ||
color: #f3f4f6; | color: #f3f4f6; | ||
} | } | ||
html.skin-theme-clientpref-night .cs-doc-card p { | |||
html.skin-theme-clientpref-night .cs-card | |||
color: #9ca3af; | color: #9ca3af; | ||
} | } | ||
/* | /* Lists Dark */ | ||
html.skin-theme-clientpref-night .cs- | html.skin-theme-clientpref-night .cs-doc-list { | ||
border-top-color: #374151; | border-top-color: #374151; | ||
} | } | ||
html.skin-theme-clientpref-night .cs-doc-list li a { | |||
html.skin-theme-clientpref-night .cs- | |||
color: #d1d5db; | color: #d1d5db; | ||
} | |||
html.skin-theme-clientpref-night .cs-doc-list li a:hover { | |||
color: #93c5fd; /* Light Blue hover */ | |||
} | } | ||
html.skin-theme-clientpref-night .cs- | /* Footer Dark */ | ||
color: # | html.skin-theme-clientpref-night .cs-footer-cta { | ||
background-color: #1f2937; | |||
border-color: #374151; | |||
} | } | ||
Revision as of 23:19, 22 November 2025
/* --- CONTAINER --- */
.cs-doc-container {
max-width: 1100px;
margin: 0 auto;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
color: #1f2937;
line-height: 1.6;
}
/* --- HERO SECTION (Clean & Centered) --- */
.cs-doc-hero {
text-align: center;
padding: 60px 20px 40px;
margin-bottom: 40px;
border-bottom: 1px solid #e5e7eb;
}
.cs-doc-hero h1 {
font-size: 2.5em;
font-weight: 700;
margin: 0 0 15px 0;
color: #111827;
border: none;
line-height: 1.2;
}
.cs-doc-hero p {
font-size: 1.2em;
color: #6b7280;
margin: 0 auto 30px;
max-width: 600px;
}
/* --- SEARCH BAR (Modern & Wide) --- */
.cs-search-wrapper {
max-width: 600px;
margin: 0 auto;
}
.cs-search-wrapper input {
width: 100% !important;
padding: 15px 20px !important;
font-size: 1.1em !important;
border: 2px solid #e5e7eb !important;
border-radius: 8px !important;
outline: none !important;
transition: border-color 0.2s;
box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.cs-search-wrapper input:focus {
border-color: #3b82f6 !important; /* Blue focus */
}
/* --- TRACKS GRID --- */
.cs-track-header {
display: flex;
align-items: baseline;
justify-content: space-between;
margin: 40px 0 20px;
border-bottom: 2px solid #f3f4f6;
padding-bottom: 10px;
}
.cs-track-header h2 {
font-size: 1.5em;
margin: 0;
border: none;
font-weight: 700;
color: #111827;
}
.cs-track-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
}
/* --- CARDS (Minimalist) --- */
.cs-doc-card {
background: #ffffff;
border: 1px solid #e5e7eb;
border-radius: 8px;
padding: 24px;
transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
display: flex;
flex-direction: column;
height: 100%; /* Force equal height */
box-sizing: border-box; /* Fix padding issues */
}
.cs-doc-card:hover {
transform: translateY(-2px);
box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
border-color: #3b82f6;
}
/* Header inside card */
.cs-doc-card h3 {
margin-top: 0 !important; /* Force reset MediaWiki margins */
margin-bottom: 10px !important;
font-size: 1.25em;
font-weight: 600;
border: none;
display: flex;
align-items: center;
gap: 10px;
}
/* The Icon */
.cs-card-icon {
font-size: 1.2em;
opacity: 0.8;
}
/* The Description */
.cs-doc-card p {
font-size: 0.95em;
color: #6b7280;
margin-bottom: 15px;
flex-grow: 1; /* Pushes list down */
}
/* The Links List */
.cs-doc-list {
margin: 0;
padding: 0;
list-style: none;
border-top: 1px solid #f3f4f6;
padding-top: 15px;
}
.cs-doc-list li {
margin-bottom: 8px;
padding-left: 0;
font-size: 0.95em;
}
.cs-doc-list li a {
text-decoration: none;
color: #374151; /* Dark grey */
font-weight: 500;
display: block;
transition: color 0.2s;
}
.cs-doc-list li a:hover {
color: #2563eb; /* Blue hover */
text-decoration: underline;
}
.cs-card-footer {
margin-top: 10px;
font-size: 0.85em;
text-align: right;
font-weight: bold;
}
/* --- FOOTER CTA --- */
.cs-footer-cta {
margin-top: 60px;
padding: 40px;
background-color: #f9fafb;
border: 1px solid #e5e7eb;
border-radius: 8px;
text-align: center;
}
/* ========================================= */
/* === DARK MODE (Citizen Skin Overrides) === */
/* ========================================= */
html.skin-theme-clientpref-night .cs-doc-container {
color: #d1d5db;
}
/* Hero Dark */
html.skin-theme-clientpref-night .cs-doc-hero {
border-bottom-color: #374151;
}
html.skin-theme-clientpref-night .cs-doc-hero h1 {
color: #f3f4f6;
}
html.skin-theme-clientpref-night .cs-doc-hero p {
color: #9ca3af;
}
/* Search Dark */
html.skin-theme-clientpref-night .cs-search-wrapper input {
background-color: #1f2937 !important;
border-color: #4b5563 !important;
color: #ffffff !important;
}
html.skin-theme-clientpref-night .cs-search-wrapper input:focus {
border-color: #60a5fa !important;
}
/* Headers Dark */
html.skin-theme-clientpref-night .cs-track-header {
border-bottom-color: #374151;
}
html.skin-theme-clientpref-night .cs-track-header h2 {
color: #f3f4f6;
}
/* Cards Dark */
html.skin-theme-clientpref-night .cs-doc-card {
background-color: #1f2937; /* Dark Grey background */
border-color: #374151;
}
html.skin-theme-clientpref-night .cs-doc-card:hover {
border-color: #60a5fa; /* Light Blue hover */
background-color: #262f3e; /* Slightly lighter on hover */
}
html.skin-theme-clientpref-night .cs-doc-card h3 {
color: #f3f4f6;
}
html.skin-theme-clientpref-night .cs-doc-card p {
color: #9ca3af;
}
/* Lists Dark */
html.skin-theme-clientpref-night .cs-doc-list {
border-top-color: #374151;
}
html.skin-theme-clientpref-night .cs-doc-list li a {
color: #d1d5db;
}
html.skin-theme-clientpref-night .cs-doc-list li a:hover {
color: #93c5fd; /* Light Blue hover */
}
/* Footer Dark */
html.skin-theme-clientpref-night .cs-footer-cta {
background-color: #1f2937;
border-color: #374151;
}