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