Template:Main Page/styles.css: Difference between revisions
Template page
More actions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* | /* CONTAINER & FONTS */ | ||
.cs-home-container { | |||
.cs-container { | |||
max-width: 1200px; | max-width: 1200px; | ||
margin: 0 auto; | margin: 0 auto; | ||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; | ||
color: #1a1a1a; | |||
} | } | ||
/* | /* --- HERO SECTION (The Terminal Look) --- */ | ||
.cs- | .cs-hero { | ||
background-color: #0f172a; /* Dark Navy */ | |||
color: #f8fafc; | |||
padding: 60px 20px; | |||
border-radius: 12px; | |||
text-align: center; | text-align: center; | ||
margin-bottom: 40px; | |||
position: relative; | |||
border- | overflow: hidden; | ||
border: 1px solid #1e293b; | |||
border: | } | ||
.cs-hero h1 { | |||
font-size: 2.5em; | |||
font-weight: 800; | |||
margin: 0 0 15px 0; | |||
color: #ffffff; | |||
border: none; | |||
line-height: 1.2; | |||
} | } | ||
.cs- | .cs-hero-tag { | ||
font- | font-family: 'Courier New', monospace; | ||
color: #4ade80; /* Terminal Green */ | |||
background: rgba(74, 222, 128, 0.1); | |||
padding: 4px 8px; | |||
border-radius: 4px; | |||
font-size: 0.9em; | |||
} | } | ||
.cs- | .cs-hero p { | ||
font-size: 1.1em; | font-size: 1.1em; | ||
color: #94a3b8; | |||
max-width: 600px; | |||
margin: 0 auto 30px auto; | |||
} | } | ||
/* | /* --- SEARCH BAR --- */ | ||
.cs-search { | .cs-search-box { | ||
max-width: | max-width: 500px; | ||
margin: 0 auto | margin: 0 auto; | ||
padding: | background: #ffffff; | ||
padding: 8px; | |||
border-radius: 8px; | border-radius: 8px; | ||
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); | |||
} | } | ||
/* | /* Overriding MW InputBox defaults */ | ||
.cs-search | .cs-search-box input { | ||
border: none !important; | |||
background: transparent !important; | |||
outline: none !important; | |||
border: | |||
font-size: 16px !important; | font-size: 16px !important; | ||
color: #333 !important; | color: #333 !important; | ||
| Line 60: | Line 65: | ||
} | } | ||
/* | /* --- BENTO GRID LAYOUT --- */ | ||
.cs-bento-grid { | |||
display: grid; | |||
grid-template-columns: repeat(4, 1fr); | |||
grid-auto-rows: minmax(180px, auto); | |||
.cs- | gap: 20px; | ||
margin-bottom: 40px; | |||
} | } | ||
/* | /* CARD STYLES */ | ||
.cs- | .cs-tile { | ||
background: #ffffff; | |||
border: 1px solid #e2e8f0; | |||
border-radius: 12px; | |||
padding: 24px; | |||
transition: transform 0.2s ease, box-shadow 0.2s ease; | |||
display: flex; | |||
flex-direction: column; | |||
position: relative; | |||
border | |||
border- | |||
padding: | |||
. | |||
overflow: hidden; | overflow: hidden; | ||
} | } | ||
.cs- | .cs-tile:hover { | ||
transform: translateY(-2px); | |||
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); | |||
border-color: #cbd5e1; | |||
} | } | ||
.cs- | /* Typography inside tiles */ | ||
margin: 0; | .cs-tile h3 { | ||
font-size: 1. | margin-top: 0; | ||
font-weight: | font-size: 1.2em; | ||
border: none; | |||
font-weight: 700; | |||
margin-bottom: 10px; | |||
} | } | ||
.cs- | .cs-tile ul { | ||
list-style: none; | |||
margin: 0; | margin: 0; | ||
padding: 0 | padding: 0; | ||
font-size: 0.95em; | |||
} | } | ||
.cs-tile ul li { | |||
.cs- | margin-bottom: 6px; | ||
padding-left: 0; | |||
} | } | ||
.cs-tile ul li a { | |||
.cs- | |||
text-decoration: none; | text-decoration: none; | ||
color: #475569; | |||
display: block; | |||
padding: 2px 0; | |||
} | } | ||
.cs- | .cs-tile ul li a:hover { | ||
color: #2563eb; /* Blue hover */ | |||
padding-left: 4px; /* Slide effect */ | |||
transition: padding 0.2s; | |||
} | } | ||
.cs- | .cs-tile-footer { | ||
margin-top: auto; | |||
padding-top: 15px; | |||
font-size: 0.85em; | |||
font-weight: bold; | |||
text-transform: uppercase; | |||
letter-spacing: 0.5px; | |||
} | } | ||
.cs- | .cs-tile-footer a { | ||
text-decoration: none; | |||
color: #0f172a; | |||
} | } | ||
/* | /* --- FEATURED TILES (Bento Sizing) --- */ | ||
/* | /* The "Big" Feature Tile (Span 2 cols, 2 rows) */ | ||
.cs- | .cs-span-2-2 { | ||
background-color: | grid-column: span 2; | ||
border: | grid-row: span 2; | ||
background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); | |||
color: white; | |||
border: none; | |||
} | } | ||
.cs- | .cs-span-2-2 h3, .cs-span-2-2 a { color: white !important; } | ||
.cs-span-2-2 ul li a:hover { color: #bfdbfe; } | |||
} | |||
/* Wide Tiles (Span 2 cols) */ | |||
.cs-span-2 { grid-column: span 2; } | |||
} | |||
/* Tall Tiles (Span 2 rows) */ | |||
.cs-span-row-2 { grid-row: span 2; } | |||
} | |||
/* --- ICONS & DECORATION --- */ | |||
.cs-icon { | |||
font-size: 2em; | |||
margin-bottom: 15px; | |||
display: inline-block; | |||
.cs- | |||
} | } | ||
.cs- | /* --- RESPONSIVE --- */ | ||
@media (max-width: 1024px) { | |||
.cs-bento-grid { grid-template-columns: repeat(2, 1fr); } | |||
.cs-span-2-2 { grid-column: span 2; grid-row: auto; } | |||
} | } | ||
.cs- | @media (max-width: 600px) { | ||
.cs-bento-grid { grid-template-columns: 1fr; } | |||
.cs-span-2, .cs-span-2-2 { grid-column: span 1; } | |||
.cs-hero { padding: 40px 15px; } | |||
.cs-hero h1 { font-size: 1.8em; } | |||
} | } | ||
. | /* --- CITIZEN DARK MODE OVERRIDES --- */ | ||
/* We target the html class Citizen adds */ | |||
} | html.skin-theme-clientpref-night .cs-home-container { color: #e2e8f0; } | ||
html.skin-theme-clientpref-night .cs-hero { | |||
. | background-color: #020617; /* Even darker for hero */ | ||
background-color: # | border-color: #1e293b; | ||
border: | |||
} | } | ||
. | html.skin-theme-clientpref-night .cs-tile { | ||
background-color: # | background-color: #1e293b; /* Dark card bg */ | ||
border: | border-color: #334155; | ||
color: #f1f5f9; | |||
} | } | ||
. | html.skin-theme-clientpref-night .cs-tile:hover { | ||
background-color: # | background-color: #263346; | ||
border- | border-color: #475569; | ||
} | } | ||
html.skin-theme-clientpref-night .cs-tile h3 { color: #f8fafc; } | |||
html.skin-theme-clientpref-night .cs-tile ul li a { color: #cbd5e1; } | |||
html.skin-theme-clientpref-night .cs-tile ul li a:hover { color: #60a5fa; } /* Light blue hover */ | |||
html.skin-theme-clientpref-night .cs-tile-footer a { color: #94a3b8; } | |||
} | |||
/* | /* Keep the Main Feature blue tile bright, but adjust border */ | ||
html.skin-theme-clientpref-night .cs-span-2-2 { | |||
border: 1px solid #1e3a8a; | |||
} | } | ||
html.skin-theme-clientpref-night .cs-search-box { | |||
background: #334155; | |||
} | } | ||
html.skin-theme-clientpref-night .cs-search-box input { | |||
color: #ffffff !important; | |||
} | } | ||
Revision as of 23:07, 22 November 2025
/* CONTAINER & FONTS */
.cs-home-container {
max-width: 1200px;
margin: 0 auto;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
color: #1a1a1a;
}
/* --- HERO SECTION (The Terminal Look) --- */
.cs-hero {
background-color: #0f172a; /* Dark Navy */
color: #f8fafc;
padding: 60px 20px;
border-radius: 12px;
text-align: center;
margin-bottom: 40px;
position: relative;
overflow: hidden;
border: 1px solid #1e293b;
}
.cs-hero h1 {
font-size: 2.5em;
font-weight: 800;
margin: 0 0 15px 0;
color: #ffffff;
border: none;
line-height: 1.2;
}
.cs-hero-tag {
font-family: 'Courier New', monospace;
color: #4ade80; /* Terminal Green */
background: rgba(74, 222, 128, 0.1);
padding: 4px 8px;
border-radius: 4px;
font-size: 0.9em;
}
.cs-hero p {
font-size: 1.1em;
color: #94a3b8;
max-width: 600px;
margin: 0 auto 30px auto;
}
/* --- SEARCH BAR --- */
.cs-search-box {
max-width: 500px;
margin: 0 auto;
background: #ffffff;
padding: 8px;
border-radius: 8px;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
/* Overriding MW InputBox defaults */
.cs-search-box input {
border: none !important;
background: transparent !important;
outline: none !important;
font-size: 16px !important;
color: #333 !important;
width: 100% !important;
}
/* --- BENTO GRID LAYOUT --- */
.cs-bento-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-auto-rows: minmax(180px, auto);
gap: 20px;
margin-bottom: 40px;
}
/* CARD STYLES */
.cs-tile {
background: #ffffff;
border: 1px solid #e2e8f0;
border-radius: 12px;
padding: 24px;
transition: transform 0.2s ease, box-shadow 0.2s ease;
display: flex;
flex-direction: column;
position: relative;
overflow: hidden;
}
.cs-tile:hover {
transform: translateY(-2px);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
border-color: #cbd5e1;
}
/* Typography inside tiles */
.cs-tile h3 {
margin-top: 0;
font-size: 1.2em;
border: none;
font-weight: 700;
margin-bottom: 10px;
}
.cs-tile ul {
list-style: none;
margin: 0;
padding: 0;
font-size: 0.95em;
}
.cs-tile ul li {
margin-bottom: 6px;
padding-left: 0;
}
.cs-tile ul li a {
text-decoration: none;
color: #475569;
display: block;
padding: 2px 0;
}
.cs-tile ul li a:hover {
color: #2563eb; /* Blue hover */
padding-left: 4px; /* Slide effect */
transition: padding 0.2s;
}
.cs-tile-footer {
margin-top: auto;
padding-top: 15px;
font-size: 0.85em;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.cs-tile-footer a {
text-decoration: none;
color: #0f172a;
}
/* --- FEATURED TILES (Bento Sizing) --- */
/* The "Big" Feature Tile (Span 2 cols, 2 rows) */
.cs-span-2-2 {
grid-column: span 2;
grid-row: span 2;
background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
color: white;
border: none;
}
.cs-span-2-2 h3, .cs-span-2-2 a { color: white !important; }
.cs-span-2-2 ul li a:hover { color: #bfdbfe; }
/* Wide Tiles (Span 2 cols) */
.cs-span-2 { grid-column: span 2; }
/* Tall Tiles (Span 2 rows) */
.cs-span-row-2 { grid-row: span 2; }
/* --- ICONS & DECORATION --- */
.cs-icon {
font-size: 2em;
margin-bottom: 15px;
display: inline-block;
}
/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
.cs-bento-grid { grid-template-columns: repeat(2, 1fr); }
.cs-span-2-2 { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 600px) {
.cs-bento-grid { grid-template-columns: 1fr; }
.cs-span-2, .cs-span-2-2 { grid-column: span 1; }
.cs-hero { padding: 40px 15px; }
.cs-hero h1 { font-size: 1.8em; }
}
/* --- CITIZEN DARK MODE OVERRIDES --- */
/* We target the html class Citizen adds */
html.skin-theme-clientpref-night .cs-home-container { color: #e2e8f0; }
html.skin-theme-clientpref-night .cs-hero {
background-color: #020617; /* Even darker for hero */
border-color: #1e293b;
}
html.skin-theme-clientpref-night .cs-tile {
background-color: #1e293b; /* Dark card bg */
border-color: #334155;
color: #f1f5f9;
}
html.skin-theme-clientpref-night .cs-tile:hover {
background-color: #263346;
border-color: #475569;
}
html.skin-theme-clientpref-night .cs-tile h3 { color: #f8fafc; }
html.skin-theme-clientpref-night .cs-tile ul li a { color: #cbd5e1; }
html.skin-theme-clientpref-night .cs-tile ul li a:hover { color: #60a5fa; } /* Light blue hover */
html.skin-theme-clientpref-night .cs-tile-footer a { color: #94a3b8; }
/* Keep the Main Feature blue tile bright, but adjust border */
html.skin-theme-clientpref-night .cs-span-2-2 {
border: 1px solid #1e3a8a;
}
html.skin-theme-clientpref-night .cs-search-box {
background: #334155;
}
html.skin-theme-clientpref-night .cs-search-box input {
color: #ffffff !important;
}