MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 25: | Line 25: | ||
} | } | ||
.navicon--row1{ | .navicon--row1{ height: 150px; } | ||
.navicon--row2{ height: 200px; } | |||
} | |||
.navicon--row2{ | |||
} | |||
.navlabel{ | .navlabel{ | ||
| Line 41: | Line 36: | ||
} | } | ||
.navlabel--tight{ | .navlabel--tight{ margin-top: 2px; } | ||
} | |||
.navicon--empty, | .navicon--empty, | ||
| Line 50: | Line 43: | ||
} | } | ||
body.page-Main_Page h1.firstHeading { | body.page-Main_Page h1.firstHeading { | ||
display: none; | display: none; | ||
| Line 92: | Line 84: | ||
} | } | ||
/* ================= | /* ================= DROPDOWN SYSTEM (FIXED) ================= */ | ||
.custom-dropdown { | .custom-dropdown { | ||
position: relative; | position: relative; | ||
display: inline-block; | |||
} | } | ||
.custom-dropdown-btn { | .custom-dropdown-btn { | ||
padding: 8px 14px; | padding: 8px 14px; | ||
| Line 110: | Line 101: | ||
} | } | ||
/* | /* KEY FIX: removed from layout completely */ | ||
.custom-dropdown-list { | .custom-dropdown-list { | ||
position: absolute; | position: absolute; | ||
top: 100%; | |||
left: 0; | |||
min-width: 180px; | |||
background: #1a1a1a; | background: #1a1a1a; | ||
border: 1px solid #444; | border: 1px solid #444; | ||
border-radius: 6px; | |||
margin-top: 5px; | margin-top: 5px; | ||
visibility: hidden; | |||
z-index: | opacity: 0; | ||
pointer-events: none; | |||
z-index: 9999; | |||
} | } | ||
/* Show only when open */ | /* Show only when open */ | ||
.custom-dropdown.open .custom-dropdown-list { | .custom-dropdown.open .custom-dropdown-list { | ||
visibility: visible; | |||
opacity: 1; | |||
pointer-events: auto; | |||
} | } | ||
.custom-dropdown-item { | .custom-dropdown-item { | ||
padding: 8px 10px; | padding: 8px 10px; | ||
| Line 139: | Line 138: | ||
} | } | ||
/* ================= REMOVE OLD | /* ================= REMOVE OLD SYSTEM ================= */ | ||
.mw-dropdown-ui, | .mw-dropdown-ui, | ||
.mw-dropdown, | .mw-dropdown, | ||
| Line 149: | Line 147: | ||
} | } | ||
/* Hide empty containers before JS loads */ | |||
/* Hide empty containers | |||
[data-left]:empty, | [data-left]:empty, | ||
[data-right]:empty { | [data-right]:empty { | ||
display: none !important; | display: none !important; | ||
} | } | ||
Revision as of 18:45, 21 April 2026
/* ================= NAV ================= */
.navtable{
border: none;
text-align: center;
margin: 0 auto;
border-collapse: collapse;
}
.navcell{
padding: 0 18px 10px 18px;
vertical-align: top;
}
.navimg img{
display:block;
margin:0 auto;
}
.navicon{
display:flex;
align-items:flex-end;
justify-content:center;
width: 200px;
}
.navicon--row1{ height: 150px; }
.navicon--row2{ height: 200px; }
.navlabel{
text-align: center;
width: 100%;
margin-top: 4px;
line-height: 1.05;
font-weight: 800;
}
.navlabel--tight{ margin-top: 2px; }
.navicon--empty,
.navlabel--empty{
visibility:hidden;
}
body.page-Main_Page h1.firstHeading {
display: none;
}
/* ================= TAB SYSTEM ================= */
.mw-tab-buttons {
display: flex;
gap: 8px;
margin-bottom: 10px;
flex-wrap: wrap;
}
.mw-tab-btn {
padding: 8px 14px;
background: #111;
color: #ccc;
border: 1px solid #444;
border-radius: 6px;
cursor: pointer;
font-weight: bold;
}
.mw-tab-btn:hover {
border-color: #00bfff;
color: #fff;
}
.mw-tab-btn.active {
background: #00bfff;
color: #000;
}
.mw-tab-content {
display: none;
}
.mw-tab-content.active {
display: block;
}
/* ================= DROPDOWN SYSTEM (FIXED) ================= */
.custom-dropdown {
position: relative;
display: inline-block;
}
.custom-dropdown-btn {
padding: 8px 14px;
background: #1e1e1e;
color: #fff;
border: 1px solid #444;
border-radius: 6px;
cursor: pointer;
font-weight: bold;
}
/* KEY FIX: removed from layout completely */
.custom-dropdown-list {
position: absolute;
top: 100%;
left: 0;
min-width: 180px;
background: #1a1a1a;
border: 1px solid #444;
border-radius: 6px;
margin-top: 5px;
visibility: hidden;
opacity: 0;
pointer-events: none;
z-index: 9999;
}
/* Show only when open */
.custom-dropdown.open .custom-dropdown-list {
visibility: visible;
opacity: 1;
pointer-events: auto;
}
.custom-dropdown-item {
padding: 8px 10px;
cursor: pointer;
color: #ccc;
}
.custom-dropdown-item:hover {
background: #00bfff;
color: #000;
}
/* ================= REMOVE OLD SYSTEM ================= */
.mw-dropdown-ui,
.mw-dropdown,
.mw-dropdown-list,
.mw-dropdown-content {
display: none !important;
}
/* Hide empty containers before JS loads */
[data-left]:empty,
[data-right]:empty {
display: none !important;
}