MediaWiki:Vector.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 93: | Line 93: | ||
/* ----- | /* === HL2 dark thumbnail skin — keep default MediaWiki sizing === | ||
- Figure width still follows the image; caption wraps inside | |||
- Outer frame is an inset box-shadow so it always includes the caption | |||
- Inner border stays on the clickable image wrapper | |||
- Magnify/file icon in the CAPTION is hidden (not the image link) | |||
*/ | |||
/* Outer frame (caption | /* ---------- Parsoid / VE figures ---------- */ | ||
/* Outer frame (includes caption) */ | |||
.mw-parser-output figure[typeof*="mw:File"], | .mw-parser-output figure[typeof*="mw:File"], | ||
.mw-parser-output figure[typeof*="mw:Image"] { | .mw-parser-output figure[typeof*="mw:Image"] { | ||
background-color: #2f2f2f !important; | background-color: #2f2f2f !important; /* dark mat */ | ||
box-shadow: inset 0 0 0 1px #444 !important; /* outer frame (wraps caption) */ | |||
padding: 4px !important; /* mat spacing, like stock MW */ | |||
} | } | ||
/* | /* Inner border around the image wrapper (keep this visible) */ | ||
.mw-parser-output figure[typeof*="mw:"] > a.mw-file-description, | .mw-parser-output figure[typeof*="mw:"] > a.mw-file-description, | ||
.mw-parser-output figure[typeof*="mw:"] > span:first-child > a.mw-file-description { | .mw-parser-output figure[typeof*="mw:"] > span:first-child > a.mw-file-description { | ||
background: transparent !important; | background: transparent !important; | ||
border | border: 1px solid #6a6a6a !important; /* inner line around image */ | ||
box-shadow: none !important; | |||
/* Don't touch width/display so MW sizing stays intact */ | |||
} | } | ||
/* Image | /* Image itself */ | ||
.mw-parser-output figure[typeof*="mw:"] img { | .mw-parser-output figure[typeof*="mw:"] img { | ||
background: transparent !important; | background: transparent !important; | ||
| Line 119: | Line 126: | ||
} | } | ||
/* Caption */ | /* Caption styling (inside the frame) */ | ||
.mw-parser-output figure[typeof*="mw:"] figcaption { | .mw-parser-output figure[typeof*="mw:"] figcaption { | ||
color: #c0c0c0 !important; | color: #c0c0c0 !important; | ||
background: transparent !important; | background: transparent !important; | ||
border: 0 !important; | border: 0 !important; | ||
/* keep default layout; no width/display overrides */ | |||
} | } | ||
/* Hide only the | /* Hide only the tiny icon inside the CAPTION (and legacy magnify) */ | ||
.mw-parser-output figure[typeof*="mw:"] figcaption .magnify, | |||
.mw-parser-output figure[typeof*="mw:"] figcaption a.mw-file-description, | .mw-parser-output figure[typeof*="mw:"] figcaption a.mw-file-description, | ||
.mw-parser-output .thumb .thumbcaption | .mw-parser-output .thumb .thumbcaption .magnify { | ||
display: none !important; | display: none !important; | ||
content: none !important; | content: none !important; | ||
| Line 136: | Line 143: | ||
} | } | ||
/* -------- Legacy (.thumb) markup -------- */ | /* ---------- Legacy (.thumb) markup ---------- */ | ||
.mw-parser-output .thumb .thumbinner { | .mw-parser-output .thumb .thumbinner { | ||
background-color: #2f2f2f !important; | background-color: #2f2f2f !important; /* dark mat */ | ||
box-shadow: inset 0 0 0 1px #444 !important; /* outer frame that wraps caption */ | |||
padding: 4px !important; | |||
} | } | ||
.mw-parser-output .thumb .thumbinner a.image { | .mw-parser-output .thumb .thumbinner a.image { | ||
background: transparent !important; | background: transparent !important; | ||
border | border: 1px solid #6a6a6a !important; /* inner line around image */ | ||
} | } | ||
.mw-parser-output .thumb img.thumbimage { | .mw-parser-output .thumb img.thumbimage { | ||
background: transparent !important; | background: transparent !important; | ||
| Line 152: | Line 161: | ||
box-shadow: none !important; | box-shadow: none !important; | ||
} | } | ||
.mw-parser-output .thumb .thumbcaption { | .mw-parser-output .thumb .thumbcaption { | ||
color: #c0c0c0 !important; | color: #c0c0c0 !important; /* caption tone */ | ||
background: transparent !important; | background: transparent !important; | ||
border: 0 !important; | border: 0 !important; | ||
} | } | ||
Revision as of 13:53, 18 September 2025
div.vectorTabs ul li#ca-history {
display: none;
}
.vector-menu-tabs-legacy li {
background-color: transparent !important;
color: #72777d;
cursor: pointer;
}
.new.mw-list-item {
background-color: transparent !important;
}
.new.mw-list-item a {
background-color: transparent !important;
color: #72777d;
cursor: pointer;
font-size: 0.8em;
}
.ca-talk {
background-color: transparent !important;
color: #72777d;
cursor: pointer;
font-size: 0.8em;
}
.vector-menu-portal .vector-menu-content li a,
.vector-menu-portal .vector-menu-content li a:visited {
color: #72777d;
}
/* Additional rules to ensure transparency */
.vector-menu-tabs,
.vector-menu-tabs ul,
.vector-menu-tabs li,
.vector-menu-tabs a,
.vector-menu-tabs-legacy,
.vector-menu-tabs-legacy ul,
.vector-menu-tabs-legacy li,
.vector-menu-tabs-legacy a,
#p-namespaces,
#p-namespaces li,
#p-namespaces a,
#ca-nstab-main,
#ca-talk,
.vector-tab-noicon,
.mw-list-item-js {
background-color: transparent !important;
background: transparent !important;
background-image: none !important;
}
.vector-menu-portal,
#mw-panel,
.vector-menu-portal .vector-menu-content {
background-color: #202020 !important; /* Dark gray color similar to the first image */
}
.vector-menu-portal .vector-menu-heading {
color: #cccccc; /* Light gray for headers */
}
/* For the links */
.vector-menu-portal .vector-menu-content a {
color: #3366bb; /* Blue color for links */
}
/* Remove any borders that might be present */
.vector-menu-portal {
border: none !important;
}
body {
background-image: url('https://i.imgur.com/nBW7bEJ.png') !important;
background-color: rgba(0, 0, 0, 0.6) !important; /* Semi-transparent black */
background-blend-mode: overlay !important;
background-repeat: no-repeat !important;
background-position: center !important;
background-attachment: fixed !important;
background-size: cover !important;
}
#ca-view a, #ca-edit a, #ca-history a {
color: inherit !important;
background-color: transparent !important;
}
/* === HL2 dark thumbnail skin — keep default MediaWiki sizing ===
- Figure width still follows the image; caption wraps inside
- Outer frame is an inset box-shadow so it always includes the caption
- Inner border stays on the clickable image wrapper
- Magnify/file icon in the CAPTION is hidden (not the image link)
*/
/* ---------- Parsoid / VE figures ---------- */
/* Outer frame (includes caption) */
.mw-parser-output figure[typeof*="mw:File"],
.mw-parser-output figure[typeof*="mw:Image"] {
background-color: #2f2f2f !important; /* dark mat */
box-shadow: inset 0 0 0 1px #444 !important; /* outer frame (wraps caption) */
padding: 4px !important; /* mat spacing, like stock MW */
}
/* Inner border around the image wrapper (keep this visible) */
.mw-parser-output figure[typeof*="mw:"] > a.mw-file-description,
.mw-parser-output figure[typeof*="mw:"] > span:first-child > a.mw-file-description {
background: transparent !important;
border: 1px solid #6a6a6a !important; /* inner line around image */
box-shadow: none !important;
/* Don't touch width/display so MW sizing stays intact */
}
/* Image itself */
.mw-parser-output figure[typeof*="mw:"] img {
background: transparent !important;
border: 0 !important;
box-shadow: none !important;
}
/* Caption styling (inside the frame) */
.mw-parser-output figure[typeof*="mw:"] figcaption {
color: #c0c0c0 !important;
background: transparent !important;
border: 0 !important;
/* keep default layout; no width/display overrides */
}
/* Hide only the tiny icon inside the CAPTION (and legacy magnify) */
.mw-parser-output figure[typeof*="mw:"] figcaption .magnify,
.mw-parser-output figure[typeof*="mw:"] figcaption a.mw-file-description,
.mw-parser-output .thumb .thumbcaption .magnify {
display: none !important;
content: none !important;
background: none !important;
}
/* ---------- Legacy (.thumb) markup ---------- */
.mw-parser-output .thumb .thumbinner {
background-color: #2f2f2f !important; /* dark mat */
box-shadow: inset 0 0 0 1px #444 !important; /* outer frame that wraps caption */
padding: 4px !important;
}
.mw-parser-output .thumb .thumbinner a.image {
background: transparent !important;
border: 1px solid #6a6a6a !important; /* inner line around image */
}
.mw-parser-output .thumb img.thumbimage {
background: transparent !important;
border: 0 !important;
box-shadow: none !important;
}
.mw-parser-output .thumb .thumbcaption {
color: #c0c0c0 !important; /* caption tone */
background: transparent !important;
border: 0 !important;
}
/* Sidebar (left) navigation link colors — Vector (new) + Vector legacy */
/* normal state */
#mw-panel .vector-menu-portal .vector-menu-content .vector-menu-content-list > li > a,
.skin-vector-legacy #mw-panel .portal .body li a {
color: #8BB9E0 !important; /* light blue */
background: transparent !important;
text-decoration: none !important;
}
/* visited */
#mw-panel .vector-menu-portal .vector-menu-content .vector-menu-content-list > li > a:visited,
.skin-vector-legacy #mw-panel .portal .body li a:visited {
color: #74A8D4 !important; /* keep blue, not purple */
}
/* hover & focus */
#mw-panel .vector-menu-portal .vector-menu-content .vector-menu-content-list > li > a:hover,
#mw-panel .vector-menu-portal .vector-menu-content .vector-menu-content-list > li > a:focus,
.skin-vector-legacy #mw-panel .portal .body li a:hover,
.skin-vector-legacy #mw-panel .portal .body li a:focus {
color: #BFD9F2 !important; /* brighter on hover */
text-decoration: underline !important;
}
/* active (mouse down) */
#mw-panel .vector-menu-portal .vector-menu-content .vector-menu-content-list > li > a:active,
.skin-vector-legacy #mw-panel .portal .body li a:active {
color: #E6F2FF !important;
}
.mw-body, .mw-body-content, .mw-parser-output {
font-size: 16px !important; /* was ~14–15px */
line-height: 1.6 !important;
}
/* Sidebar / left nav */
#mw-panel,
#mw-panel .vector-menu-portal .vector-menu-content {
font-size: 15px !important;
line-height: 1.5 !important;
}
/* TOC, captions, small UI text */
.toc, .thumbcaption, .catlinks,
.mw-ui-message, .mw-message-box {
font-size: 15px !important;
line-height: 1.5 !important;
}
/* Code blocks / preformatted */
pre, code, kbd, samp, .mw-code {
font-size: 15px !important;
line-height: 1.5 !important;
}
/* Tabs (Read / View source / History) & top menus */
#mw-head .vectorTabs li a,
.vector-menu-tabs a,
.vector-menu-tabs-legacy a {
font-size: 15px !important;
}
/* Make sure headings scale nicely (relative to new base) */
.mw-body h1 { font-size: 2.0em !important; }
.mw-body h2 { font-size: 1.6em !important; }
.mw-body h3 { font-size: 1.35em !important; }
.mw-body h4 { font-size: 1.15em !important; }
/* Optional: slightly smaller on narrow screens */
@media (max-width: 768px) {
.mw-body, .mw-body-content, .mw-parser-output { font-size: 16px !important; }
}