Template:Main Page/styles.css
Template page
More actions
/**
* ComputerScience.wiki Main Page Styles
* Using colors and styles from MediaWiki-Common.css
*/
/* General Layout */
.mp-box {
margin-bottom: 32px;
position: relative;
}
/* Top Banner */
#mp-topbanner {
background: linear-gradient(135deg, #2e51a3, #4c6fc6);
color: white;
padding: 32px 24px;
border-radius: 8px;
text-align: center;
margin-bottom: 40px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
#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);
}
/* Section Headings */
.mp-section-heading {
font-size: 1.6rem;
font-weight: 700;
margin: 32px 0 24px;
text-align: center;
color: #2e51a3;
position: relative;
}
.mp-section-heading:after {
content: "";
display: block;
width: 60px;
height: 3px;
background: #4c6fc6;
margin: 10px auto 0;
border-radius: 1px;
}
/* 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;
}
.mp-category-card:hover {
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}
/* 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;
}
.mp-category-list {
list-style: none;
padding: 0;
margin: 0;
}
.mp-category-list li {
padding: 8px 0;
border-bottom: 1px solid #eaecef;
}
.mp-category-list li:last-child {
border-bottom: none;
margin-top: 10px;
font-weight: 500;
color: #2e51a3;
}
/* 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;
}
.mp-community-card h3 {
font-size: 1.1rem;
margin-top: 0;
margin-bottom: 16px;
padding-bottom: 10px;
border-bottom: 1px solid #eaecef;
color: #2e51a3;
}
.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;
}
.mp-stat-number {
font-size: 1.8rem;
font-weight: 700;
color: #2e51a3;
margin-bottom: 8px;
}
.mp-stat-label {
font-size: 0.95rem;
color: #586069;
}
/* 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;
}
}