Template:Main Page/styles.css: Difference between revisions
Template page
More actions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
/** | /** | ||
* ComputerScience.wiki - Main Page Styles | * ComputerScience.wiki - Main Page Styles | ||
* Based | * Based on Squadz/mediawiki | ||
*/ | */ | ||
/* | /* Base Styles */ | ||
.cs | .cs-container { | ||
max-width: 1200px; | |||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto | margin: 0 auto; | ||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; | |||
} | } | ||
/* Header | /* Header */ | ||
.cs | .cs-header { | ||
text-align: center; | text-align: center; | ||
padding: 30px 20px; | padding: 30px 20px; | ||
margin-bottom: 30px; | margin-bottom: 30px; | ||
border-radius: 8px; | border-radius: 8px; | ||
background-color: #f5f5f5; | |||
border: 1px solid #e0e0e0; | |||
} | } | ||
.cs | .cs-title { | ||
font-size: 2em; | font-size: 2em; | ||
font-weight: 700; | font-weight: 700; | ||
margin: 0; | margin: 0; | ||
color: #212121; | |||
} | } | ||
.cs | .cs-subtitle { | ||
font-size: 1.1em; | font-size: 1.1em; | ||
font-weight: normal; | font-weight: normal; | ||
margin: 10px 0 0; | margin: 10px 0 0; | ||
color: #616161; | |||
} | } | ||
.cs | .cs-stats { | ||
margin-top: 15px; | margin-top: 15px; | ||
font-size: 0.9em; | font-size: 0.9em; | ||
color: #616161; | |||
} | } | ||
/* Search | /* Search */ | ||
.cs | .cs-search { | ||
max-width: 600px; | max-width: 600px; | ||
margin: 0 auto 40px; | margin: 0 auto 40px; | ||
padding: 15px; | padding: 15px; | ||
border-radius: 8px; | border-radius: 8px; | ||
background-color: #ffffff; | |||
border: 1px solid #e0e0e0; | |||
} | } | ||
/* Section | /* Section Headers */ | ||
.cs | .cs-section { | ||
margin-bottom: 30px; | margin-bottom: 30px; | ||
} | } | ||
.cs | .cs-section-header { | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
padding: 15px; | padding: 15px; | ||
margin-bottom: 20px; | |||
border-radius: 8px; | border-radius: 8px; | ||
background-color: #f5f5f5; | |||
border: 1px solid #e0e0e0; | |||
} | } | ||
.cs | .cs-section-icon { | ||
margin-right: 15px; | margin-right: 15px; | ||
font-size: 1.4em; | font-size: 1.4em; | ||
} | } | ||
.cs | .cs-section-title { | ||
margin: 0; | margin: 0; | ||
font-size: 1.3em; | font-size: 1.3em; | ||
font-weight: 600; | font-weight: 600; | ||
color: #212121; | |||
} | } | ||
/* | /* Grid Layout */ | ||
.cs | .cs-grid { | ||
display: table; | display: table; | ||
width: 100%; | width: 100%; | ||
Line 76: | Line 87: | ||
} | } | ||
.cs | .cs-row { | ||
display: table-row; | display: table-row; | ||
} | } | ||
.cs | .cs-cell { | ||
display: table-cell; | display: table-cell; | ||
width: 33.333%; | width: 33.333%; | ||
Line 86: | Line 97: | ||
} | } | ||
/* Card | /* Card Design */ | ||
.cs | .cs-card { | ||
border-radius: 8px; | border-radius: 8px; | ||
overflow: hidden; | overflow: hidden; | ||
height: 100%; | height: 100%; | ||
background-color: #ffffff; | |||
border: 1px solid #e0e0e0; | |||
} | } | ||
.cs | .cs-card-header { | ||
padding: 15px; | padding: 15px; | ||
background-color: #f5f5f5; | |||
border-bottom: 1px solid #e0e0e0; | |||
} | } | ||
.cs | .cs-card-title { | ||
margin: 0; | margin: 0; | ||
font-size: 1.1em; | font-size: 1.1em; | ||
font-weight: 600; | font-weight: 600; | ||
color: #212121; | |||
} | } | ||
.cs | .cs-card-body { | ||
padding: 15px; | padding: 15px; | ||
color: #424242; | |||
} | } | ||
.cs | .cs-card-list { | ||
margin: 0; | margin: 0; | ||
padding: 0 0 0 20px; | padding: 0 0 0 20px; | ||
} | } | ||
.cs | .cs-card-list li { | ||
margin-bottom: 10px; | margin-bottom: 10px; | ||
} | } | ||
.cs | .cs-card-footer { | ||
padding: 12px 15px; | padding: 12px 15px; | ||
text-align: right; | text-align: right; | ||
background-color: #f5f5f5; | |||
border-top: 1px solid #e0e0e0; | |||
} | } | ||
.cs-card-footer a { | |||
color: #1976d2; | |||
text-decoration: none; | |||
} | } | ||
/* | /* OS night mode */ | ||
@media screen and (prefers-color-scheme: dark) { | @media screen and (prefers-color-scheme: dark) { | ||
.cs | .cs-header { | ||
background-color: #1e1e1e; | background-color: #1e1e1e; | ||
border-color: #333333; | border-color: #333333; | ||
} | } | ||
.cs | .cs-title { | ||
color: #e0e0e0; | color: #e0e0e0; | ||
} | } | ||
.cs | .cs-subtitle, .cs-stats { | ||
color: #b0b0b0; | color: #b0b0b0; | ||
} | } | ||
.cs | .cs-search { | ||
background-color: #121212; | background-color: #121212; | ||
border-color: #333333; | border-color: #333333; | ||
} | } | ||
.cs | .cs-section-header { | ||
background-color: #1e1e1e; | background-color: #1e1e1e; | ||
border-color: #333333; | border-color: #333333; | ||
} | } | ||
.cs | .cs-section-title { | ||
color: #e0e0e0; | color: #e0e0e0; | ||
} | } | ||
.cs | .cs-card { | ||
background-color: #121212; | background-color: #121212; | ||
border-color: #333333; | border-color: #333333; | ||
} | } | ||
.cs | .cs-card-header { | ||
background-color: #1e1e1e; | background-color: #1e1e1e; | ||
border-color: #333333; | border-color: #333333; | ||
} | } | ||
.cs | .cs-card-title { | ||
color: #e0e0e0; | color: #e0e0e0; | ||
} | } | ||
.cs | .cs-card-body { | ||
color: #b0b0b0; | color: #b0b0b0; | ||
} | } | ||
.cs | .cs-card-footer { | ||
background-color: #1e1e1e; | background-color: #1e1e1e; | ||
border-color: #333333; | border-color: #333333; | ||
} | } | ||
.cs | .cs-card-footer a { | ||
color: #64b5f6; | color: #64b5f6; | ||
} | } | ||
} | } | ||
/* Mobile | /* night mode */ | ||
html.skin-theme-clientpref-night .cs-header { | |||
background-color: #1e1e1e; | |||
border-color: #333333; | |||
} | |||
html.skin-theme-clientpref-night .cs-title { | |||
color: #e0e0e0; | |||
} | |||
html.skin-theme-clientpref-night .cs-subtitle, | |||
html.skin-theme-clientpref-night .cs-stats { | |||
color: #b0b0b0; | |||
} | |||
html.skin-theme-clientpref-night .cs-search { | |||
background-color: #121212; | |||
border-color: #333333; | |||
} | |||
html.skin-theme-clientpref-night .cs-section-header { | |||
background-color: #1e1e1e; | |||
border-color: #333333; | |||
} | |||
html.skin-theme-clientpref-night .cs-section-title { | |||
color: #e0e0e0; | |||
} | |||
html.skin-theme-clientpref-night .cs-card { | |||
background-color: #121212; | |||
border-color: #333333; | |||
} | |||
html.skin-theme-clientpref-night .cs-card-header { | |||
background-color: #1e1e1e; | |||
border-color: #333333; | |||
} | |||
html.skin-theme-clientpref-night .cs-card-title { | |||
color: #e0e0e0; | |||
} | |||
html.skin-theme-clientpref-night .cs-card-body { | |||
color: #b0b0b0; | |||
} | |||
html.skin-theme-clientpref-night .cs-card-footer { | |||
background-color: #1e1e1e; | |||
border-color: #333333; | |||
} | |||
html.skin-theme-clientpref-night .cs-card-footer a { | |||
color: #64b5f6; | |||
} | |||
/* Mobile Responsiveness */ | |||
@media screen and (max-width: 800px) { | @media screen and (max-width: 800px) { | ||
.cs | .cs-grid { | ||
display: block; | display: block; | ||
} | } | ||
.cs | .cs-row { | ||
display: block; | display: block; | ||
} | } | ||
.cs | .cs-cell { | ||
display: block; | display: block; | ||
width: 100%; | width: 100%; |
Revision as of 18:34, 10 August 2025
/**
* ComputerScience.wiki - Main Page Styles
* Based on Squadz/mediawiki
*/
/* Base Styles */
.cs-container {
max-width: 1200px;
margin: 0 auto;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
/* Header */
.cs-header {
text-align: center;
padding: 30px 20px;
margin-bottom: 30px;
border-radius: 8px;
background-color: #f5f5f5;
border: 1px solid #e0e0e0;
}
.cs-title {
font-size: 2em;
font-weight: 700;
margin: 0;
color: #212121;
}
.cs-subtitle {
font-size: 1.1em;
font-weight: normal;
margin: 10px 0 0;
color: #616161;
}
.cs-stats {
margin-top: 15px;
font-size: 0.9em;
color: #616161;
}
/* Search */
.cs-search {
max-width: 600px;
margin: 0 auto 40px;
padding: 15px;
border-radius: 8px;
background-color: #ffffff;
border: 1px solid #e0e0e0;
}
/* Section Headers */
.cs-section {
margin-bottom: 30px;
}
.cs-section-header {
display: flex;
align-items: center;
padding: 15px;
margin-bottom: 20px;
border-radius: 8px;
background-color: #f5f5f5;
border: 1px solid #e0e0e0;
}
.cs-section-icon {
margin-right: 15px;
font-size: 1.4em;
}
.cs-section-title {
margin: 0;
font-size: 1.3em;
font-weight: 600;
color: #212121;
}
/* Grid Layout */
.cs-grid {
display: table;
width: 100%;
border-spacing: 10px;
border-collapse: separate;
margin: 0 -10px;
}
.cs-row {
display: table-row;
}
.cs-cell {
display: table-cell;
width: 33.333%;
vertical-align: top;
}
/* Card Design */
.cs-card {
border-radius: 8px;
overflow: hidden;
height: 100%;
background-color: #ffffff;
border: 1px solid #e0e0e0;
}
.cs-card-header {
padding: 15px;
background-color: #f5f5f5;
border-bottom: 1px solid #e0e0e0;
}
.cs-card-title {
margin: 0;
font-size: 1.1em;
font-weight: 600;
color: #212121;
}
.cs-card-body {
padding: 15px;
color: #424242;
}
.cs-card-list {
margin: 0;
padding: 0 0 0 20px;
}
.cs-card-list li {
margin-bottom: 10px;
}
.cs-card-footer {
padding: 12px 15px;
text-align: right;
background-color: #f5f5f5;
border-top: 1px solid #e0e0e0;
}
.cs-card-footer a {
color: #1976d2;
text-decoration: none;
}
/* OS night mode */
@media screen and (prefers-color-scheme: dark) {
.cs-header {
background-color: #1e1e1e;
border-color: #333333;
}
.cs-title {
color: #e0e0e0;
}
.cs-subtitle, .cs-stats {
color: #b0b0b0;
}
.cs-search {
background-color: #121212;
border-color: #333333;
}
.cs-section-header {
background-color: #1e1e1e;
border-color: #333333;
}
.cs-section-title {
color: #e0e0e0;
}
.cs-card {
background-color: #121212;
border-color: #333333;
}
.cs-card-header {
background-color: #1e1e1e;
border-color: #333333;
}
.cs-card-title {
color: #e0e0e0;
}
.cs-card-body {
color: #b0b0b0;
}
.cs-card-footer {
background-color: #1e1e1e;
border-color: #333333;
}
.cs-card-footer a {
color: #64b5f6;
}
}
/* night mode */
html.skin-theme-clientpref-night .cs-header {
background-color: #1e1e1e;
border-color: #333333;
}
html.skin-theme-clientpref-night .cs-title {
color: #e0e0e0;
}
html.skin-theme-clientpref-night .cs-subtitle,
html.skin-theme-clientpref-night .cs-stats {
color: #b0b0b0;
}
html.skin-theme-clientpref-night .cs-search {
background-color: #121212;
border-color: #333333;
}
html.skin-theme-clientpref-night .cs-section-header {
background-color: #1e1e1e;
border-color: #333333;
}
html.skin-theme-clientpref-night .cs-section-title {
color: #e0e0e0;
}
html.skin-theme-clientpref-night .cs-card {
background-color: #121212;
border-color: #333333;
}
html.skin-theme-clientpref-night .cs-card-header {
background-color: #1e1e1e;
border-color: #333333;
}
html.skin-theme-clientpref-night .cs-card-title {
color: #e0e0e0;
}
html.skin-theme-clientpref-night .cs-card-body {
color: #b0b0b0;
}
html.skin-theme-clientpref-night .cs-card-footer {
background-color: #1e1e1e;
border-color: #333333;
}
html.skin-theme-clientpref-night .cs-card-footer a {
color: #64b5f6;
}
/* Mobile Responsiveness */
@media screen and (max-width: 800px) {
.cs-grid {
display: block;
}
.cs-row {
display: block;
}
.cs-cell {
display: block;
width: 100%;
margin-bottom: 15px;
}
}