Template:Main Page/styles.css: Difference between revisions
Template page
More actions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/** | /** | ||
* ComputerScience.wiki - | * ComputerScience.wiki - Responsive Grid + Original Color Scheme | ||
*/ | */ | ||
/* --- CONTAINER --- */ | /* --- 1. CONTAINER & TYPOGRAPHY --- */ | ||
.cs-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, sans-serif; | ||
padding: 0 10px; | padding: 0 10px; /* Prevents edge touching on mobile */ | ||
} | } | ||
/* --- HEADER --- */ | /* --- 2. HEADER --- */ | ||
.cs-header { | .cs-header { | ||
text-align: center; | text-align: center; | ||
padding: | padding: 30px 20px; | ||
margin-bottom: 30px; | margin-bottom: 30px; | ||
border-radius: 8px; | border-radius: 8px; | ||
| Line 23: | Line 22: | ||
.cs-title { | .cs-title { | ||
font-size: | font-size: 2em; | ||
font-weight: | font-weight: 700; | ||
margin: 0; | margin: 0; | ||
color: #000; | color: #000; | ||
border: none; | |||
} | } | ||
.cs-subtitle { | .cs-subtitle { | ||
font-size: 1. | font-size: 1.1em; | ||
font-weight: normal; | |||
margin | margin: 10px 0 0; | ||
color: #444; | |||
} | } | ||
/* --- SEARCH ( | /* --- 3. SEARCH (Exact copy from your working css.txt) --- */ | ||
.cs-search { | .cs-search { | ||
max-width: 800px; | max-width: 800px; | ||
| Line 46: | Line 46: | ||
} | } | ||
.cs-search input[type="search"], | .cs-search input[type="search"], | ||
.cs-search .mw-searchInput { | .cs-search .mw-searchInput { | ||
background-color: #ffffff !important; | background-color: #ffffff !important; | ||
border: 1px solid #ddd !important; | border: 1px solid #ddd !important; | ||
height: | height: 40px !important; | ||
padding: 5px | padding: 5px 12px !important; | ||
border-radius: 4px !important; | border-radius: 4px !important; | ||
font-size: 16px !important; | font-size: 16px !important; | ||
color: #333 !important; | color: #333 !important; | ||
width: 100% !important; | width: 100% !important; | ||
} | } | ||
.cs-search input[type="submit"], | .cs-search input[type="submit"], | ||
.cs-search .oo-ui-buttonElement-button { | .cs-search .oo-ui-buttonElement-button { | ||
| Line 66: | Line 63: | ||
background-color: #f0f0f0 !important; | background-color: #f0f0f0 !important; | ||
border: 1px solid #ddd !important; | border: 1px solid #ddd !important; | ||
height: | height: 40px !important; | ||
font-weight: | font-weight: 600 !important; | ||
cursor: pointer !important; | cursor: pointer !important; | ||
color: #333 !important; | |||
} | } | ||
.cs-search input[name="fulltext"] { display: none !important; } | .cs-search input[name="fulltext"] { display: none !important; } | ||
/* --- 4. GRID LAYOUT (The Responsive Fix) --- */ | |||
/* --- GRID | /* This replaces the <table> structure */ | ||
/* | |||
.cs-grid { | .cs-grid { | ||
display: grid; | display: grid; | ||
/* | /* This command makes it responsive automatically: */ | ||
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); | grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); | ||
gap: | gap: 20px; /* Space between cards */ | ||
margin-bottom: | margin-bottom: 30px; | ||
} | |||
/* --- 5. CARDS & SECTIONS --- */ | |||
.cs-section { | |||
margin-bottom: 30px; | |||
} | } | ||
.cs-section-header { | .cs-section-header { | ||
padding: 15px | padding: 12px 15px; | ||
margin-bottom: 20px; | margin-bottom: 20px; | ||
border-radius: | border-radius: 6px; | ||
} | } | ||
.cs-section-title { | .cs-section-title { | ||
margin: 0; | margin: 0; | ||
font-size: 1. | font-size: 1.3em; | ||
font-weight: | font-weight: 600; | ||
border: none; | |||
} | } | ||
.cs-card { | .cs-card { | ||
border-radius: | border-radius: 6px; | ||
overflow: hidden; | overflow: hidden; | ||
height: 100%; | height: 100%; /* Ensures all cards in a row are same height */ | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
border-width: 1px; | |||
border-style: solid; | |||
} | } | ||
.cs-card-header { | .cs-card-header { | ||
padding: 15px | padding: 12px 15px; | ||
} | } | ||
.cs-card-title { | .cs-card-title { | ||
margin: 0; | margin: 0; | ||
font-size: 1. | font-size: 1.1em; | ||
font-weight: 600; | |||
border: none; | |||
} | } | ||
.cs-card-body { | .cs-card-body { | ||
padding: | padding: 15px; | ||
flex-grow: 1; /* | flex-grow: 1; /* Pushes footer to the bottom */ | ||
} | } | ||
.cs-card-list { | .cs-card-list { | ||
margin: 0; | margin: 0; | ||
padding: 0; | padding: 0 0 0 10px; | ||
list-style: none; | list-style: none; | ||
} | } | ||
.cs-card-list li { | .cs-card-list li { | ||
margin-bottom: | margin-bottom: 8px; | ||
} | } | ||
.cs-card-footer { | .cs-card-footer { | ||
padding: 15px | padding: 8px 15px; | ||
text-align: right; | text-align: right; | ||
font-weight: bold; | font-weight: bold; | ||
} | } | ||
| Line 155: | Line 143: | ||
.cs-card-footer a { | .cs-card-footer a { | ||
text-decoration: none; | text-decoration: none; | ||
transition: opacity 0.2s; | |||
} | } | ||
/* | /* ========================================================= */ | ||
/* === COLOR THEMES (Exact mappings from your css.txt) === */ | |||
/* ========================================================= */ | |||
/* | /* PROGRAMMING (Green) */ | ||
.cs-section.prog .cs-section-header { background-color: #cef2e0; border: 1px solid #cef2e0; } | .cs-section.prog .cs-section-header { background-color: #cef2e0; border: 1px solid #cef2e0; } | ||
.cs-section.prog .cs-card { background-color: #f5fffa; border: | .cs-section.prog .cs-card { background-color: #f5fffa; border-color: #cef2e0; } | ||
.cs-section.prog .cs-card-header { background-color: #cef2e0; border-bottom: 1px solid #cef2e0; } | .cs-section.prog .cs-card-header { background-color: #cef2e0; border-bottom: 1px solid #cef2e0; } | ||
.cs-section.prog .cs-card-footer { background-color: #f5fffa; border-top: 1px solid #cef2e0; } | .cs-section.prog .cs-card-footer { background-color: #f5fffa; border-top: 1px solid #cef2e0; } | ||
.cs-section.prog .cs-card-footer a { color: #2e8b57; } | .cs-section.prog .cs-card-footer a { color: #2e8b57; } | ||
/* | /* DATA SCIENCE (Blue) */ | ||
.cs-section.data .cs-section-header { background-color: #cedff2; border: 1px solid #cedff2; } | .cs-section.data .cs-section-header { background-color: #cedff2; border: 1px solid #cedff2; } | ||
.cs-section.data .cs-card { background-color: #f5faff; border: | .cs-section.data .cs-card { background-color: #f5faff; border-color: #cedff2; } | ||
.cs-section.data .cs-card-header { background-color: #cedff2; border-bottom: 1px solid #cedff2; } | .cs-section.data .cs-card-header { background-color: #cedff2; border-bottom: 1px solid #cedff2; } | ||
.cs-section.data .cs-card-footer { background-color: #f5faff; border-top: 1px solid #cedff2; } | .cs-section.data .cs-card-footer { background-color: #f5faff; border-top: 1px solid #cedff2; } | ||
.cs-section.data .cs-card-footer a { color: #4169e1; } | .cs-section.data .cs-card-footer a { color: #4169e1; } | ||
/* | /* DATABASES (Pink) */ | ||
.cs-section.db .cs-section-header { background-color: #f2cedd; border: 1px solid #f2cedd; } | .cs-section.db .cs-section-header { background-color: #f2cedd; border: 1px solid #f2cedd; } | ||
.cs-section.db .cs-card { background-color: #fff5fa; border: | .cs-section.db .cs-card { background-color: #fff5fa; border-color: #f2cedd; } | ||
.cs-section.db .cs-card-header { background-color: #f2cedd; border-bottom: 1px solid #f2cedd; } | .cs-section.db .cs-card-header { background-color: #f2cedd; border-bottom: 1px solid #f2cedd; } | ||
.cs-section.db .cs-card-footer { background-color: #fff5fa; border-top: 1px solid #f2cedd; } | .cs-section.db .cs-card-footer { background-color: #fff5fa; border-top: 1px solid #f2cedd; } | ||
.cs-section.db .cs-card-footer a { color: #db7093; } | .cs-section.db .cs-card-footer a { color: #db7093; } | ||
/* | /* INFRASTRUCTURE (Purple) */ | ||
.cs-section.inf .cs-section-header { background-color: #ddcef2; border: 1px solid #ddcef2; } | .cs-section.inf .cs-section-header { background-color: #ddcef2; border: 1px solid #ddcef2; } | ||
.cs-section.inf .cs-card { background-color: #faf5ff; border: | .cs-section.inf .cs-card { background-color: #faf5ff; border-color: #ddcef2; } | ||
.cs-section.inf .cs-card-header { background-color: #ddcef2; border-bottom: 1px solid #ddcef2; } | .cs-section.inf .cs-card-header { background-color: #ddcef2; border-bottom: 1px solid #ddcef2; } | ||
.cs-section.inf .cs-card-footer { background-color: #faf5ff; border-top: 1px solid #ddcef2; } | .cs-section.inf .cs-card-footer { background-color: #faf5ff; border-top: 1px solid #ddcef2; } | ||
.cs-section.inf .cs-card-footer a { color: #8a2be2; } | .cs-section.inf .cs-card-footer a { color: #8a2be2; } | ||
/* | /* FUNDAMENTALS (Orange) */ | ||
.cs-section.fund .cs-section-header { background-color: #f2e0ce; border: 1px solid #f2e0ce; } | .cs-section.fund .cs-section-header { background-color: #f2e0ce; border: 1px solid #f2e0ce; } | ||
.cs-section.fund .cs-card { background-color: #fffaf5; border: | .cs-section.fund .cs-card { background-color: #fffaf5; border-color: #f2e0ce; } | ||
.cs-section.fund .cs-card-header { background-color: #f2e0ce; border-bottom: 1px solid #f2e0ce; } | .cs-section.fund .cs-card-header { background-color: #f2e0ce; border-bottom: 1px solid #f2e0ce; } | ||
.cs-section.fund .cs-card-footer { background-color: #fffaf5; border-top: 1px solid #f2e0ce; } | .cs-section.fund .cs-card-footer { background-color: #fffaf5; border-top: 1px solid #f2e0ce; } | ||
.cs-section.fund .cs-card-footer a { color: #d2691e; } | .cs-section.fund .cs-card-footer a { color: #d2691e; } | ||
/* | /* COMMUNITY (Grey) */ | ||
.cs-section.comm .cs-section-header { background-color: #eee; border: 1px solid #eee; } | .cs-section.comm .cs-section-header { background-color: #eee; border: 1px solid #eee; } | ||
.cs-section.comm .cs-card { background-color: #f9f9f9; border: | .cs-section.comm .cs-card { background-color: #f9f9f9; border-color: #eee; } | ||
.cs-section.comm .cs-card-header { background-color: #eee; border-bottom: 1px solid #eee; } | .cs-section.comm .cs-card-header { background-color: #eee; border-bottom: 1px solid #eee; } | ||
.cs-section.comm .cs-card-footer { background-color: #f9f9f9; border-top: 1px solid #eee; } | .cs-section.comm .cs-card-footer { background-color: #f9f9f9; border-top: 1px solid #eee; } | ||
| Line 202: | Line 193: | ||
/* | /* ========================================================= */ | ||
/* === DARK MODE OVERRIDES (Restored from your css.txt) === */ | |||
/* ========================================================= */ | |||
@media screen { | @media screen { | ||
/* Global Dark Mode adjustments */ | |||
html.skin-theme-clientpref-night .cs-header { background-color: #171a1d; border-color: #676767; } | html.skin-theme-clientpref-night .cs-header { background-color: #171a1d; border-color: #676767; } | ||
html.skin-theme-clientpref-night .cs-title { color: #fff; } | html.skin-theme-clientpref-night .cs-title { color: #fff; } | ||
| Line 209: | Line 204: | ||
html.skin-theme-clientpref-night .cs-search { background-color: #252525; border-color: #676767; } | html.skin-theme-clientpref-night .cs-search { background-color: #252525; border-color: #676767; } | ||
html.skin-theme-clientpref-night .cs-search input { background-color: #1f1f1f !important; color: #fff !important; border-color: #555 !important; } | html.skin-theme-clientpref-night .cs-search input { background-color: #1f1f1f !important; color: #fff !important; border-color: #555 !important; } | ||
html.skin-theme-clientpref-night .cs-search input[type="submit"] { background-color: #444 !important; } | html.skin-theme-clientpref-night .cs-search input[type="submit"] { background-color: #444 !important; border-color: #555 !important; color: #fff !important; } | ||
html.skin-theme-clientpref-night .cs-section-title, | |||
html.skin-theme-clientpref-night .cs-card-title { color: #fff; } | |||
html.skin-theme-clientpref-night .cs-card-list li { color: #ccc; } | html.skin-theme-clientpref-night .cs-card-list li { color: #ccc; } | ||
/* Programming Dark */ | /* Programming Dark (Restored from lines 112-116 of css.txt) */ | ||
html.skin-theme-clientpref-night .cs-section.prog .cs-section-header, | html.skin-theme-clientpref-night .cs-section.prog .cs-section-header, | ||
html.skin-theme-clientpref-night .cs-section.prog .cs-card-header { background-color: #104437; border-color: #104437; } | html.skin-theme-clientpref-night .cs-section.prog .cs-card-header { background-color: #104437; border-color: #104437; } | ||
| Line 219: | Line 216: | ||
html.skin-theme-clientpref-night .cs-section.prog .cs-card-footer a { color: #8fbc8f; } | html.skin-theme-clientpref-night .cs-section.prog .cs-card-footer a { color: #8fbc8f; } | ||
/* Data Dark */ | /* Data Science Dark (Restored from lines 117-121) */ | ||
html.skin-theme-clientpref-night .cs-section.data .cs-section-header, | html.skin-theme-clientpref-night .cs-section.data .cs-section-header, | ||
html.skin-theme-clientpref-night .cs-section.data .cs-card-header { background-color: #082849; border-color: #082849; } | html.skin-theme-clientpref-night .cs-section.data .cs-card-header { background-color: #082849; border-color: #082849; } | ||
| Line 225: | Line 222: | ||
html.skin-theme-clientpref-night .cs-section.data .cs-card-footer { background-color: #0d1a27; border-color: #082849; } | html.skin-theme-clientpref-night .cs-section.data .cs-card-footer { background-color: #0d1a27; border-color: #082849; } | ||
html.skin-theme-clientpref-night .cs-section.data .cs-card-footer a { color: #87cefa; } | html.skin-theme-clientpref-night .cs-section.data .cs-card-footer a { color: #87cefa; } | ||
/* | /* Databases Dark (Restored from lines 122-126) */ | ||
html.skin-theme-clientpref-night .cs-section.db .cs-section-header, | html.skin-theme-clientpref-night .cs-section.db .cs-section-header, | ||
html.skin-theme-clientpref-night .cs-section.db .cs-card-header { background-color: #882c43; border-color: #882c43; } | html.skin-theme-clientpref-night .cs-section.db .cs-card-header { background-color: #882c43; border-color: #882c43; } | ||
| Line 233: | Line 230: | ||
html.skin-theme-clientpref-night .cs-section.db .cs-card-footer a { color: #ffb6c1; } | html.skin-theme-clientpref-night .cs-section.db .cs-card-footer a { color: #ffb6c1; } | ||
/* | /* Infrastructure Dark (Restored from lines 127-131) */ | ||
html.skin-theme-clientpref-night .cs-section.inf .cs-section-header, | html.skin-theme-clientpref-night .cs-section.inf .cs-section-header, | ||
html.skin-theme-clientpref-night .cs-section.inf .cs-card-header { background-color: #7545ab; border-color: #7545ab; } | html.skin-theme-clientpref-night .cs-section.inf .cs-card-header { background-color: #7545ab; border-color: #7545ab; } | ||
| Line 240: | Line 237: | ||
html.skin-theme-clientpref-night .cs-section.inf .cs-card-footer a { color: #da70d6; } | html.skin-theme-clientpref-night .cs-section.inf .cs-card-footer a { color: #da70d6; } | ||
/* | /* Fundamentals Dark (Restored from lines 132-136) */ | ||
html.skin-theme-clientpref-night .cs-section.fund .cs-section-header, | html.skin-theme-clientpref-night .cs-section.fund .cs-section-header, | ||
html.skin-theme-clientpref-night .cs-section.fund .cs-card-header { background-color: #663428; border-color: #663428; } | html.skin-theme-clientpref-night .cs-section.fund .cs-card-header { background-color: #663428; border-color: #663428; } | ||
| Line 246: | Line 243: | ||
html.skin-theme-clientpref-night .cs-section.fund .cs-card-footer { background-color: #331a00; border-color: #663428; } | html.skin-theme-clientpref-night .cs-section.fund .cs-card-footer { background-color: #331a00; border-color: #663428; } | ||
html.skin-theme-clientpref-night .cs-section.fund .cs-card-footer a { color: #ffa500; } | html.skin-theme-clientpref-night .cs-section.fund .cs-card-footer a { color: #ffa500; } | ||
/* | /* Community Dark (Restored from lines 137-141) */ | ||
html.skin-theme-clientpref-night .cs-section.comm .cs-section-header, | html.skin-theme-clientpref-night .cs-section.comm .cs-section-header, | ||
html.skin-theme-clientpref-night .cs-section.comm .cs-card-header { background-color: #3d3d3d; border-color: #3d3d3d; } | html.skin-theme-clientpref-night .cs-section.comm .cs-card-header { background-color: #3d3d3d; border-color: #3d3d3d; } | ||
Revision as of 23:36, 22 November 2025
/**
* ComputerScience.wiki - Responsive Grid + Original Color Scheme
*/
/* --- 1. CONTAINER & TYPOGRAPHY --- */
.cs-container {
max-width: 1200px;
margin: 0 auto;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
padding: 0 10px; /* Prevents edge touching on mobile */
}
/* --- 2. HEADER --- */
.cs-header {
text-align: center;
padding: 30px 20px;
margin-bottom: 30px;
border-radius: 8px;
background-color: #f9f9f9;
border: 1px solid #ddd;
}
.cs-title {
font-size: 2em;
font-weight: 700;
margin: 0;
color: #000;
border: none;
}
.cs-subtitle {
font-size: 1.1em;
font-weight: normal;
margin: 10px 0 0;
color: #444;
}
/* --- 3. SEARCH (Exact copy from your working css.txt) --- */
.cs-search {
max-width: 800px;
margin: 0 auto 40px;
padding: 25px;
border-radius: 8px;
background-color: #f5f5f5;
border: 1px solid #ddd;
}
.cs-search input[type="search"],
.cs-search .mw-searchInput {
background-color: #ffffff !important;
border: 1px solid #ddd !important;
height: 40px !important;
padding: 5px 12px !important;
border-radius: 4px !important;
font-size: 16px !important;
color: #333 !important;
width: 100% !important;
}
.cs-search input[type="submit"],
.cs-search .oo-ui-buttonElement-button {
min-width: 80px !important;
background-color: #f0f0f0 !important;
border: 1px solid #ddd !important;
height: 40px !important;
font-weight: 600 !important;
cursor: pointer !important;
color: #333 !important;
}
.cs-search input[name="fulltext"] { display: none !important; }
/* --- 4. GRID LAYOUT (The Responsive Fix) --- */
/* This replaces the <table> structure */
.cs-grid {
display: grid;
/* This command makes it responsive automatically: */
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px; /* Space between cards */
margin-bottom: 30px;
}
/* --- 5. CARDS & SECTIONS --- */
.cs-section {
margin-bottom: 30px;
}
.cs-section-header {
padding: 12px 15px;
margin-bottom: 20px;
border-radius: 6px;
}
.cs-section-title {
margin: 0;
font-size: 1.3em;
font-weight: 600;
border: none;
}
.cs-card {
border-radius: 6px;
overflow: hidden;
height: 100%; /* Ensures all cards in a row are same height */
display: flex;
flex-direction: column;
border-width: 1px;
border-style: solid;
}
.cs-card-header {
padding: 12px 15px;
}
.cs-card-title {
margin: 0;
font-size: 1.1em;
font-weight: 600;
border: none;
}
.cs-card-body {
padding: 15px;
flex-grow: 1; /* Pushes footer to the bottom */
}
.cs-card-list {
margin: 0;
padding: 0 0 0 10px;
list-style: none;
}
.cs-card-list li {
margin-bottom: 8px;
}
.cs-card-footer {
padding: 8px 15px;
text-align: right;
font-weight: bold;
}
.cs-card-footer a {
text-decoration: none;
transition: opacity 0.2s;
}
/* ========================================================= */
/* === COLOR THEMES (Exact mappings from your css.txt) === */
/* ========================================================= */
/* PROGRAMMING (Green) */
.cs-section.prog .cs-section-header { background-color: #cef2e0; border: 1px solid #cef2e0; }
.cs-section.prog .cs-card { background-color: #f5fffa; border-color: #cef2e0; }
.cs-section.prog .cs-card-header { background-color: #cef2e0; border-bottom: 1px solid #cef2e0; }
.cs-section.prog .cs-card-footer { background-color: #f5fffa; border-top: 1px solid #cef2e0; }
.cs-section.prog .cs-card-footer a { color: #2e8b57; }
/* DATA SCIENCE (Blue) */
.cs-section.data .cs-section-header { background-color: #cedff2; border: 1px solid #cedff2; }
.cs-section.data .cs-card { background-color: #f5faff; border-color: #cedff2; }
.cs-section.data .cs-card-header { background-color: #cedff2; border-bottom: 1px solid #cedff2; }
.cs-section.data .cs-card-footer { background-color: #f5faff; border-top: 1px solid #cedff2; }
.cs-section.data .cs-card-footer a { color: #4169e1; }
/* DATABASES (Pink) */
.cs-section.db .cs-section-header { background-color: #f2cedd; border: 1px solid #f2cedd; }
.cs-section.db .cs-card { background-color: #fff5fa; border-color: #f2cedd; }
.cs-section.db .cs-card-header { background-color: #f2cedd; border-bottom: 1px solid #f2cedd; }
.cs-section.db .cs-card-footer { background-color: #fff5fa; border-top: 1px solid #f2cedd; }
.cs-section.db .cs-card-footer a { color: #db7093; }
/* INFRASTRUCTURE (Purple) */
.cs-section.inf .cs-section-header { background-color: #ddcef2; border: 1px solid #ddcef2; }
.cs-section.inf .cs-card { background-color: #faf5ff; border-color: #ddcef2; }
.cs-section.inf .cs-card-header { background-color: #ddcef2; border-bottom: 1px solid #ddcef2; }
.cs-section.inf .cs-card-footer { background-color: #faf5ff; border-top: 1px solid #ddcef2; }
.cs-section.inf .cs-card-footer a { color: #8a2be2; }
/* FUNDAMENTALS (Orange) */
.cs-section.fund .cs-section-header { background-color: #f2e0ce; border: 1px solid #f2e0ce; }
.cs-section.fund .cs-card { background-color: #fffaf5; border-color: #f2e0ce; }
.cs-section.fund .cs-card-header { background-color: #f2e0ce; border-bottom: 1px solid #f2e0ce; }
.cs-section.fund .cs-card-footer { background-color: #fffaf5; border-top: 1px solid #f2e0ce; }
.cs-section.fund .cs-card-footer a { color: #d2691e; }
/* COMMUNITY (Grey) */
.cs-section.comm .cs-section-header { background-color: #eee; border: 1px solid #eee; }
.cs-section.comm .cs-card { background-color: #f9f9f9; border-color: #eee; }
.cs-section.comm .cs-card-header { background-color: #eee; border-bottom: 1px solid #eee; }
.cs-section.comm .cs-card-footer { background-color: #f9f9f9; border-top: 1px solid #eee; }
.cs-section.comm .cs-card-footer a { color: #444; }
/* ========================================================= */
/* === DARK MODE OVERRIDES (Restored from your css.txt) === */
/* ========================================================= */
@media screen {
/* Global Dark Mode adjustments */
html.skin-theme-clientpref-night .cs-header { background-color: #171a1d; border-color: #676767; }
html.skin-theme-clientpref-night .cs-title { color: #fff; }
html.skin-theme-clientpref-night .cs-subtitle { color: #ccc; }
html.skin-theme-clientpref-night .cs-search { background-color: #252525; border-color: #676767; }
html.skin-theme-clientpref-night .cs-search input { background-color: #1f1f1f !important; color: #fff !important; border-color: #555 !important; }
html.skin-theme-clientpref-night .cs-search input[type="submit"] { background-color: #444 !important; border-color: #555 !important; color: #fff !important; }
html.skin-theme-clientpref-night .cs-section-title,
html.skin-theme-clientpref-night .cs-card-title { color: #fff; }
html.skin-theme-clientpref-night .cs-card-list li { color: #ccc; }
/* Programming Dark (Restored from lines 112-116 of css.txt) */
html.skin-theme-clientpref-night .cs-section.prog .cs-section-header,
html.skin-theme-clientpref-night .cs-section.prog .cs-card-header { background-color: #104437; border-color: #104437; }
html.skin-theme-clientpref-night .cs-section.prog .cs-card,
html.skin-theme-clientpref-night .cs-section.prog .cs-card-footer { background-color: #0b1e1c; border-color: #104437; }
html.skin-theme-clientpref-night .cs-section.prog .cs-card-footer a { color: #8fbc8f; }
/* Data Science Dark (Restored from lines 117-121) */
html.skin-theme-clientpref-night .cs-section.data .cs-section-header,
html.skin-theme-clientpref-night .cs-section.data .cs-card-header { background-color: #082849; border-color: #082849; }
html.skin-theme-clientpref-night .cs-section.data .cs-card,
html.skin-theme-clientpref-night .cs-section.data .cs-card-footer { background-color: #0d1a27; border-color: #082849; }
html.skin-theme-clientpref-night .cs-section.data .cs-card-footer a { color: #87cefa; }
/* Databases Dark (Restored from lines 122-126) */
html.skin-theme-clientpref-night .cs-section.db .cs-section-header,
html.skin-theme-clientpref-night .cs-section.db .cs-card-header { background-color: #882c43; border-color: #882c43; }
html.skin-theme-clientpref-night .cs-section.db .cs-card,
html.skin-theme-clientpref-night .cs-section.db .cs-card-footer { background-color: #270e1a; border-color: #882c43; }
html.skin-theme-clientpref-night .cs-section.db .cs-card-footer a { color: #ffb6c1; }
/* Infrastructure Dark (Restored from lines 127-131) */
html.skin-theme-clientpref-night .cs-section.inf .cs-section-header,
html.skin-theme-clientpref-night .cs-section.inf .cs-card-header { background-color: #7545ab; border-color: #7545ab; }
html.skin-theme-clientpref-night .cs-section.inf .cs-card,
html.skin-theme-clientpref-night .cs-section.inf .cs-card-footer { background-color: #130e20; border-color: #7545ab; }
html.skin-theme-clientpref-night .cs-section.inf .cs-card-footer a { color: #da70d6; }
/* Fundamentals Dark (Restored from lines 132-136) */
html.skin-theme-clientpref-night .cs-section.fund .cs-section-header,
html.skin-theme-clientpref-night .cs-section.fund .cs-card-header { background-color: #663428; border-color: #663428; }
html.skin-theme-clientpref-night .cs-section.fund .cs-card,
html.skin-theme-clientpref-night .cs-section.fund .cs-card-footer { background-color: #331a00; border-color: #663428; }
html.skin-theme-clientpref-night .cs-section.fund .cs-card-footer a { color: #ffa500; }
/* Community Dark (Restored from lines 137-141) */
html.skin-theme-clientpref-night .cs-section.comm .cs-section-header,
html.skin-theme-clientpref-night .cs-section.comm .cs-card-header { background-color: #3d3d3d; border-color: #3d3d3d; }
html.skin-theme-clientpref-night .cs-section.comm .cs-card,
html.skin-theme-clientpref-night .cs-section.comm .cs-card-footer { background-color: #171a1d; border-color: #3d3d3d; }
html.skin-theme-clientpref-night .cs-section.comm .cs-card-footer a { color: #ccc; }
}