Template:Main Page/styles.css: Difference between revisions
Template page
More actions
Created page with "→{{pp|small=yes}}: .mp-box { border: 1px solid #aaa; →all colors overriden on specific elements in @media screen: padding: 0 0.5em 0.5em; margin-top: 4px; } .mp-h2, body.skin-timeless .mp-h2 { →Timeless needs a higher specificity: border: 1px solid #aaa; →all colors overriden on specific elements in @media screen: margin: 0.5em 0; padding: 0.2em 0.4em; font-size: 120%; font-weight: bold; font-family: inherit; } .mp-later { font-size: 85%; fon..." Tag: Recreated |
No edit summary |
||
Line 1: | Line 1: | ||
/* | /** | ||
* ComputerScience.wiki Main Page Styles | |||
* Modern design optimized for MediaWiki compatibility | |||
*/ | |||
/* General Layout */ | |||
.mp-box { | .mp-box { | ||
margin-bottom: 32px; | |||
position: relative; | |||
} | |||
/* Top Banner */ | |||
#mp-topbanner { | |||
background: linear-gradient(135deg, #4f46e5, #8b5cf6); | |||
color: white; | |||
padding: 32px 24px; | |||
border-radius: 16px; | |||
text-align: center; | |||
margin-bottom: 48px; | |||
} | |||
#mp-welcome h1 { | |||
font-size: 2.5rem; | |||
margin: 0 0 8px; | |||
font-weight: 700; | |||
} | |||
#mp-free { | |||
font-size: 1.25rem; | |||
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- | .mp-search-box { | ||
background-color: #ffffff; | |||
border: 1px solid #e5e7eb; | |||
border-radius: 12px; | |||
padding: 20px; | |||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); | |||
} | } | ||
.mp- | /* Section Headings */ | ||
.mp-section-heading { | |||
font-size: 1.75rem; | |||
font-weight: 700; | |||
margin: 32px 0 24px; | |||
text-align: center; | |||
color: #111827; | |||
position: relative; | |||
} | } | ||
.mp-section-heading:after { | |||
content: ""; | |||
display: block; | |||
width: 60px; | |||
height: 4px; | |||
background: linear-gradient(90deg, #4f46e5, #8b5cf6); | |||
margin: 12px auto 0; | |||
border-radius: 2px; | |||
} | } | ||
#mp- | /* Category Layout */ | ||
#mp-categories-container { | |||
margin: 32px 0; | |||
} | } | ||
.mp-category-row { | |||
display: flex; | |||
flex-wrap: wrap; | |||
margin: 0 -10px 24px; | |||
} | } | ||
#mp- | /* Category Cards */ | ||
.mp-category-card { | |||
background-color: #ffffff; | |||
border-radius: 16px; | |||
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05); | |||
padding: 24px; | |||
flex: 1; | |||
min-width: 250px; | |||
max-width: 350px; | |||
transition: transform 0.2s, box-shadow 0.2s; | |||
border: 1px solid #f3f4f6; | |||
margin: 0 10px 20px; | |||
} | |||
.mp-category-card:hover { | |||
transform: translateY(-5px); | |||
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); | |||
} | |||
.mp-category-icon { | |||
font-size: 28px; | |||
margin-bottom: 16px; | |||
} | |||
.mp-category-title { | |||
font-size: 1.25rem; | |||
font-weight: 600; | |||
margin: 0 0 16px; | |||
color: #111827; | |||
} | |||
.mp-category-list { | |||
list-style: none; | |||
padding: 0; | |||
margin: 0; | |||
} | } | ||
.mp-category-list li { | |||
padding: 8px 0; | |||
border-bottom: 1px solid #f3f4f6; | |||
} | } | ||
.mp-category-list li:last-child { | |||
border-bottom: none; | |||
margin-top: 10px; | |||
font-weight: 500; | |||
color: #4f46e5; | |||
} | } | ||
/* Feature & Trending Grids */ | |||
.mp-featured-grid, | |||
.mp-trending-grid, | |||
.mp-paths-grid { | |||
display: flex; | |||
flex-wrap: wrap; | |||
margin: 0 -12px; | |||
padding: 24px 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: 12px; | |||
padding: 24px; | |||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); | |||
border: 1px solid #f3f4f6; | |||
margin: 0 12px 24px; | |||
} | } | ||
.mp-community-card h3 { | |||
.mp- | font-size: 1.125rem; | ||
margin-top: 0; | |||
margin-bottom: 16px; | |||
padding-bottom: 10px; | |||
border-bottom: 2px solid #f3f4f6; | |||
color: #111827; | |||
} | } | ||
.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: 12px; | |||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); | |||
padding: 20px; | |||
min-width: 150px; | |||
text-align: center; | |||
border: 1px solid #f3f4f6; | |||
flex: 1 1 150px; | |||
margin: 0 12px 24px; | |||
} | |||
.mp-stat-number { | |||
font-size: 2rem; | |||
font-weight: 700; | |||
color: #4f46e5; | |||
margin-bottom: 8px; | |||
} | |||
.mp-stat-label { | |||
font-size: 1rem; | |||
color: #6b7280; | |||
} | } | ||
/* | /* Responsive Adjustments */ | ||
@media | @media (max-width: 768px) { | ||
.mp-category-card { | |||
flex: 0 0 100%; | |||
max-width: 100%; | |||
} | |||
#mp-welcome h1 { | |||
font-size: 2rem; | |||
} | |||
.mp-section-heading { | |||
font-size: 1.5rem; | |||
} | |||
} | } |
Revision as of 17:06, 10 August 2025
/**
* ComputerScience.wiki Main Page Styles
* Modern design optimized for MediaWiki compatibility
*/
/* General Layout */
.mp-box {
margin-bottom: 32px;
position: relative;
}
/* Top Banner */
#mp-topbanner {
background: linear-gradient(135deg, #4f46e5, #8b5cf6);
color: white;
padding: 32px 24px;
border-radius: 16px;
text-align: center;
margin-bottom: 48px;
}
#mp-welcome h1 {
font-size: 2.5rem;
margin: 0 0 8px;
font-weight: 700;
}
#mp-free {
font-size: 1.25rem;
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 #e5e7eb;
border-radius: 12px;
padding: 20px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
/* Section Headings */
.mp-section-heading {
font-size: 1.75rem;
font-weight: 700;
margin: 32px 0 24px;
text-align: center;
color: #111827;
position: relative;
}
.mp-section-heading:after {
content: "";
display: block;
width: 60px;
height: 4px;
background: linear-gradient(90deg, #4f46e5, #8b5cf6);
margin: 12px auto 0;
border-radius: 2px;
}
/* Category Layout */
#mp-categories-container {
margin: 32px 0;
}
.mp-category-row {
display: flex;
flex-wrap: wrap;
margin: 0 -10px 24px;
}
/* Category Cards */
.mp-category-card {
background-color: #ffffff;
border-radius: 16px;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
padding: 24px;
flex: 1;
min-width: 250px;
max-width: 350px;
transition: transform 0.2s, box-shadow 0.2s;
border: 1px solid #f3f4f6;
margin: 0 10px 20px;
}
.mp-category-card:hover {
transform: translateY(-5px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
.mp-category-icon {
font-size: 28px;
margin-bottom: 16px;
}
.mp-category-title {
font-size: 1.25rem;
font-weight: 600;
margin: 0 0 16px;
color: #111827;
}
.mp-category-list {
list-style: none;
padding: 0;
margin: 0;
}
.mp-category-list li {
padding: 8px 0;
border-bottom: 1px solid #f3f4f6;
}
.mp-category-list li:last-child {
border-bottom: none;
margin-top: 10px;
font-weight: 500;
color: #4f46e5;
}
/* Feature & Trending Grids */
.mp-featured-grid,
.mp-trending-grid,
.mp-paths-grid {
display: flex;
flex-wrap: wrap;
margin: 0 -12px;
padding: 24px 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: 12px;
padding: 24px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
border: 1px solid #f3f4f6;
margin: 0 12px 24px;
}
.mp-community-card h3 {
font-size: 1.125rem;
margin-top: 0;
margin-bottom: 16px;
padding-bottom: 10px;
border-bottom: 2px solid #f3f4f6;
color: #111827;
}
.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: 12px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
padding: 20px;
min-width: 150px;
text-align: center;
border: 1px solid #f3f4f6;
flex: 1 1 150px;
margin: 0 12px 24px;
}
.mp-stat-number {
font-size: 2rem;
font-weight: 700;
color: #4f46e5;
margin-bottom: 8px;
}
.mp-stat-label {
font-size: 1rem;
color: #6b7280;
}
/* Responsive Adjustments */
@media (max-width: 768px) {
.mp-category-card {
flex: 0 0 100%;
max-width: 100%;
}
#mp-welcome h1 {
font-size: 2rem;
}
.mp-section-heading {
font-size: 1.5rem;
}
}