Template:Main Page/styles.css
Template page
More actions
/**
* ComputerScience.wiki - Main Page Styles
* Based directly on Squadz/mediawiki reference
*/
/* Main container */
.cs-wiki-container {
padding: 0 20px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, sans-serif;
}
/* Header styles */
.cs-wiki-header {
text-align: center;
padding: 30px 20px;
margin-bottom: 30px;
border-radius: 8px;
}
.cs-wiki-title {
font-size: 2em;
font-weight: 700;
margin: 0;
}
.cs-wiki-subtitle {
font-size: 1.1em;
font-weight: normal;
margin: 10px 0 0;
}
.cs-wiki-stats {
margin-top: 15px;
font-size: 0.9em;
}
/* Search box */
.cs-wiki-search {
max-width: 600px;
margin: 0 auto 40px;
padding: 15px;
border-radius: 8px;
}
/* Section styles */
.cs-wiki-section {
margin-bottom: 30px;
}
.cs-wiki-section-header {
display: flex;
align-items: center;
padding: 15px;
border-radius: 8px;
margin-bottom: 20px;
}
.cs-wiki-section-icon {
margin-right: 15px;
font-size: 1.4em;
}
.cs-wiki-section-title {
margin: 0;
font-size: 1.3em;
font-weight: 600;
}
/* Category grid */
.cs-wiki-grid {
display: table;
width: 100%;
border-spacing: 10px;
border-collapse: separate;
margin: 0 -10px;
}
.cs-wiki-row {
display: table-row;
}
.cs-wiki-cell {
display: table-cell;
width: 33.333%;
vertical-align: top;
}
/* Card styles */
.cs-wiki-card {
border-radius: 8px;
overflow: hidden;
height: 100%;
}
.cs-wiki-card-header {
padding: 15px;
}
.cs-wiki-card-title {
margin: 0;
font-size: 1.1em;
font-weight: 600;
}
.cs-wiki-card-content {
padding: 15px;
}
.cs-wiki-card-list {
margin: 0;
padding: 0 0 0 20px;
}
.cs-wiki-card-list li {
margin-bottom: 10px;
}
.cs-wiki-card-footer {
padding: 12px 15px;
text-align: right;
}
/* Light theme colors */
@media screen {
.cs-wiki-header {
background-color: #f5f5f5;
border: 1px solid #e0e0e0;
}
.cs-wiki-title {
color: #212121;
}
.cs-wiki-subtitle, .cs-wiki-stats {
color: #616161;
}
.cs-wiki-search {
background-color: #ffffff;
border: 1px solid #e0e0e0;
}
.cs-wiki-section-header {
background-color: #f5f5f5;
border: 1px solid #e0e0e0;
}
.cs-wiki-section-title {
color: #212121;
}
.cs-wiki-card {
background-color: #ffffff;
border: 1px solid #e0e0e0;
}
.cs-wiki-card-header {
background-color: #f5f5f5;
border-bottom: 1px solid #e0e0e0;
}
.cs-wiki-card-title {
color: #212121;
}
.cs-wiki-card-content {
color: #424242;
}
.cs-wiki-card-footer {
background-color: #f5f5f5;
border-top: 1px solid #e0e0e0;
}
.cs-wiki-card-footer a {
color: #1976d2;
}
}
/* Dark theme colors */
@media screen and (prefers-color-scheme: dark) {
.cs-wiki-header {
background-color: #1e1e1e;
border-color: #333333;
}
.cs-wiki-title {
color: #e0e0e0;
}
.cs-wiki-subtitle, .cs-wiki-stats {
color: #b0b0b0;
}
.cs-wiki-search {
background-color: #121212;
border-color: #333333;
}
.cs-wiki-section-header {
background-color: #1e1e1e;
border-color: #333333;
}
.cs-wiki-section-title {
color: #e0e0e0;
}
.cs-wiki-card {
background-color: #121212;
border-color: #333333;
}
.cs-wiki-card-header {
background-color: #1e1e1e;
border-color: #333333;
}
.cs-wiki-card-title {
color: #e0e0e0;
}
.cs-wiki-card-content {
color: #b0b0b0;
}
.cs-wiki-card-footer {
background-color: #1e1e1e;
border-color: #333333;
}
.cs-wiki-card-footer a {
color: #64b5f6;
}
}
/* Mobile responsiveness */
@media screen and (max-width: 800px) {
.cs-wiki-grid {
display: block;
}
.cs-wiki-row {
display: block;
}
.cs-wiki-cell {
display: block;
width: 100%;
margin-bottom: 15px;
}
}