MediaWiki:Mainpage.css
MediaWiki interface page
More actions
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* Base Reset and Scope Context matching Vector 2010 Theme */
.mainpage-container {
max-width: 1450px;
margin: 0 auto;
font-family: Inter, system-ui, -apple-system, sans-serif;
}
/* Base Link Global Overrides to safeguard against default styles */
.mainpage-container a,
.mainpage-container a:link,
.mainpage-container a:visited {
color: #00cfff !important;
text-decoration: none;
}
.mainpage-container a:hover {
color: #ffffff !important;
text-decoration: underline !important;
}
.mp-notice {
border: 1px solid #00cfff;
background: #020523;
color: #d9f5ff;
padding: 12px;
margin: 10px 0 18px 0;
text-align: center;
font-size: 0.95em;
}
/* Banner Backdrop and Overlay Integration Rules */
.mp-hero {
position: relative;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
gap: 20px;
background-image: url('https://dantdm.wiki/images/dantdmwiki/1/13/DanTDM2022Banner.jpg');
background-size: cover;
background-position: center;
border: 1px solid #00cfff;
padding: 30px;
margin-bottom: 20px;
color: white;
overflow: hidden;
z-index: 1;
}
.mp-hero-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(135deg, rgba(2, 5, 35, 0.88) 0%, rgba(16, 37, 63, 0.72) 100%);
backdrop-filter: blur(2px);
-webkit-backdrop-filter: blur(2px);
z-index: -1;
}
.mp-hero-left {
flex: 1;
min-width: 320px;
}
.mp-logo-wrapper {
margin-bottom: 8px;
}
.mp-hero-left h1 {
border: none !important;
font-size: 2.5em;
font-weight: 800;
margin: 4px 0 12px 0;
padding: 0;
color: #ffffff;
text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
.mp-tagline {
font-size: 1.08em;
line-height: 1.7;
max-width: 760px;
color: #e2f1ff;
text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.mp-actions {
margin-top: 20px;
}
.mp-actions a,
.mp-actions a:link,
.mp-actions a:visited {
display: inline-block;
background: #020523 !important;
color: #00cfff !important;
text-decoration: none !important;
padding: 10px 16px;
margin: 0 8px 8px 0;
font-weight: 700;
border: 1px solid #00cfff;
transition: background 0.2s, color 0.2s;
}
.mp-actions a:hover {
background: #00cfff !important;
color: #020523 !important;
}
/* Stats Styling Rules */
.mp-stats {
width: 300px;
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 12px;
}
.mp-stat {
background: rgba(2, 5, 35, 0.75);
border: 1px solid #00cfff;
padding: 16px 10px;
text-align: center;
backdrop-filter: blur(4px);
}
.mp-stat-value {
font-size: 2.1em;
color: #00cfff;
font-weight: bold;
}
.mp-stat-text {
margin-top: 4px;
font-size: 0.9em;
text-transform: uppercase;
letter-spacing: 0.5px;
color: #ccecff;
}
/* Sections & Universal Title Elements */
.mp-section {
margin-bottom: 24px;
}
.mp-section-title {
background: linear-gradient(90deg, #020523 0%, #16385f 100%);
color: white;
padding: 12px 16px;
font-size: 1.15em;
font-weight: bold;
margin-bottom: 12px;
border-left: 3px solid #00cfff;
border-bottom: 1px solid #00cfff;
}
.mp-title-diamond {
color: #00cfff;
margin-right: 4px;
font-size: 0.95em;
}
.mp-card-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 14px;
}
/* Portal Navigation Display Cards */
.nav-portal-item {
background: #020523;
border: 1px solid rgba(0, 207, 255, 0.3);
overflow: hidden;
transition: transform 0.2s, border-color 0.2s;
}
.nav-portal-item:hover {
transform: translateY(-2px);
border-color: #00cfff;
}
.nav-portal-item-image img {
width: 100%;
height: auto;
display: block;
}
.nav-portal-item-subtitle {
padding: 12px;
text-align: center;
font-weight: 600;
background: rgba(22, 56, 95, 0.4);
border-top: 1px solid rgba(0, 207, 255, 0.2);
}
/* Dynamic Multi-Column Hub Framework */
.mp-columns-layout {
display: flex;
gap: 18px;
margin-bottom: 22px;
}
.mp-left-column {
flex: 2;
}
.mp-right-column {
flex: 1;
min-width: 320px;
}
.mp-panel {
background: #020523;
border: 1px solid rgba(0, 207, 255, 0.3);
}
.mp-panel-discord {
background: #020523;
border: 1px solid #00cfff;
height: 100%;
}
.mp-discord-body {
padding: 12px;
}
.mp-nav-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
gap: 10px;
padding: 14px;
}
.mp-nav-item {
background: rgba(22, 56, 95, 0.3);
border: 1px solid rgba(0, 207, 255, 0.2);
border-left: 4px solid #00cfff;
padding: 12px;
font-weight: 600;
transition: background 0.2s, border-color 0.2s;
}
.mp-nav-item:hover {
background: rgba(22, 56, 95, 0.6);
border-color: #00cfff;
}
/* Footer Styling Rules */
.mp-footer {
background: #020523;
border: 1px solid #00cfff;
padding: 16px;
text-align: center;
color: #d5dce5;
font-size: 0.95em;
}
/* Responsive Adaptive Viewport Adjustments */
@media (max-width: 950px) {
.mp-columns-layout {
flex-direction: column;
}
.mp-right-column {
width: 100%;
}
.mp-hero {
padding: 20px;
}
}
@media (max-width: 650px) {
.mp-stats {
width: 100%;
}
}