MediaWiki:Common.css: Difference between revisions
From AnarchyMU Wiki
No edit summary |
No edit summary |
||
| Line 137: | Line 137: | ||
height: 120px; | height: 120px; | ||
} | } | ||
} | |||
/* Update 002: unify top accent bars and section separators to RealMU-like red */ | |||
:root { | |||
--realmu-accent: #a7372d; | |||
} | |||
#mw-header-hack .color-left, | |||
#mw-header-hack .color-middle, | |||
#mw-header-hack .color-right, | |||
#mw-header-nav-hack .color-left, | |||
#mw-header-nav-hack .color-middle, | |||
#mw-header-nav-hack .color-right { | |||
background-color: var(--realmu-accent) !important; | |||
} | |||
#firstHeading, | |||
.mw-body h2, | |||
.mw-body h3, | |||
.mw-heading h2, | |||
.mw-heading h3 { | |||
border-bottom-color: var(--realmu-accent) !important; | |||
} | |||
.mw-body hr, | |||
.mw-parser-output hr { | |||
border-color: var(--realmu-accent) !important; | |||
background-color: var(--realmu-accent) !important; | |||
} | |||
.sidebar-chunk h2, | |||
.sidebar-chunk h3 { | |||
border-bottom-color: var(--realmu-accent) !important; | |||
} | } | ||
Revision as of 11:40, 17 March 2026
/* RealMU-style layout for guide homepage */
.mw-guide-container {
width: 100%;
}
.mw-guide-grid {
display: grid;
grid-template-columns: repeat(4, minmax(140px, 1fr));
gap: 10px;
margin: 8px 0 16px 0;
}
.mw-guide-item {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 10px;
text-decoration: none !important;
color: #d8dde7 !important;
background: #12151d;
border: 1px solid #2a2f3d;
border-radius: 8px;
transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
min-height: 56px;
box-sizing: border-box;
}
.mw-guide-item:hover {
transform: translateY(-1px);
border-color: #4b5876;
background: #191f2b;
}
.mw-guide-icon {
width: 40px;
height: 40px;
flex: 0 0 auto;
display: flex;
align-items: center;
justify-content: center;
}
.mw-guide-text {
font-weight: 600;
line-height: 1.2;
font-size: 13px;
}
.mw-image-container {
width: 100%;
}
.mw-image-grid-5col {
display: grid;
grid-template-columns: repeat(5, minmax(150px, 1fr));
gap: 14px;
margin-top: 8px;
}
.mw-image-card {
display: block;
text-decoration: none !important;
color: #dce2ee !important;
background: #12151d;
border: 1px solid #2a2f3d;
border-radius: 10px;
overflow: hidden;
transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.mw-image-card:hover {
transform: translateY(-2px);
border-color: #4f5f84;
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.mw-card-image {
position: relative;
height: 140px;
background: radial-gradient(circle at 50% 25%, #2f3649, #12151d 72%);
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.mw-card-image.bg-classes::before {
content: "";
position: absolute;
inset: 0;
background-image: url("https://images.realmu.net/uploads/20250530/16839f3e0764e9.png");
background-repeat: no-repeat;
background-position: center;
background-size: cover;
opacity: 0.95;
}
.mw-card-image img {
position: relative;
z-index: 1;
width: auto;
max-width: 88%;
max-height: 128px;
object-fit: contain;
}
.mw-card-text {
text-align: center;
padding: 9px 6px;
font-size: 13px;
font-weight: 700;
border-top: 1px solid #2a2f3d;
}
@media (max-width: 1200px) {
.mw-guide-grid,
.mw-image-grid-5col {
grid-template-columns: repeat(4, minmax(140px, 1fr));
}
}
@media (max-width: 900px) {
.mw-guide-grid,
.mw-image-grid-5col {
grid-template-columns: repeat(3, minmax(130px, 1fr));
}
}
@media (max-width: 640px) {
.mw-guide-grid,
.mw-image-grid-5col {
grid-template-columns: repeat(2, minmax(120px, 1fr));
}
.mw-card-image {
height: 120px;
}
}
/* Update 002: unify top accent bars and section separators to RealMU-like red */
:root {
--realmu-accent: #a7372d;
}
#mw-header-hack .color-left,
#mw-header-hack .color-middle,
#mw-header-hack .color-right,
#mw-header-nav-hack .color-left,
#mw-header-nav-hack .color-middle,
#mw-header-nav-hack .color-right {
background-color: var(--realmu-accent) !important;
}
#firstHeading,
.mw-body h2,
.mw-body h3,
.mw-heading h2,
.mw-heading h3 {
border-bottom-color: var(--realmu-accent) !important;
}
.mw-body hr,
.mw-parser-output hr {
border-color: var(--realmu-accent) !important;
background-color: var(--realmu-accent) !important;
}
.sidebar-chunk h2,
.sidebar-chunk h3 {
border-bottom-color: var(--realmu-accent) !important;
}