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 | ||
* | * Completely redesigned with symmetric structure and consistent colors | ||
*/ | */ | ||
/* | /* Reset and base styles */ | ||
.mp- | .mp-container { | ||
max-width: 1200px; | |||
margin: 0 auto; | |||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; | |||
} | } | ||
.mp- | /* Header section */ | ||
.mp-header { | |||
text-align: center; | |||
padding: 0 | padding: 20px 0; | ||
margin-bottom: 20px; | |||
background-color: #f8f9fa; | |||
border: 1px solid #ddd; | |||
} | } | ||
.mp- | .mp-title { | ||
margin | font-size: 2em; | ||
margin: 0; | |||
padding: 0; | |||
} | } | ||
.mp- | .mp-subtitle { | ||
font-size: | font-size: 1.1em; | ||
margin: 10px 0 0; | |||
font-weight: normal; | font-weight: normal; | ||
} | } | ||
.mp-stats { | |||
font-size: 0.9em; | |||
margin: | margin-top: 15px; | ||
} | } | ||
/* Search bar */ | |||
.mp-search { | |||
padding: | max-width: 600px; | ||
margin: 0 auto 30px; | |||
padding: 15px; | |||
background-color: #fff; | |||
border: 1px solid #ddd; | |||
border-radius: 4px; | |||
} | } | ||
/* Categories section */ | |||
.mp-section { | |||
margin-bottom: 30px; | |||
} | } | ||
.mp-section-header { | |||
display: flex; | |||
align-items: center; | |||
background-color: #f0f0f0; | |||
padding: 10px 15px; | |||
border: 1px solid #ddd; | |||
margin-bottom: 15px; | |||
} | } | ||
.mp-section-icon { | |||
margin-right: 10px; | |||
font-size: 1.2em; | |||
} | } | ||
.mp-section-title { | |||
font-size: 1.2em; | |||
font-weight: 600; | |||
margin: 0; | margin: 0; | ||
} | } | ||
.mp-category-row { | |||
.mp-category- | |||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
margin: | margin: 0 -10px; | ||
} | } | ||
.mp-category { | .mp-category { | ||
width: | width: 33.333%; | ||
padding: 0 10px; | |||
margin-bottom: 20px; | |||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
@media (max-width: | @media (max-width: 900px) { | ||
.mp-category { | .mp-category { | ||
width: | width: 50%; | ||
} | } | ||
} | } | ||
.mp-category | @media (max-width: 600px) { | ||
.mp-category { | |||
width: 100%; | |||
} | |||
} | } | ||
.mp-category | .mp-category-content { | ||
border: 1px solid #ddd; | |||
background-color: #fff; | |||
height: 100%; | |||
} | } | ||
.mp-category | .mp-category-header { | ||
background-color: #f8f9fa; | |||
padding: 10px 15px; | |||
border-bottom: 1px solid #ddd; | |||
} | } | ||
.mp-category | .mp-category-title { | ||
margin- | font-size: 1em; | ||
margin: 0; | |||
font-weight: 600; | |||
} | } | ||
.mp-category-list { | |||
.mp- | padding: 10px 15px; | ||
margin: 0; | |||
list-style-position: inside; | |||
} | } | ||
.mp- | .mp-category-list li { | ||
padding: 5px 0; | |||
} | } | ||
.mp-category-all { | |||
.mp- | padding: 8px 15px; | ||
border-top: 1px solid #ddd; | |||
background-color: #f8f9fa; | |||
text-align: right; | |||
} | } | ||
/* | /* Dark mode */ | ||
@media ( | @media (prefers-color-scheme: dark) { | ||
.mp-header, | |||
.mp-section-header, | |||
.mp-category-header, | |||
.mp-category-all { | |||
background-color: #2d333b; | |||
} | } | ||
.mp-header, | |||
.mp-section-header, | |||
.mp-category-content, | |||
.mp-category-header, | |||
.mp-category-all, | |||
.mp-search { | |||
border-color: #444c56; | |||
} | } | ||
.mp-category-content { | |||
background-color: #22272e; | |||
} | } | ||
.mp-search { | |||
background-color: #22272e; | |||
} | } | ||
} | } | ||
/* | /* MediaWiki compatibility */ | ||
.mp-contains-float::after { | |||
content: ""; | |||
display: block; | |||
clear: both; | |||
} | } |
Revision as of 18:12, 10 August 2025
/**
* ComputerScience.wiki Main Page Styles
* Completely redesigned with symmetric structure and consistent colors
*/
/* Reset and base styles */
.mp-container {
max-width: 1200px;
margin: 0 auto;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
/* Header section */
.mp-header {
text-align: center;
padding: 20px 0;
margin-bottom: 20px;
background-color: #f8f9fa;
border: 1px solid #ddd;
}
.mp-title {
font-size: 2em;
margin: 0;
padding: 0;
}
.mp-subtitle {
font-size: 1.1em;
margin: 10px 0 0;
font-weight: normal;
}
.mp-stats {
font-size: 0.9em;
margin-top: 15px;
}
/* Search bar */
.mp-search {
max-width: 600px;
margin: 0 auto 30px;
padding: 15px;
background-color: #fff;
border: 1px solid #ddd;
border-radius: 4px;
}
/* Categories section */
.mp-section {
margin-bottom: 30px;
}
.mp-section-header {
display: flex;
align-items: center;
background-color: #f0f0f0;
padding: 10px 15px;
border: 1px solid #ddd;
margin-bottom: 15px;
}
.mp-section-icon {
margin-right: 10px;
font-size: 1.2em;
}
.mp-section-title {
font-size: 1.2em;
font-weight: 600;
margin: 0;
}
.mp-category-row {
display: flex;
flex-wrap: wrap;
margin: 0 -10px;
}
.mp-category {
width: 33.333%;
padding: 0 10px;
margin-bottom: 20px;
box-sizing: border-box;
}
@media (max-width: 900px) {
.mp-category {
width: 50%;
}
}
@media (max-width: 600px) {
.mp-category {
width: 100%;
}
}
.mp-category-content {
border: 1px solid #ddd;
background-color: #fff;
height: 100%;
}
.mp-category-header {
background-color: #f8f9fa;
padding: 10px 15px;
border-bottom: 1px solid #ddd;
}
.mp-category-title {
font-size: 1em;
margin: 0;
font-weight: 600;
}
.mp-category-list {
padding: 10px 15px;
margin: 0;
list-style-position: inside;
}
.mp-category-list li {
padding: 5px 0;
}
.mp-category-all {
padding: 8px 15px;
border-top: 1px solid #ddd;
background-color: #f8f9fa;
text-align: right;
}
/* Dark mode */
@media (prefers-color-scheme: dark) {
.mp-header,
.mp-section-header,
.mp-category-header,
.mp-category-all {
background-color: #2d333b;
}
.mp-header,
.mp-section-header,
.mp-category-content,
.mp-category-header,
.mp-category-all,
.mp-search {
border-color: #444c56;
}
.mp-category-content {
background-color: #22272e;
}
.mp-search {
background-color: #22272e;
}
}
/* MediaWiki compatibility */
.mp-contains-float::after {
content: "";
display: block;
clear: both;
}