MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins */ | ||
/* ============================= */ | /* ============================= */ | ||
| Line 9: | Line 10: | ||
} | } | ||
/* Hide Page / Discussion tabs | /* Hide Page / Discussion tabs */ | ||
#p-namespaces { | #p-namespaces { | ||
display: none !important; | display: none !important; | ||
| Line 43: | Line 44: | ||
} | } | ||
/* | /* Cinematic overlay */ | ||
body::before { | body::before { | ||
content: ""; | content: ""; | ||
position: fixed; | position: fixed; | ||
inset: 0; | inset: 0; | ||
background: rgba(0, 0, 0, 0. | background: rgba(0, 0, 0, 0.25); | ||
z-index: -1; | z-index: -1; | ||
} | } | ||
/* | |||
/* ============================= */ | |||
/* REMOVE DEFAULT BACKGROUNDS */ | |||
/* ============================= */ | |||
.citizen-page-container, | |||
.citizen-page-container-inner, | |||
.citizen-body, | |||
.citizen-content, | |||
.mw-body, | |||
#mw-page-base, | #mw-page-base, | ||
#mw-head-base, | #mw-head-base, | ||
| Line 61: | Line 71: | ||
/* ============================= */ | /* ============================= */ | ||
/* | /* MAIN CONTENT PANEL */ | ||
/* ============================= */ | /* ============================= */ | ||
| Line 70: | Line 80: | ||
#bodyContent { | #bodyContent { | ||
background: rgba(255, 255, 255, 0.84); | background: rgba(255,255,255,0.84); | ||
backdrop-filter: blur(8px); | backdrop-filter: blur(8px); | ||
-webkit-backdrop-filter: blur(8px); | -webkit-backdrop-filter: blur(8px); | ||
padding: 32px; | padding: 32px; | ||
border-radius: | border-radius: 10px; | ||
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35); | box-shadow: 0 20px 60px rgba(0,0,0,0.35); | ||
} | |||
/* ============================= */ | |||
/* RIGHT PANEL READABILITY FIX */ | |||
/* ============================= */ | |||
.citizen-page-info, | |||
.citizen-page-info *, | |||
.citizen-toc, | |||
.citizen-toc * { | |||
color: #ffffff !important; | |||
} | |||
.citizen-page-info, | |||
.citizen-toc { | |||
text-shadow: 0 1px 3px rgba(0,0,0,0.8); | |||
} | } | ||
| Line 94: | Line 121: | ||
/* ============================= */ | /* ============================= */ | ||
.citizen-sidebar a { | |||
text-decoration: none !important; | text-decoration: none !important; | ||
} | } | ||
.citizen-sidebar a:hover { | |||
text-decoration: none !important; | text-decoration: none !important; | ||
} | } | ||
| Line 108: | Line 131: | ||
/* ============================= */ | /* ============================= */ | ||
/* SWORD BULLETS | /* SWORD BULLETS */ | ||
/* ============================= */ | /* ============================= */ | ||
#bodyContent ul { | #bodyContent ul { | ||
list-style: none; | list-style: none; | ||
| Line 117: | Line 139: | ||
} | } | ||
#bodyContent ul li { | #bodyContent ul li { | ||
position: relative; | position: relative; | ||
| Line 129: | Line 150: | ||
top: -4px; | top: -4px; | ||
font-size: 20px; | font-size: 20px; | ||
color: #0b1f3a; | color: #0b1f3a; | ||
} | } | ||
| Line 148: | Line 169: | ||
width: clamp(140px, 28vw, 200px); | width: clamp(140px, 28vw, 200px); | ||
height: auto; | height: auto; | ||
} | } | ||
| Line 216: | Line 236: | ||
/* ============================= */ | /* ============================= */ | ||
#leaderboardTable | #leaderboardTable th, | ||
#leaderboardTable | #leaderboardTable td { | ||
vertical-align: middle !important; | vertical-align: middle !important; | ||
} | } | ||
/* ============================= */ | /* ============================= */ | ||
/* TOP | /* TOP NAV TEXT */ | ||
/* ============================= */ | /* ============================= */ | ||
.citizen-header a { | |||
color: #ffffff !important; | color: #ffffff !important; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
} | } | ||
.citizen-header a:hover { | |||
color: #e6f0ff !important; | |||
color: #e6f0ff !important; | |||
} | } | ||
/* ============================= */ | /* ============================= */ | ||
/* INFOBOX STYLING | /* INFOBOX STYLING */ | ||
/* ============================= */ | /* ============================= */ | ||
| Line 275: | Line 270: | ||
background: rgba(255,255,255,0.82); | background: rgba(255,255,255,0.82); | ||
backdrop-filter: blur(6px); | backdrop-filter: blur(6px); | ||
box-shadow: 0 10px 35px rgba(0,0,0,0.25); | box-shadow: 0 10px 35px rgba(0,0,0,0.25); | ||
} | } | ||
| Line 291: | Line 285: | ||
color: #0b1f3a; | color: #0b1f3a; | ||
background-color: #eaecf0; | background-color: #eaecf0; | ||
} | } | ||
Revision as of 17:56, 8 March 2026
/* CSS placed here will be applied to all skins */
/* ============================= */
/* HIDE TOOLBOX */
/* ============================= */
#p-tb {
display: none;
}
/* Hide Page / Discussion tabs */
#p-namespaces {
display: none !important;
}
/* Hide Powered by MediaWiki footer icon */
#footer-poweredbyico {
display: none !important;
}
/* Hide Home page heading */
body.page-Home #firstHeading {
display: none;
}
/* ============================= */
/* TREEVERSE CINEMATIC BACKGROUND */
/* ============================= */
html, body {
height: 100%;
margin: 0;
}
/* Full-page forest background */
body {
background-image: url("https://treeverse.wiki/images/8/84/Treeverse_background.jpg");
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
background-attachment: fixed;
}
/* Cinematic overlay */
body::before {
content: "";
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.25);
z-index: -1;
}
/* ============================= */
/* REMOVE DEFAULT BACKGROUNDS */
/* ============================= */
.citizen-page-container,
.citizen-page-container-inner,
.citizen-body,
.citizen-content,
.mw-body,
#mw-page-base,
#mw-head-base,
#content {
background: transparent !important;
}
/* ============================= */
/* MAIN CONTENT PANEL */
/* ============================= */
#content {
max-width: 1200px;
margin: 50px auto;
}
#bodyContent {
background: rgba(255,255,255,0.84);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
padding: 32px;
border-radius: 10px;
box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
/* ============================= */
/* RIGHT PANEL READABILITY FIX */
/* ============================= */
.citizen-page-info,
.citizen-page-info *,
.citizen-toc,
.citizen-toc * {
color: #ffffff !important;
}
.citizen-page-info,
.citizen-toc {
text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
/* ============================= */
/* GLOBAL LINK UNDERLINES */
/* ============================= */
a,
a:visited,
a:active {
text-decoration: underline !important;
}
/* ============================= */
/* SIDEBAR LINK STYLING */
/* ============================= */
.citizen-sidebar a {
text-decoration: none !important;
}
.citizen-sidebar a:hover {
text-decoration: none !important;
}
/* ============================= */
/* SWORD BULLETS */
/* ============================= */
#bodyContent ul {
list-style: none;
padding-left: 0;
}
#bodyContent ul li {
position: relative;
padding-left: 26px;
}
#bodyContent ul li::before {
content: "⚔";
position: absolute;
left: 0;
top: -4px;
font-size: 20px;
color: #0b1f3a;
}
/* ============================= */
/* DOWNLOAD BUTTON ROW */
/* ============================= */
.download-row {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 12px;
margin: 8px 0 16px;
}
.download-row img {
width: clamp(140px, 28vw, 200px);
height: auto;
}
/* ============================= */
/* SPOILER BLUR */
/* ============================= */
.spoiler {
filter: blur(6px);
cursor: pointer;
transition: filter 0.3s ease;
}
.spoiler.revealed {
filter: none;
}
/* ============================= */
/* RADIO TABS */
/* ============================= */
.tvrt { margin: 12px 0; }
.tvrt-nav {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 6px;
margin-bottom: 10px;
}
.tvrt-item { display: contents; }
.tvrt-tab {
display: block;
padding: 6px 8px;
text-decoration: none;
border: 1px solid #eee;
background: #fff;
cursor: pointer;
}
.tvrt-tab:hover { background: #f5f5f5; }
.tvrt-panel {
display: none;
grid-column: 1 / -1;
padding: 12px;
border: 1px solid #e5e5e5;
background: #fff;
}
.tvrt-item > input:checked + .tvrt-tab + .tvrt-panel {
display: block;
}
.tvrt-item > input:checked + .tvrt-tab {
font-weight: 700;
border-color: #ccc;
background: #fafafa;
}
/* ============================= */
/* LEADERBOARD TABLE FIX */
/* ============================= */
#leaderboardTable th,
#leaderboardTable td {
vertical-align: middle !important;
}
/* ============================= */
/* TOP NAV TEXT */
/* ============================= */
.citizen-header a {
color: #ffffff !important;
text-decoration: none !important;
}
.citizen-header a:hover {
color: #e6f0ff !important;
}
/* ============================= */
/* INFOBOX STYLING */
/* ============================= */
.infobox {
float: right;
clear: right;
width: 280px;
margin: 0 0 20px 25px;
border-collapse: collapse;
border: 1px solid #aaa;
font-size: 90%;
background: rgba(255,255,255,0.82);
backdrop-filter: blur(6px);
box-shadow: 0 10px 35px rgba(0,0,0,0.25);
}
.infobox th,
.infobox td {
padding: 8px;
text-align: left;
border-top: 1px solid #ddd;
}
.infobox th {
width: 40%;
font-weight: 600;
color: #0b1f3a;
background-color: #eaecf0;
}
.infobox-title {
font-size: 130%;
font-weight: bold;
text-align: center !important;
padding: 12px 8px !important;
background: rgba(0,0,0,0.06);
}
.infobox-image {
text-align: center !important;
padding: 12px 8px !important;
}