MediaWiki:Common.css: Difference between revisions
From AnarchyMU Wiki
No edit summary |
No edit summary |
||
| Line 445: | Line 445: | ||
body.page-Doppelganger .magnify { | body.page-Doppelganger .magnify { | ||
display: none !important; | display: none !important; | ||
} | |||
/* Update 027: Doppelganger visual hotfix (thumb background + minimap pre block) */ | |||
/* Apply to both possible body classes */ | |||
body.page-Doppelganger, | |||
body.page-Doppelganger_EN { | |||
--dg-bg: #0f1116; | |||
--dg-border: #262932; | |||
--dg-text: #cad2df; | |||
} | |||
/* Strong thumbnail overrides for Timeless/legacy markup */ | |||
body.page-Doppelganger .thumb, | |||
body.page-Doppelganger_EN .thumb { | |||
background: transparent !important; | |||
border: 0 !important; | |||
} | |||
body.page-Doppelganger .thumbinner, | |||
body.page-Doppelganger_EN .thumbinner { | |||
background: var(--dg-bg) !important; | |||
border: 1px solid var(--dg-border) !important; | |||
} | |||
body.page-Doppelganger .thumbimage, | |||
body.page-Doppelganger_EN .thumbimage { | |||
background: transparent !important; | |||
border: 0 !important; | |||
box-shadow: none !important; | |||
} | |||
body.page-Doppelganger .thumbcaption, | |||
body.page-Doppelganger_EN .thumbcaption { | |||
display: none !important; | |||
} | |||
body.page-Doppelganger .magnify, | |||
body.page-Doppelganger_EN .magnify { | |||
display: none !important; | |||
} | |||
/* New MediaWiki figure/figcaption output */ | |||
body.page-Doppelganger figure[typeof="mw:File/Thumb"], | |||
body.page-Doppelganger_EN figure[typeof="mw:File/Thumb"] { | |||
background: var(--dg-bg) !important; | |||
border: 1px solid var(--dg-border) !important; | |||
padding: 8px !important; | |||
} | |||
body.page-Doppelganger figure[typeof="mw:File/Thumb"] figcaption, | |||
body.page-Doppelganger_EN figure[typeof="mw:File/Thumb"] figcaption { | |||
display: none !important; | |||
} | |||
/* Fix white preformatted block in Minimap section */ | |||
body.page-Doppelganger .mw-parser-output pre, | |||
body.page-Doppelganger_EN .mw-parser-output pre { | |||
background: var(--dg-bg) !important; | |||
border: 1px solid var(--dg-border) !important; | |||
color: var(--dg-text) !important; | |||
font-family: Consolas, "Courier New", monospace !important; | |||
white-space: pre-wrap !important; | |||
} | } | ||
Revision as of 09:31, 19 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;
}
/* Update 003: force all section separators to RealMU accent */
:root {
--realmu-accent: #a7372d;
}
/* Main page title line */
#firstHeading {
border-bottom: 1px solid var(--realmu-accent) !important;
}
/* Timeless section wrappers carry the visible line */
#mw-content-text .mw-heading,
#mw-content .mw-heading,
.mw-body-content .mw-heading {
border-bottom: 1px solid var(--realmu-accent) !important;
box-shadow: none !important;
}
/* In some places the line is on the h2/h3 itself */
#mw-content-text .mw-heading h2,
#mw-content-text .mw-heading h3,
.mw-body h2,
.mw-body h3,
.mw-parser-output h2,
.mw-parser-output h3 {
border-bottom-color: var(--realmu-accent) !important;
}
/* Any decorative pseudo-line used by skin */
#mw-content-text .mw-heading::before,
#mw-content-text .mw-heading::after,
.mw-body-content .mw-heading::before,
.mw-body-content .mw-heading::after {
border-color: var(--realmu-accent) !important;
background-color: var(--realmu-accent) !important;
}
/* Horizontal rules and TOC border tone */
.mw-parser-output hr,
#toc,
.toc {
border-color: var(--realmu-accent) !important;
}
/* Update 016: stronger dark thumbnail styling for Blood_Castle */
body.page-Blood_Castle div.thumb,
body.page-Blood_Castle .mw-parser-output div.thumb,
body.page-Blood_Castle .mw-parser-output .tleft,
body.page-Blood_Castle .mw-parser-output .tright {
background: transparent !important;
border: 0 !important;
}
body.page-Blood_Castle div.thumbinner,
body.page-Blood_Castle .mw-parser-output div.thumbinner {
background-color: #0f1116 !important;
border: 1px solid #262932 !important;
box-shadow: none !important;
}
body.page-Blood_Castle .thumbimage,
body.page-Blood_Castle .mw-parser-output .thumbimage,
body.page-Blood_Castle .mw-parser-output .thumbinner img {
background-color: transparent !important;
border: 0 !important;
}
body.page-Blood_Castle .thumbcaption,
body.page-Blood_Castle .mw-parser-output .thumbcaption {
background: #0f1116 !important;
color: #acadba !important;
border-top: 1px solid #262932 !important;
}
/* Update 017: target current MediaWiki figure/figcaption output for Blood_Castle */
body.page-Blood_Castle figure[typeof="mw:File/Thumb"] {
background: #0f1116 !important;
border: 1px solid #262932 !important;
padding: 8px !important;
margin: 0.5em 1.4em 1.3em 0 !important;
}
body.page-Blood_Castle figure[typeof="mw:File/Thumb"] > a.mw-file-description {
display: block !important;
background: #0f1116 !important;
}
body.page-Blood_Castle figure[typeof="mw:File/Thumb"] img.mw-file-element {
background: transparent !important;
border: 0 !important;
box-shadow: none !important;
}
body.page-Blood_Castle figure[typeof="mw:File/Thumb"] figcaption {
margin-top: 6px !important;
padding-top: 6px !important;
border-top: 1px solid #262932 !important;
background: #0f1116 !important;
color: #acadba !important;
}
/* Safety: if old pre blocks still appear from previous markup, neutralize their light background */
body.page-Blood_Castle .mw-parser-output pre {
background: #0f1116 !important;
border: 1px solid #262932 !important;
color: #cad2df !important;
}
/* Update 018: hide auto image captions on Blood_Castle page only */
body.page-Blood_Castle figure[typeof="mw:File/Thumb"] figcaption {
display: none !important;
}
/* Remove extra divider/space that was used for captions */
body.page-Blood_Castle figure[typeof="mw:File/Thumb"] {
padding-bottom: 8px !important;
}
/* Update 021: dark thumbnail boxes + hide thumbnail captions for Devil_Square */
body.page-Devil_Square figure[typeof="mw:File/Thumb"] {
background: #0f1116 !important;
border: 1px solid #262932 !important;
padding: 8px !important;
margin: 0.5em 1.4em 1.3em 0 !important;
}
body.page-Devil_Square figure[typeof="mw:File/Thumb"] > a.mw-file-description {
display: block !important;
background: #0f1116 !important;
}
body.page-Devil_Square figure[typeof="mw:File/Thumb"] img.mw-file-element {
background: transparent !important;
border: 0 !important;
box-shadow: none !important;
}
body.page-Devil_Square figure[typeof="mw:File/Thumb"] figcaption {
display: none !important;
}
/* Update 024: dark thumbnail boxes + hide image captions for Chaos_Castle */
/* New MediaWiki output */
body.page-Chaos_Castle figure[typeof="mw:File/Thumb"] {
background: #0f1116 !important;
border: 1px solid #262932 !important;
padding: 8px !important;
margin: 0.5em 1.4em 1.3em 0 !important;
}
body.page-Chaos_Castle figure[typeof="mw:File/Thumb"] > a.mw-file-description {
display: block !important;
background: #0f1116 !important;
}
body.page-Chaos_Castle figure[typeof="mw:File/Thumb"] img.mw-file-element {
background: transparent !important;
border: 0 !important;
box-shadow: none !important;
}
body.page-Chaos_Castle figure[typeof="mw:File/Thumb"] figcaption {
display: none !important;
}
/* Legacy thumbnail output (Timeless/older parser paths) */
body.page-Chaos_Castle .thumbinner {
background: #0f1116 !important;
border: 1px solid #262932 !important;
}
body.page-Chaos_Castle .thumbimage {
background: transparent !important;
border: 0 !important;
box-shadow: none !important;
}
body.page-Chaos_Castle .thumbcaption {
display: none !important;
}
body.page-Chaos_Castle .magnify {
display: none !important;
}
/* Update 025: dark thumbnail boxes + hide image captions for Illusion_Temple */
/* New MediaWiki output */
body.page-Illusion_Temple figure[typeof="mw:File/Thumb"] {
background: #0f1116 !important;
border: 1px solid #262932 !important;
padding: 8px !important;
margin: 0.5em 1.4em 1.3em 0 !important;
}
body.page-Illusion_Temple figure[typeof="mw:File/Thumb"] > a.mw-file-description {
display: block !important;
background: #0f1116 !important;
}
body.page-Illusion_Temple figure[typeof="mw:File/Thumb"] img.mw-file-element {
background: transparent !important;
border: 0 !important;
box-shadow: none !important;
}
body.page-Illusion_Temple figure[typeof="mw:File/Thumb"] figcaption {
display: none !important;
}
/* Legacy thumbnail output (Timeless/older parser paths) */
body.page-Illusion_Temple .thumbinner {
background: #0f1116 !important;
border: 1px solid #262932 !important;
}
body.page-Illusion_Temple .thumbimage {
background: transparent !important;
border: 0 !important;
box-shadow: none !important;
}
body.page-Illusion_Temple .thumbcaption {
display: none !important;
}
body.page-Illusion_Temple .magnify {
display: none !important;
}
/* Update 026: dark thumbnail boxes + hide image captions for Doppelganger */
/* New MediaWiki output */
body.page-Doppelganger figure[typeof="mw:File/Thumb"] {
background: #0f1116 !important;
border: 1px solid #262932 !important;
padding: 8px !important;
margin: 0.5em 1.4em 1.3em 0 !important;
}
body.page-Doppelganger figure[typeof="mw:File/Thumb"] > a.mw-file-description {
display: block !important;
background: #0f1116 !important;
}
body.page-Doppelganger figure[typeof="mw:File/Thumb"] img.mw-file-element {
background: transparent !important;
border: 0 !important;
box-shadow: none !important;
}
body.page-Doppelganger figure[typeof="mw:File/Thumb"] figcaption {
display: none !important;
}
/* Legacy thumbnail output (Timeless/older parser paths) */
body.page-Doppelganger .thumbinner {
background: #0f1116 !important;
border: 1px solid #262932 !important;
}
body.page-Doppelganger .thumbimage {
background: transparent !important;
border: 0 !important;
box-shadow: none !important;
}
body.page-Doppelganger .thumbcaption {
display: none !important;
}
body.page-Doppelganger .magnify {
display: none !important;
}
/* Update 027: Doppelganger visual hotfix (thumb background + minimap pre block) */
/* Apply to both possible body classes */
body.page-Doppelganger,
body.page-Doppelganger_EN {
--dg-bg: #0f1116;
--dg-border: #262932;
--dg-text: #cad2df;
}
/* Strong thumbnail overrides for Timeless/legacy markup */
body.page-Doppelganger .thumb,
body.page-Doppelganger_EN .thumb {
background: transparent !important;
border: 0 !important;
}
body.page-Doppelganger .thumbinner,
body.page-Doppelganger_EN .thumbinner {
background: var(--dg-bg) !important;
border: 1px solid var(--dg-border) !important;
}
body.page-Doppelganger .thumbimage,
body.page-Doppelganger_EN .thumbimage {
background: transparent !important;
border: 0 !important;
box-shadow: none !important;
}
body.page-Doppelganger .thumbcaption,
body.page-Doppelganger_EN .thumbcaption {
display: none !important;
}
body.page-Doppelganger .magnify,
body.page-Doppelganger_EN .magnify {
display: none !important;
}
/* New MediaWiki figure/figcaption output */
body.page-Doppelganger figure[typeof="mw:File/Thumb"],
body.page-Doppelganger_EN figure[typeof="mw:File/Thumb"] {
background: var(--dg-bg) !important;
border: 1px solid var(--dg-border) !important;
padding: 8px !important;
}
body.page-Doppelganger figure[typeof="mw:File/Thumb"] figcaption,
body.page-Doppelganger_EN figure[typeof="mw:File/Thumb"] figcaption {
display: none !important;
}
/* Fix white preformatted block in Minimap section */
body.page-Doppelganger .mw-parser-output pre,
body.page-Doppelganger_EN .mw-parser-output pre {
background: var(--dg-bg) !important;
border: 1px solid var(--dg-border) !important;
color: var(--dg-text) !important;
font-family: Consolas, "Courier New", monospace !important;
white-space: pre-wrap !important;
}