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 | ||
* Using | * Using correct theme handling from MediaWiki-Common.css | ||
*/ | */ | ||
Line 12: | Line 12: | ||
/* Top Banner */ | /* Top Banner */ | ||
#mp-topbanner { | #mp-topbanner { | ||
background: | background: linear-gradient(135deg, #2e51a3, #4c6fc6); | ||
color: | color: #ffffff; | ||
padding: 32px 24px; | padding: 32px 24px; | ||
border-radius: 8px; | border-radius: 8px; | ||
Line 21: | Line 21: | ||
} | } | ||
.skin- | .skin-citizen-dark #mp-topbanner { | ||
background: linear-gradient(135deg, #375694, #2c4273); | |||
background: linear-gradient(135deg, # | |||
} | } | ||
Line 51: | Line 47: | ||
.mp-search-box { | .mp-search-box { | ||
background-color: | background-color: #ffffff; | ||
border: 1px solid | border: 1px solid #dfe1e5; | ||
border-radius: 8px; | border-radius: 8px; | ||
padding: 20px; | padding: 20px; | ||
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); | box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); | ||
} | |||
.skin-citizen-dark .mp-search-box { | |||
background-color: #1f2937; | |||
border-color: #374151; | |||
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); | |||
} | } | ||
Line 64: | Line 66: | ||
margin: 32px 0 24px; | margin: 32px 0 24px; | ||
text-align: center; | text-align: center; | ||
color: | color: #2e51a3; | ||
position: relative; | position: relative; | ||
} | |||
.skin-citizen-dark .mp-section-heading { | |||
color: #8ab4f8; | |||
} | } | ||
Line 73: | Line 79: | ||
width: 60px; | width: 60px; | ||
height: 3px; | height: 3px; | ||
background: | background: #4c6fc6; | ||
margin: 10px auto 0; | margin: 10px auto 0; | ||
border-radius: 1px; | border-radius: 1px; | ||
} | |||
.skin-citizen-dark .mp-section-heading:after { | |||
background: #8ab4f8; | |||
} | } | ||
Line 91: | Line 101: | ||
/* Category Cards */ | /* Category Cards */ | ||
.mp-category-card { | .mp-category-card { | ||
background-color: | background-color: #ffffff; | ||
border-radius: 8px; | border-radius: 8px; | ||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); | box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); | ||
Line 98: | Line 108: | ||
min-width: 250px; | min-width: 250px; | ||
max-width: 350px; | max-width: 350px; | ||
border: 1px solid | border: 1px solid #eaecef; | ||
margin: 0 10px 20px; | margin: 0 10px 20px; | ||
transition: box-shadow 0.2s; | transition: box-shadow 0.2s; | ||
} | |||
.skin-citizen-dark .mp-category-card { | |||
background-color: #1f2937; | |||
border-color: #374151; | |||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); | |||
} | } | ||
.mp-category-card:hover { | .mp-category-card:hover { | ||
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15); | box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15); | ||
} | |||
.skin-citizen-dark .mp-category-card:hover { | |||
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3); | |||
} | } | ||
Line 123: | Line 143: | ||
font-weight: 600; | font-weight: 600; | ||
margin: 0; | margin: 0; | ||
color: | color: #2e51a3; | ||
} | |||
.skin-citizen-dark .mp-category-title { | |||
color: #8ab4f8; | |||
} | } | ||
Line 134: | Line 158: | ||
.mp-category-list li { | .mp-category-list li { | ||
padding: 8px 0; | padding: 8px 0; | ||
border-bottom: 1px solid | border-bottom: 1px solid #eaecef; | ||
} | |||
.skin-citizen-dark .mp-category-list li { | |||
border-bottom: 1px solid #374151; | |||
} | } | ||
Line 141: | Line 169: | ||
margin-top: 10px; | margin-top: 10px; | ||
font-weight: 500; | font-weight: 500; | ||
color: | color: #2e51a3; | ||
} | |||
.skin-citizen-dark .mp-category-list li:last-child { | |||
color: #8ab4f8; | |||
} | } | ||
Line 172: | Line 204: | ||
flex: 1 1 300px; | flex: 1 1 300px; | ||
min-width: 250px; | min-width: 250px; | ||
background-color: | background-color: #ffffff; | ||
border-radius: 8px; | border-radius: 8px; | ||
padding: 20px; | padding: 20px; | ||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); | box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); | ||
border: 1px solid | border: 1px solid #eaecef; | ||
margin: 0 12px 24px; | margin: 0 12px 24px; | ||
} | |||
.skin-citizen-dark .mp-community-card { | |||
background-color: #1f2937; | |||
border-color: #374151; | |||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); | |||
} | } | ||
Line 185: | Line 223: | ||
margin-bottom: 16px; | margin-bottom: 16px; | ||
padding-bottom: 10px; | padding-bottom: 10px; | ||
border-bottom: 1px solid | border-bottom: 1px solid #eaecef; | ||
color: | color: #2e51a3; | ||
} | |||
.skin-citizen-dark .mp-community-card h3 { | |||
border-bottom: 1px solid #374151; | |||
color: #8ab4f8; | |||
} | } | ||
Line 206: | Line 249: | ||
.mp-stat-card { | .mp-stat-card { | ||
background-color: | background-color: #ffffff; | ||
border-radius: 8px; | border-radius: 8px; | ||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); | box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); | ||
Line 212: | Line 255: | ||
min-width: 140px; | min-width: 140px; | ||
text-align: center; | text-align: center; | ||
border: 1px solid | border: 1px solid #eaecef; | ||
flex: 1 1 140px; | flex: 1 1 140px; | ||
margin: 0 12px 24px; | margin: 0 12px 24px; | ||
} | |||
.skin-citizen-dark .mp-stat-card { | |||
background-color: #1f2937; | |||
border-color: #374151; | |||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); | |||
} | } | ||
Line 220: | Line 269: | ||
font-size: 1.8rem; | font-size: 1.8rem; | ||
font-weight: 700; | font-weight: 700; | ||
color: | color: #2e51a3; | ||
margin-bottom: 8px; | margin-bottom: 8px; | ||
} | |||
.skin-citizen-dark .mp-stat-number { | |||
color: #8ab4f8; | |||
} | } | ||
.mp-stat-label { | .mp-stat-label { | ||
font-size: 0.95rem; | font-size: 0.95rem; | ||
color: #586069; | |||
} | } | ||
.skin-citizen-dark .mp-stat-label { | |||
color: #9ca3af; | |||
} | } | ||
Revision as of 17:21, 10 August 2025
/**
* ComputerScience.wiki Main Page Styles
* Using correct theme handling from MediaWiki-Common.css
*/
/* General Layout */
.mp-box {
margin-bottom: 32px;
position: relative;
}
/* Top Banner */
#mp-topbanner {
background: linear-gradient(135deg, #2e51a3, #4c6fc6);
color: #ffffff;
padding: 32px 24px;
border-radius: 8px;
text-align: center;
margin-bottom: 40px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.skin-citizen-dark #mp-topbanner {
background: linear-gradient(135deg, #375694, #2c4273);
}
#mp-welcome h1 {
font-size: 2.3rem;
margin: 0 0 8px;
font-weight: 700;
}
#mp-free {
font-size: 1.2rem;
opacity: 0.9;
max-width: 600px;
margin: 0 auto;
}
/* Search Box */
.mp-search-container {
max-width: 650px;
margin: -24px auto 32px;
position: relative;
z-index: 5;
}
.mp-search-box {
background-color: #ffffff;
border: 1px solid #dfe1e5;
border-radius: 8px;
padding: 20px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.skin-citizen-dark .mp-search-box {
background-color: #1f2937;
border-color: #374151;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
/* Section Headings */
.mp-section-heading {
font-size: 1.6rem;
font-weight: 700;
margin: 32px 0 24px;
text-align: center;
color: #2e51a3;
position: relative;
}
.skin-citizen-dark .mp-section-heading {
color: #8ab4f8;
}
.mp-section-heading:after {
content: "";
display: block;
width: 60px;
height: 3px;
background: #4c6fc6;
margin: 10px auto 0;
border-radius: 1px;
}
.skin-citizen-dark .mp-section-heading:after {
background: #8ab4f8;
}
/* Category Layout */
#mp-categories-container {
margin: 32px 0;
}
.mp-category-row {
display: flex;
flex-wrap: wrap;
margin: 0 -10px 20px;
}
/* Category Cards */
.mp-category-card {
background-color: #ffffff;
border-radius: 8px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
padding: 20px;
flex: 1;
min-width: 250px;
max-width: 350px;
border: 1px solid #eaecef;
margin: 0 10px 20px;
transition: box-shadow 0.2s;
}
.skin-citizen-dark .mp-category-card {
background-color: #1f2937;
border-color: #374151;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.mp-category-card:hover {
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}
.skin-citizen-dark .mp-category-card:hover {
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}
/* Category Header with Icon and Title on same line */
.mp-category-header {
display: flex;
align-items: center;
margin-bottom: 16px;
}
.mp-category-icon {
font-size: 24px;
margin-right: 12px;
}
.mp-category-title {
font-size: 1.25rem;
font-weight: 600;
margin: 0;
color: #2e51a3;
}
.skin-citizen-dark .mp-category-title {
color: #8ab4f8;
}
.mp-category-list {
list-style: none;
padding: 0;
margin: 0;
}
.mp-category-list li {
padding: 8px 0;
border-bottom: 1px solid #eaecef;
}
.skin-citizen-dark .mp-category-list li {
border-bottom: 1px solid #374151;
}
.mp-category-list li:last-child {
border-bottom: none;
margin-top: 10px;
font-weight: 500;
color: #2e51a3;
}
.skin-citizen-dark .mp-category-list li:last-child {
color: #8ab4f8;
}
/* Feature & Trending Grids */
.mp-featured-grid,
.mp-trending-grid,
.mp-paths-grid {
display: flex;
flex-wrap: wrap;
margin: 0 -12px;
padding: 20px 0;
}
.mp-featured-grid > *,
.mp-trending-grid > *,
.mp-paths-grid > * {
flex: 1 1 300px;
margin: 0 12px 24px;
min-width: 250px;
}
/* Community Section */
.mp-community-flex {
display: flex;
flex-wrap: wrap;
margin: 0 -12px;
}
.mp-community-card {
flex: 1 1 300px;
min-width: 250px;
background-color: #ffffff;
border-radius: 8px;
padding: 20px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
border: 1px solid #eaecef;
margin: 0 12px 24px;
}
.skin-citizen-dark .mp-community-card {
background-color: #1f2937;
border-color: #374151;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.mp-community-card h3 {
font-size: 1.1rem;
margin-top: 0;
margin-bottom: 16px;
padding-bottom: 10px;
border-bottom: 1px solid #eaecef;
color: #2e51a3;
}
.skin-citizen-dark .mp-community-card h3 {
border-bottom: 1px solid #374151;
color: #8ab4f8;
}
.mp-community-card ul {
padding-left: 20px;
margin: 0;
}
.mp-community-card li {
margin-bottom: 8px;
}
/* Statistics Section */
.mp-statistics-container {
display: flex;
flex-wrap: wrap;
margin: 0 -12px;
}
.mp-stat-card {
background-color: #ffffff;
border-radius: 8px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
padding: 20px;
min-width: 140px;
text-align: center;
border: 1px solid #eaecef;
flex: 1 1 140px;
margin: 0 12px 24px;
}
.skin-citizen-dark .mp-stat-card {
background-color: #1f2937;
border-color: #374151;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.mp-stat-number {
font-size: 1.8rem;
font-weight: 700;
color: #2e51a3;
margin-bottom: 8px;
}
.skin-citizen-dark .mp-stat-number {
color: #8ab4f8;
}
.mp-stat-label {
font-size: 0.95rem;
color: #586069;
}
.skin-citizen-dark .mp-stat-label {
color: #9ca3af;
}
/* Responsive Adjustments */
@media (max-width: 768px) {
.mp-category-card {
flex: 0 0 100%;
max-width: 100%;
}
#mp-welcome h1 {
font-size: 1.8rem;
}
.mp-section-heading {
font-size: 1.4rem;
}
}