MediaWiki:Common.css: Difference between revisions
Appearance
Created page with "→CSS placed here will be applied to all skins: →=============================== 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; borde..." |
No edit summary |
||
(30 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | /* 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: 0.5em 0; /* Keep reduced margin */ | |||
background-color: #f8f9fa; | |||
padding: 0.2em 0.5em; /* Keep reduced padding */ | |||
border-radius: 8px; | |||
box-shadow: 0 2px 10px rgba(0,0,0,0.05); | |||
} | |||
.hero-banner img { | |||
max-height: 300px; /* Keep image height consistent */ | |||
width: auto; | |||
max-width: 100%; | |||
display: block; | |||
margin-left: auto; | |||
margin-right: auto; | |||
margin-bottom: 0; | |||
} | |||
.hero-title { | |||
font-size: 1.7em; /* SMALLER - Reduced font size further */ | |||
font-weight: bold; /* Keep bold for emphasis */ | |||
margin-top: 0.1em; /* TIGHTER - Reduced top margin significantly */ | |||
margin-bottom: 0; /* Keep bottom margin at 0 */ | |||
color: #2c3e50; | |||
text-shadow: 1px 1px 2px rgba(0,0,0,0.1); | |||
text-align: center; | |||
line-height: 1.2; /* TIGHTER - Reduced line-height */ | |||
} | |||
.hero-subtitle { | |||
font-size: 1.0em; /* SMALLER - Reduced font size further */ | |||
margin-top: 0.05em; /* TIGHTER - Almost no top margin */ | |||
color: #34495e; | |||
font-weight: 300; | |||
text-align: center; | |||
margin-bottom: 0.1em; /* TIGHTER - Minimal bottom margin */ | |||
line-height: 1.2; /* TIGHTER - Reduced line-height */ | |||
} | |||
.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: 1em auto; /* Keep as previously reduced */ | |||
font-size: 1em; /* Keep as previously reduced */ | |||
line-height: 1.6; /* Keep as previously reduced */ | |||
text-align: center; | |||
color: #333; | |||
background-color: white; | |||
padding: 1em; /* Keep as previously reduced */ | |||
border-radius: 8px; | |||
box-shadow: 0 2px 8px rgba(0,0,0,0.05); | |||
} | |||
.about-section h2 { | |||
color: #2c3e50; | |||
margin-bottom: 0.5em; /* Keep as previously reduced */ | |||
font-size: 1.5em; /* Keep as previously reduced */ | |||
} | |||
.about-section p { | |||
margin-top: 0; | |||
margin-bottom: 0.5em; /* Keep as previously reduced */ | |||
} | |||
.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; | |||
} | |||
} | |||
/* =============================== | /* =============================== | ||
Line 20: | Line 457: | ||
/* If your wiki has standard 'header' rows in tables, style them nicely */ | /* If your wiki has standard 'header' rows in tables, style them nicely */ | ||
table th { | table th { | ||
background-color: #eee; | background-color: #eee; | ||
font-weight: bold; | font-weight: bold; | ||
padding: 0.5em; | padding: 0.5em; | ||
border: 1px solid #ccc; | border: 1px solid #ccc; | ||
Line 120: | Line 557: | ||
margin-bottom: 1em; | margin-bottom: 1em; | ||
} | } | ||
} | |||
/* Remove header from the front page. */ | |||
body.page-Main_Page h1.firstHeading { | |||
display: none; | |||
} | |||
/* Hide the search options box on search result page */ | |||
/* Hide the "Search in namespaces:" section */ | |||
#mw-searchoptions { | |||
display: none !important; | |||
} | |||
.mw-search-profile-tabs { | |||
display: none !important; | |||
} | } |