MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
Line 19: | Line 19: | ||
color: #2c3e50; | color: #2c3e50; | ||
text-shadow: 1px 1px 2px rgba(0,0,0,0.1); | text-shadow: 1px 1px 2px rgba(0,0,0,0.1); | ||
text-align: center; | |||
} | } | ||
Line 26: | Line 27: | ||
color: #34495e; | color: #34495e; | ||
font-weight: 300; | font-weight: 300; | ||
text-align: center; | |||
} | } | ||
Line 94: | Line 96: | ||
margin: 2em auto; | margin: 2em auto; | ||
max-width: 1000px; | max-width: 1000px; | ||
} | |||
.featured-content .section-header { | |||
display: flex; | |||
justify-content: space-between; | |||
align-items: center; | |||
border-bottom: 1px solid #eee; | |||
padding-bottom: 0.5em; | |||
margin-bottom: 1.5em; | |||
} | |||
.featured-content .section-header h2 { | |||
font-size: 2em; | |||
color: #2c3e50; | |||
margin: 0; | |||
padding: 0; | |||
text-align: left; | |||
} | |||
.featured-content .view-more { | |||
color: #3498db; | |||
text-decoration: none; | |||
font-weight: bold; | |||
font-size: 1.1em; | |||
} | } | ||
Line 107: | Line 133: | ||
margin: 0; | margin: 0; | ||
font-size: 1.8em; | font-size: 1.8em; | ||
padding-left: 0.5em; | |||
} | } | ||
Line 117: | Line 144: | ||
.featured-cards { | .featured-cards { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat( | grid-template-columns: repeat(3, 1fr); | ||
gap: 20px; | gap: 20px; | ||
} | } | ||
Line 127: | Line 154: | ||
box-shadow: 0 2px 8px rgba(0,0,0,0.1); | box-shadow: 0 2px 8px rgba(0,0,0,0.1); | ||
transition: transform 0.2s; | transition: transform 0.2s; | ||
text-align: center; | |||
} | } | ||
Line 136: | Line 164: | ||
.card-content { | .card-content { | ||
padding: 1em; | padding: 1em; | ||
text-align: center; | |||
} | } | ||
Line 141: | Line 170: | ||
margin-top: 0; | margin-top: 0; | ||
color: #2c3e50; | color: #2c3e50; | ||
text-align: center; | |||
font-size: 1.3em; | |||
margin-bottom: 0.5em; | |||
} | } | ||
Line 148: | Line 180: | ||
.read-more { | .read-more { | ||
display: inline-block; | |||
margin-top: 0.8em; | |||
color: #3498db; | color: #3498db; | ||
text-decoration: none; | text-decoration: none; | ||
Line 168: | Line 202: | ||
} | } | ||
.section-header { | .wiki-table th, | ||
.wiki-table-mobile th { | |||
text-align: center; | |||
} | |||
.section-header, | |||
.blue-header, | |||
.orange-header, | |||
.green-header, | |||
.pink-header, | |||
.yellow-header, | |||
.light-blue-header, | |||
.purple-header { | |||
width: 50%; | width: 50%; | ||
vertical-align: top; | vertical-align: top; | ||
Line 175: | Line 221: | ||
border: none; | border: none; | ||
font-size: 1.3em; | font-size: 1.3em; | ||
text-align: center; | |||
} | } | ||
Line 218: | Line 265: | ||
background-color: #fff; | background-color: #fff; | ||
box-shadow: 0 1px 3px rgba(0,0,0,0.1); | box-shadow: 0 1px 3px rgba(0,0,0,0.1); | ||
} | |||
.section-content ul { | |||
padding-left: 1.5em; | |||
} | |||
.section-content li { | |||
margin-bottom: 0.5em; | |||
} | } | ||
Line 229: | Line 284: | ||
grid-template-columns: 1fr 1fr; | grid-template-columns: 1fr 1fr; | ||
gap: 10px; | gap: 10px; | ||
padding: 0.5em; | |||
} | } | ||
Revision as of 01:54, 18 March 2025
/* CSS placed here will be applied to all skins */
/* Add any other common styles here that should apply to both desktop and mobile */
/* new front page CSS */
/* Hero Banner */
.hero-banner {
text-align: center;
margin: 2em 0;
background-color: #f8f9fa;
padding: 2em 1em;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.hero-title {
font-size: 2.5em;
font-weight: bold;
margin-top: 0.8em;
color: #2c3e50;
text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
text-align: center;
}
.hero-subtitle {
font-size: 1.4em;
margin-top: 0.4em;
color: #34495e;
font-weight: 300;
text-align: center;
}
.quick-access-buttons {
margin-top: 1.5em;
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 10px;
}
.button {
display: inline-block;
padding: 0.6em 1.2em;
color: white;
text-decoration: none;
border-radius: 4px;
font-weight: bold;
transition: all 0.2s;
}
.button:hover {
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.button-blue {
background-color: #3498db;
}
.button-green {
background-color: #2ecc71;
}
.button-red {
background-color: #e74c3c;
}
/* About Section */
.about-section {
max-width: 900px;
margin: 2em auto;
font-size: 1.1em;
line-height: 1.7;
text-align: center;
color: #333;
background-color: white;
padding: 1.5em;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.about-section h2 {
color: #2c3e50;
margin-bottom: 0.8em;
font-size: 1.8em;
}
.external-links {
margin-top: 1em;
display: flex;
justify-content: center;
gap: 15px;
}
/* Featured Content */
.featured-content {
margin: 2em auto;
max-width: 1000px;
}
.featured-content .section-header {
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid #eee;
padding-bottom: 0.5em;
margin-bottom: 1.5em;
}
.featured-content .section-header h2 {
font-size: 2em;
color: #2c3e50;
margin: 0;
padding: 0;
text-align: left;
}
.featured-content .view-more {
color: #3498db;
text-decoration: none;
font-weight: bold;
font-size: 1.1em;
}
.section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1em;
}
.section-header h2 {
color: #2c3e50;
margin: 0;
font-size: 1.8em;
padding-left: 0.5em;
}
.view-more {
color: #3498db;
text-decoration: none;
font-weight: bold;
}
.featured-cards {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
}
.featured-card {
background-color: white;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
transition: transform 0.2s;
text-align: center;
}
.featured-card:hover {
transform: translateY(-3px);
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.card-content {
padding: 1em;
text-align: center;
}
.card-content h3 {
margin-top: 0;
color: #2c3e50;
text-align: center;
font-size: 1.3em;
margin-bottom: 0.5em;
}
.card-content p {
color: #555;
}
.read-more {
display: inline-block;
margin-top: 0.8em;
color: #3498db;
text-decoration: none;
font-weight: bold;
}
/* Main Sections */
.main-sections {
margin: 2em auto;
max-width: 1000px;
}
.wiki-table {
width: 100%;
border-spacing: 1em;
margin: 0 auto;
background-color: #f8f9fa;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.wiki-table th,
.wiki-table-mobile th {
text-align: center;
}
.section-header,
.blue-header,
.orange-header,
.green-header,
.pink-header,
.yellow-header,
.light-blue-header,
.purple-header {
width: 50%;
vertical-align: top;
padding: 1.2em;
border-radius: 6px;
border: none;
font-size: 1.3em;
text-align: center;
}
.blue-header {
background-color: #e3f2fd;
color: #1565c0;
}
.orange-header {
background-color: #fff3e0;
color: #e65100;
}
.green-header {
background-color: #e8f5e9;
color: #2e7d32;
}
.pink-header {
background-color: #fce4ec;
color: #c2185b;
}
.yellow-header {
background-color: #fff8e1;
color: #ff8f00;
}
.light-blue-header {
background-color: #e1f5fe;
color: #0277bd;
}
.purple-header {
background-color: #f3e5f5;
color: #7b1fa2;
}
.section-content {
vertical-align: top;
padding: 1em;
border-radius: 6px;
background-color: #fff;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.section-content ul {
padding-left: 1.5em;
}
.section-content li {
margin-bottom: 0.5em;
}
.two-column {
column-count: 2;
column-gap: 20px;
}
.two-column-list {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
padding: 0.5em;
}
.tag, .date-tag {
color: #888;
font-size: 0.9em;
}
.view-all {
text-align: right;
margin-top: 0.5em;
}
/* Wiki Statistics */
.wiki-stats {
margin: 2em auto;
max-width: 900px;
background-color: #f8f9fa;
padding: 1.5em;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.wiki-stats h2 {
color: #2c3e50;
text-align: center;
margin-bottom: 1em;
font-size: 1.8em;
}
.stats-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 20px;
text-align: center;
}
.stat-box {
flex: 1;
min-width: 200px;
background-color: white;
padding: 1em;
border-radius: 6px;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.stat-number {
font-size: 2.5em;
font-weight: bold;
}
.stat-blue .stat-number {
color: #3498db;
}
.stat-red .stat-number {
color: #e74c3c;
}
.stat-green .stat-number {
color: #2ecc71;
}
.stat-label {
color: #555;
}
/* Footer */
.wiki-footer {
text-align: center;
margin-top: 2em;
padding: 1.5em;
background-color: #2c3e50;
color: #ecf0f1;
border-radius: 8px;
}
.footer-text {
font-size: 1.1em;
margin-bottom: 1em;
}
.footer-links {
display: flex;
justify-content: center;
gap: 15px;
flex-wrap: wrap;
margin-bottom: 1em;
}
.footer-links a {
color: #3498db;
}
.footer-date {
font-size: 0.9em;
margin-top: 1em;
color: #bdc3c7;
}
/* Hover effects */
.featured-card:hover,
.stat-box:hover {
transform: translateY(-3px);
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
transition: transform 0.3s, box-shadow 0.3s;
}
/* end of new front page */
/* used by the front page start*/
/* Default styles for desktop (769px or more) */
.desktop-view {
display: block;
}
.mobile-view {
display: none;
}
@media only screen and (max-width: 768px) {
.desktop-view { display: none !important; }
.mobile-view { display: block !important; }
}
/* used by the front page end*/
/* Infobox */
@media screen and (min-width: 769px) {
.infobox {
float: right;
margin: 0 0 1em 1em;
width: 350px;
}
}
/* ===============================
Global Reset & Basic Elements
=============================== */
body {
/* For a slight background color or subtle pattern, uncomment or adjust below: */
/* background-color: #f7f8fa; */
font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
line-height: 1.6;
color: #333;
}
/* Give tables a bit more breathing room */
table {
border-collapse: separate;
border-spacing: 0.5em;
}
/* If your wiki has standard 'header' rows in tables, style them nicely */
table th {
background-color: #eee;
font-weight: bold;
padding: 0.5em;
border: 1px solid #ccc;
}
/* Standard table data cells */
table td {
background-color: #fff;
padding: 0.5em;
border: 1px solid #ccc;
}
/* Links (unvisited) */
a {
color: #2e86c1;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
/* ===============================
Headings
=============================== */
h1, .mw-headline {
color: #2c3e50;
font-weight: bold;
}
/* ===============================
Custom Classes for the Main Page
=============================== */
/* Hero Banner or Front-Page Banner */
.frontpage-hero {
text-align: center;
margin: 1em 0;
position: relative;
}
.frontpage-hero img {
max-width: 100%;
border-radius: 6px;
opacity: 0.9;
}
/* Optional text overlay if you use absolute positioning on your banner */
.hero-overlay-text {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: #fff;
text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
font-size: 2em;
}
/* Boxes or panels for sections (e.g. "News & Updates", "Getting Started") */
.mainpage-box {
background-color: #fefefe;
border: 1px solid #ccc;
padding: 1em;
border-radius: 5px;
}
/* A subtle highlight color for "featured" sections */
.featured-section {
background-color: #eff7ff;
border: 1px solid #bcdffd;
}
/* ===============================
Footer
=============================== */
#footer, .mw-footer {
text-align: center;
font-size: 0.9em;
color: #666;
margin-top: 2em;
}
/* ===============================
Mobile Responsiveness
=============================== */
@media screen and (max-width: 768px) {
/* Make tables more flexible on mobile, if needed */
table {
width: 100%;
overflow-x: auto;
display: block;
}
/* Example for front page columns turning into stacked blocks on mobile */
.mw-columns-2 {
display: block;
}
.mw-columns-2 > div {
width: 100% !important;
margin-bottom: 1em;
}
}
/* Remove header from the front page. */
body.page-Main_Page h1.firstHeading {
display: none;
}