MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 232: | Line 232: | ||
object-fit: contain; | object-fit: contain; | ||
display: block; | display: block; | ||
} | |||
/* TILE CONTAINER */ | |||
.gear-tile { | |||
display: inline-block; | |||
width: 200px; | |||
text-decoration: none; | |||
border-radius: 12px; | |||
padding: 10px; | |||
transition: all 0.2s ease; | |||
} | |||
/* IMAGE BOX */ | |||
.gear-img { | |||
width: 200px; | |||
height: 200px; | |||
overflow: hidden; | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
} | |||
/* FORCE IMAGE SIZE */ | |||
.uniform-img img { | |||
width: 200px !important; | |||
height: 200px !important; | |||
object-fit: contain; | |||
} | |||
/* LABEL */ | |||
.gear-label { | |||
margin-top: 8px; | |||
font-weight: bold; | |||
color: #ddd; | |||
} | |||
/* 🔥 HOVER EFFECT (MOD UI STYLE) */ | |||
.gear-tile:hover { | |||
transform: scale(1.05); | |||
box-shadow: 0 0 15px rgba(0, 255, 200, 0.6); | |||
background: rgba(0,255,200,0.08); | |||
} | |||
/* Optional: brighter text on hover */ | |||
.gear-tile:hover .gear-label { | |||
color: #00ffd0; | |||
} | } | ||
Revision as of 10:12, 22 April 2026
/* ================= NAV ================= */
.navtable {
border: none;
text-align: center;
margin: 0 auto;
border-collapse: collapse;
}
.navcell {
padding: 0 18px 10px;
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: 12px;
flex-wrap: wrap;
justify-content: center;
}
.mw-tab-btn {
padding: 8px 14px;
background: #111;
color: #ccc;
border: 1px solid #444;
border-radius: 6px;
cursor: pointer;
font-weight: bold;
min-width: 90px;
text-align: center;
}
.mw-tab-btn:hover {
border-color: #00bfff;
color: #fff;
}
.mw-tab-btn.active {
background: #00bfff;
color: #000;
}
.mw-tab-content {
display: none;
overflow: visible !important;
}
.mw-tab-content.active {
display: block;
}
/* ================= DROPDOWN SYSTEM ================= */
.mw-dropdown-ui {
background: linear-gradient(145deg, #1a1a1a, #111);
border: 1px solid #333;
border-radius: 12px;
padding: 14px;
margin: 18px auto;
box-shadow: 0 0 12px rgba(0,0,0,0.6);
width: 100%;
max-width: 420px;
box-sizing: border-box;
position: relative;
overflow: visible;
}
/* Header label (BLUE TEXT) */
.mw-dropdown-ui::before {
content: attr(data-label);
display: block;
font-weight: bold;
font-size: 15px;
margin-bottom: 10px;
color: #00bfff;
text-align: center;
}
/* Force layout consistency */
.mw-dropdown-ui *,
.mod-dropdown-btn,
.mw-dropdown-output {
width: 100%;
max-width: 100%;
box-sizing: border-box;
}
/* ================= DROPDOWN ================= */
/* Button */
.mod-dropdown-btn {
height: 42px;
display: flex;
align-items: center;
justify-content: center;
background: #0f0f0f;
color: #eee;
border: 1px solid #444;
border-radius: 6px;
cursor: pointer;
font-weight: bold;
}
/* 🔥 FIXED DROPDOWN POSITION */
.mod-dropdown-list {
display: none;
position: absolute;
/* THIS IS THE REAL FIX */
top: 56px;
left: 14px;
right: 14px;
width: auto;
max-height: 250px;
background: #1a1a1a;
border: 1px solid #444;
border-radius: 6px;
overflow-y: auto;
overflow-x: hidden;
z-index: 99999;
}
/* Items */
.mod-dropdown-item {
padding: 8px;
cursor: pointer;
color: #ccc;
border-bottom: 1px solid #222;
}
.mod-dropdown-item:last-child {
border-bottom: none;
}
.mod-dropdown-item:hover {
background: #00bfff;
color: #000;
}
/* Output */
.mw-dropdown-output {
margin-top: 10px;
background: #0a0a0a;
border: 1px solid #222;
border-radius: 6px;
padding: 12px;
color: #ddd;
font-size: 13px;
min-height: 70px;
}
/* Scrollbar */
.mod-dropdown-list::-webkit-scrollbar {
width: 6px;
}
.mod-dropdown-list::-webkit-scrollbar-thumb {
background: #00bfff;
border-radius: 3px;
}
/* ================= CLEANUP ================= */
.mw-dropdown,
.mw-dropdown-content {
display: none !important;
}
[data-left]:empty,
[data-right]:empty,
.mw-tab-content div:empty {
display: none !important;
}
.uniform-img img {
width: 200px !important;
height: 200px !important;
object-fit: contain; /* or 'cover' if you want them filled */
display: block;
}
.uniform-img img {
width: 200px !important;
height: 200px !important;
object-fit: contain;
display: block;
}
/* TILE CONTAINER */
.gear-tile {
display: inline-block;
width: 200px;
text-decoration: none;
border-radius: 12px;
padding: 10px;
transition: all 0.2s ease;
}
/* IMAGE BOX */
.gear-img {
width: 200px;
height: 200px;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
}
/* FORCE IMAGE SIZE */
.uniform-img img {
width: 200px !important;
height: 200px !important;
object-fit: contain;
}
/* LABEL */
.gear-label {
margin-top: 8px;
font-weight: bold;
color: #ddd;
}
/* 🔥 HOVER EFFECT (MOD UI STYLE) */
.gear-tile:hover {
transform: scale(1.05);
box-shadow: 0 0 15px rgba(0, 255, 200, 0.6);
background: rgba(0,255,200,0.08);
}
/* Optional: brighter text on hover */
.gear-tile:hover .gear-label {
color: #00ffd0;
}