Template:Main Page/styles.css
Template page
More actions
/* General reset and base styles */
#mp-topbanner {
background-color: #f8f9fa;
padding: 0.5em;
margin-bottom: 1em;
border-radius: 5px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
#mp-welcome {
font-size: 1.2em;
margin: 0;
text-align: center;
}
#mp-welcome h1 {
margin: 0.2em 0;
border-bottom: none;
font-family: 'Linux Libertine', 'Georgia', 'Times', serif;
font-size: 1.7em;
}
#mp-free {
text-align: center;
font-size: 1.1em;
margin-bottom: 0.5em;
color: #54595d;
}
#articlecount {
text-align: center;
font-size: 0.9em;
color: #72777d;
}
#articlecount ul {
margin: 0;
display: inline-block;
list-style: none;
padding-left: 0;
}
#articlecount li {
display: inline-block;
margin: 0 1em;
}
.mp-box {
margin-bottom: 1em;
padding: 0;
border-radius: 5px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.mp-h2 {
margin: 0;
padding: 0.5em;
border-bottom: none;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
font-size: 1.3em;
font-weight: bold;
color: white;
}
#mp-tfa-h2, #mp-dyk-h2 {
background: linear-gradient(to right, #36c, #1a6399);
}
#mp-itn-h2, #mp-otd-h2 {
background: linear-gradient(to right, #c36, #9a1c43);
}
#mp-tfl-h2 {
background: linear-gradient(to right, #36b, #274c89);
}
#mp-tfp-h2 {
background: linear-gradient(to right, #4caf50, #2e7d32);
}
#mp-other {
background: linear-gradient(to right, #673ab7, #4527a0);
color: white;
}
#mp-sister {
background: linear-gradient(to right, #ff9800, #e65100);
color: white;
}
#mp-lang {
background: linear-gradient(to right, #607d8b, #455a64);
color: white;
}
.mp-contains-float {
padding: 0.5em;
}
#mp-tfa, #mp-dyk {
background-color: #f8f9fa;
}
#mp-itn, #mp-otd {
background-color: #fef6f9;
}
#mp-tfl {
background-color: #f5f8fa;
}
#mp-tfp {
background-color: #f1f8e9;
}
#mp-other-content {
background-color: #f3e5f5;
padding: 0.5em;
}
#mp-sister-content {
background-color: #fff3e0;
padding: 0.5em;
}
/* Section grid layout */
.mp-section-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1em;
}
.mp-section-cell {
background-color: #ffffff;
border-radius: 4px;
padding: 0.8em;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.mp-section-cell h3 {
margin-top: 0;
border-bottom: 1px solid #eaecf0;
padding-bottom: 0.3em;
font-size: 1.1em;
}
.mp-section-cell ul {
margin: 0.5em 0;
padding-left: 1.5em;
}
.mp-section-cell li {
margin-bottom: 0.3em;
}
.mp-section-link {
text-align: right;
margin-top: 0.5em;
font-size: 0.9em;
}
/* Responsive grid for tablet devices */
@media (max-width: 768px) {
.mp-section-grid {
grid-template-columns: repeat(2, 1fr);
}
}
/* Responsive grid for mobile devices - Fix for CS cards */
@media (max-width: 480px) {
.mp-section-grid {
grid-template-columns: 1fr;
width: 100%;
box-sizing: border-box;
}
.mp-section-cell {
width: 100%;
max-width: 100%;
box-sizing: border-box;
overflow-wrap: break-word;
}
}
/* Additional styles */
.MainPageBG {
width: 100%;
border: 1px solid #f0f0f0;
}
#mp-upper {
display: flex;
}
#mp-left {
flex: 1;
margin-right: 0.5em;
}
#mp-right {
flex: 1;
margin-left: 0.5em;
}
/* Column containers */
.hlist-separated ul {
margin: 0;
}
.hlist-separated li {
display: inline-block;
}
.hlist-separated li:after {
content: '•';
margin: 0 0.5em;
color: #aaa;
}
.hlist-separated li:last-child:after {
content: '';
margin: 0;
}
/* Featured content boxes */
.main-box {
padding: 1em;
background-color: #ffffff;
border-radius: 3px;
margin-bottom: 1em;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.feature-box {
background: #f9f9f9;
padding: 1em;
margin-bottom: 1em;
border-left: 3px solid #36c;
border-radius: 0 3px 3px 0;
}
.feature-box h3 {
margin-top: 0;
color: #36c;
}
/* Topic grid */
.topic-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1em;
}
.topic-card {
background: #fff;
padding: 1em;
border-radius: 3px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.topic-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.topic-card h3 {
margin-top: 0;
border-bottom: 1px solid #eaecf0;
padding-bottom: 0.5em;
font-weight: 500;
}
/* News section */
.news-item {
margin-bottom: 1em;
padding-bottom: 1em;
border-bottom: 1px solid #eaecf0;
}
.news-item:last-child {
border-bottom: none;
margin-bottom: 0;
padding-bottom: 0;
}
.news-date {
color: #72777d;
font-size: 0.9em;
}
/* Additional utility classes */
.text-center {
text-align: center;
}
.text-muted {
color: #72777d;
}
.mb-2 {
margin-bottom: 0.5em;
}
.mb-3 {
margin-bottom: 1em;
}
.p-2 {
padding: 0.5em;
}
.p-3 {
padding: 1em;
}
/* Category links */
.category-links {
background: #f8f9fa;
padding: 0.7em;
border-radius: 3px;
margin-top: 1em;
}
.category-links h3 {
margin-top: 0;
font-size: 1.1em;
color: #54595d;
}
.category-links ul {
margin: 0;
padding: 0;
list-style: none;
columns: 3;
}
.category-links li {
margin-bottom: 0.3em;
break-inside: avoid;
}
/* Responsive layout */
@media (max-width: 768px) {
#mp-upper {
flex-direction: column;
}
#mp-left, #mp-right {
margin: 0 0 1em 0;
width: 100%;
}
.topic-grid {
grid-template-columns: 1fr;
}
.category-links ul {
columns: 1;
}
}
/* Color themes */
.theme-blue {
border-top: 3px solid #36c;
}
.theme-green {
border-top: 3px solid #00af89;
}
.theme-red {
border-top: 3px solid #d33;
}
.theme-purple {
border-top: 3px solid #6b4ba1;
}
.theme-orange {
border-top: 3px solid #ff5d00;
}
/* Badge styles */
.badge {
display: inline-block;
padding: 0.25em 0.6em;
font-size: 0.8em;
font-weight: bold;
border-radius: 2em;
margin-left: 0.5em;
}
.badge-blue {
background-color: #36c;
color: white;
}
.badge-green {
background-color: #00af89;
color: white;
}
.badge-red {
background-color: #d33;
color: white;
}
/* Button styles */
.btn {
display: inline-block;
padding: 0.5em 1em;
border-radius: 3px;
text-decoration: none;
font-weight: 500;
transition: background-color 0.2s ease;
}
.btn-primary {
background-color: #36c;
color: white;
}
.btn-primary:hover {
background-color: #447ff5;
text-decoration: none;
color: white;
}
.btn-outline {
background-color: transparent;
border: 1px solid #36c;
color: #36c;
}
.btn-outline:hover {
background-color: #eaf3ff;
text-decoration: none;
}
/* Featured image */
.featured-image {
margin: 1em 0;
}
.featured-image img {
max-width: 100%;
height: auto;
border-radius: 3px;
}
.image-caption {
font-size: 0.9em;
color: #54595d;
text-align: center;
margin-top: 0.5em;
}
/* Quote box */
.quote-box {
font-family: 'Georgia', serif;
font-style: italic;
padding: 1em 1.5em;
margin: 1em 0;
background-color: #f8f9fa;
border-left: 3px solid #c8ccd1;
}
.quote-source {
display: block;
text-align: right;
font-style: normal;
font-size: 0.9em;
margin-top: 0.5em;
}
/* Progress indicators */
.progress-bar {
width: 100%;
background-color: #eaecf0;
height: 0.8em;
border-radius: 0.4em;
overflow: hidden;
margin: 0.5em 0;
}
.progress-fill {
height: 100%;
background-color: #36c;
}
/* Card layout */
.card {
background: white;
border-radius: 3px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
padding: 1em;
margin-bottom: 1em;
}
.card-header {
border-bottom: 1px solid #eaecf0;
padding-bottom: 0.5em;
margin-bottom: 0.5em;
}
.card-title {
margin: 0;
font-weight: 500;
}
.card-footer {
border-top: 1px solid #eaecf0;
padding-top: 0.5em;
margin-top: 0.5em;
text-align: right;
}
/* Timeline */
.timeline {
position: relative;
margin: 1em 0 1em 1em;
}
.timeline:before {
content: '';
position: absolute;
left: 0;
top: 0;
height: 100%;
width: 2px;
background: #eaecf0;
}
.timeline-item {
position: relative;
padding-left: 1.5em;
margin-bottom: 1em;
}
.timeline-item:before {
content: '';
position: absolute;
left: -5px;
top: 0.5em;
width: 12px;
height: 12px;
background: white;
border: 2px solid #36c;
border-radius: 50%;
}
.timeline-date {
font-weight: bold;
margin-bottom: 0.3em;
}
/* Tab navigation */
.tab-nav {
display: flex;
border-bottom: 1px solid #eaecf0;
margin-bottom: 1em;
}
.tab-item {
padding: 0.5em 1em;
cursor: pointer;
border-bottom: 2px solid transparent;
margin-right: 1em;
}
.tab-item.active {
border-bottom-color: #36c;
font-weight: bold;
}
/* Alert boxes */
.alert {
padding: 0.75em 1em;
border-radius: 3px;
margin: 1em 0;
}
.alert-info {
background-color: #eaf3ff;
border-left: 3px solid #36c;
}
.alert-success {
background-color: #f3fff8;
border-left: 3px solid #00af89;
}
.alert-warning {
background-color: #fef6e7;
border-left: 3px solid #ff5d00;
}
.alert-danger {
background-color: #fee7e6;
border-left: 3px solid #d33;
}
/* Stats counter */
.stats-counter {
display: flex;
justify-content: space-around;
text-align: center;
margin: 1em 0;
}
.stats-item {
padding: 0.5em;
}
.stats-number {
font-size: 1.5em;
font-weight: bold;
display: block;
margin-bottom: 0.2em;
}
.stats-label {
color: #54595d;
font-size: 0.9em;
}
/* Feature list */
.feature-list {
list-style: none;
padding: 0;
margin: 1em 0;
}
.feature-list li {
padding-left: 1.5em;
position: relative;
margin-bottom: 0.5em;
}
.feature-list li:before {
content: '✓';
position: absolute;
left: 0;
color: #00af89;
font-weight: bold;
}
/* Image grid */
.image-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1em;
margin: 1em 0;
}
.image-grid-item img {
width: 100%;
height: auto;
border-radius: 3px;
}
@media (max-width: 768px) {
.image-grid {
grid-template-columns: repeat(2, 1fr);
}
}
/* Collapsible sections */
.collapsible-header {
background: #f8f9fa;
padding: 0.5em;
cursor: pointer;
border-radius: 3px;
margin: 0.5em 0;
}
.collapsible-header:after {
content: '▼';
float: right;
transform: rotate(0);
transition: transform 0.3s ease;
}
.collapsible-header.collapsed:after {
transform: rotate(-90deg);
}
.collapsible-content {
padding: 0.5em;
display: none;
}
/* Tooltips */
.tooltip {
position: relative;
display: inline-block;
border-bottom: 1px dotted #c8ccd1;
}
.tooltip .tooltip-text {
visibility: hidden;
background-color: #333;
color: white;
text-align: center;
border-radius: 3px;
padding: 0.5em;
position: absolute;
z-index: 1;
bottom: 125%;
left: 50%;
transform: translateX(-50%);
opacity: 0;
transition: opacity 0.3s;
}
.tooltip:hover .tooltip-text {
visibility: visible;
opacity: 1;
}
/* Rating stars */
.rating {
display: inline-block;
}
.rating .star {
color: #ddd;
}
.rating .star.filled {
color: #ffb900;
}
/* Tags */
.tag {
display: inline-block;
background: #eaecf0;
color: #54595d;
padding: 0.2em 0.6em;
border-radius: 2em;
margin-right: 0.5em;
font-size: 0.9em;
}
.tag:hover {
background: #c8ccd1;
text-decoration: none;
}
/* Footer */
.footer {
margin-top: 2em;
padding-top: 1em;
border-top: 1px solid #eaecf0;
color: #72777d;
font-size: 0.9em;
}
.footer-links {
display: flex;
justify-content: center;
flex-wrap: wrap;
}
.footer-links a {
margin: 0 1em;
}
.footer-text {
text-align: center;
margin-top: 1em;
}
/* Additional color themes for section backgrounds */
.bg-light {
background-color: #f8f9fa;
}
.bg-lighter {
background-color: #fafbfc;
}
.bg-blue-light {
background-color: #eaf3ff;
}
.bg-green-light {
background-color: #f3fff8;
}
.bg-red-light {
background-color: #fee7e6;
}
.bg-yellow-light {
background-color: #fef6e7;
}
.bg-purple-light {
background-color: #f3e5f5;
}
/* Topic pages */
.topic-header {
background: #f8f9fa;
padding: 1em;
margin-bottom: 1em;
border-radius: 5px;
}
.topic-title {
font-size: 1.5em;
margin: 0 0 0.5em 0;
}
.topic-description {
color: #54595d;
}
/* Search box */
.search-box {
display: flex;
margin: 1em 0;
}
.search-input {
flex-grow: 1;
padding: 0.5em;
border: 1px solid #c8ccd1;
border-radius: 3px 0 0 3px;
outline: none;
}
.search-button {
background: #36c;
color: white;
border: none;
padding: 0.5em 1em;
border-radius: 0 3px 3px 0;
cursor: pointer;
}
.search-button:hover {
background: #447ff5;
}
/* Related articles */
.related-articles {
margin-top: 2em;
background: #f8f9fa;
padding: 1em;
border-radius: 3px;
}
.related-articles h3 {
margin-top: 0;
color: #54595d;
}
.related-articles ul {
margin: 0.5em 0 0 0;
padding: 0;
list-style: none;
display: flex;
flex-wrap: wrap;
}
.related-articles li {
flex: 1 0 50%;
padding: 0.3em 0;
}
@media (max-width: 768px) {
.related-articles li {
flex: 1 0 100%;
}
}
/* Article navigation */
.article-nav {
display: flex;
margin: 2em 0;
border-top: 1px solid #eaecf0;
border-bottom: 1px solid #eaecf0;
padding: 1em 0;
}
.nav-prev, .nav-next {
flex: 1;
}
.nav-next {
text-align: right;
}
.nav-label {
display: block;
font-size: 0.9em;
color: #72777d;
margin-bottom: 0.3em;
}
/* Social sharing */
.social-share {
display: flex;
justify-content: flex-end;
margin: 1em 0;
}
.share-button {
width: 36px;
height: 36px;
background: #eaecf0;
border-radius: 50%;
display: inline-flex;
align-items: center;
justify-content: center;
margin-left: 0.5em;
color: #54595d;
text-decoration: none;
}
.share-button:hover {
background: #c8ccd1;
text-decoration: none;
}
/* Author box */
.author-box {
display: flex;
margin: 2em 0;
background: #f8f9fa;
padding: 1em;
border-radius: 3px;
}
.author-avatar {
width: 64px;
height: 64px;
border-radius: 50%;
margin-right: 1em;
}
.author-info {
flex: 1;
}
.author-name {
margin: 0 0 0.3em 0;
}
.author-bio {
margin: 0;
color: #54595d;
font-size: 0.95em;
}
/* Last updated */
.last-updated {
font-size: 0.9em;
color: #72777d;
text-align: right;
margin: 2em 0 1em;
}
/* TOC (Table of Contents) */
.toc {
background: #f8f9fa;
border: 1px solid #eaecf0;
border-radius: 3px;
padding: 1em;
margin: 1em 0 2em;
display: inline-block;
}
.toc-title {
margin: 0 0 0.5em;
font-weight: 500;
}
.toc ul {
margin: 0;
padding: 0 0 0 1.5em;
}
.toc li {
margin-bottom: 0.3em;
}
.toc a {
color: #36c;
text-decoration: none;
}
.toc a:hover {
text-decoration: underline;
}
/* Special portal styling */
.portal-container {
margin: 2em 0;
}
.portal-row {
display: flex;
flex-wrap: wrap;
margin: 0 -0.5em;
}
.portal-column {
flex: 1 0 300px;
padding: 0 0.5em;
margin-bottom: 1em;
}
.portal-box {
background: white;
border-radius: 3px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
height: 100%;
}
.portal-header {
padding: 1em;
border-bottom: 1px solid #eaecf0;
}
.portal-header h3 {
margin: 0;
}
.portal-content {
padding: 1em;
}
.portal-footer {
padding: 1em;
border-top: 1px solid #eaecf0;
text-align: right;
}
@media (max-width: 768px) {
.portal-column {
flex: 1 0 100%;
}
}