Jump to content

MediaWiki:Common.css: Difference between revisions

From Once Human Guide
No edit summary
No edit summary
Line 1: Line 1:
/* ================= NAV ================= */
.navtable{
.navtable{
   border: none;
   border: none;
Line 7: Line 9:


.navcell{
.navcell{
   padding: 0 18px 10px 18px; /* reduced horizontal + vertical spacing */
   padding: 0 18px 10px 18px;
   vertical-align: top;
   vertical-align: top;
}
}
Line 16: Line 18:
}
}


/* Smaller fixed icon heights */
.navicon{
.navicon{
   display:flex;
   display:flex;
Line 25: Line 26:


.navicon--row1{
.navicon--row1{
   height: 150px; /* was 160 */
   height: 150px;
}
}


.navicon--row2{
.navicon--row2{
   height: 200px; /* was 210 */
   height: 200px;
}
}


/* Pull labels closer */
.navlabel{
.navlabel{
   margin-top: 4px; /* was 8 */
  text-align: center;
  width: 100%;
   margin-top: 4px;
   line-height: 1.05;
   line-height: 1.05;
   font-weight: 800;
   font-weight: 800;
Line 40: Line 42:


.navlabel--tight{
.navlabel--tight{
   margin-top: 2px; /* almost touching */
   margin-top: 2px;
}
}


Line 48: Line 50:
}
}


.navlabel{
/* Hide Main Page title */
  text-align: center;  /* centers the words */
  width: 100%;          /* makes it span full cell width */
  margin-top: 4px;
  line-height: 1.05;
  font-weight: 800;
}
 
.navlabel--tight{
  text-align: center;
  width: 100%;
  margin-top: 2px;
}
 
 
body.page-Main_Page h1.firstHeading {
body.page-Main_Page h1.firstHeading {
    display: none;
  display: none;
}
 
/* ===== GAME UI DROPDOWN ===== */
 
.mw-dropdown-ui {
  background: #1e1e1e;
  border: 2px solid #444;
  border-radius: 10px;
  padding: 15px;
  margin: 15px 0;
  box-shadow: 0 0 10px rgba(0,0,0,0.6);
  max-width: 600px;
}
 
.mw-dropdown-ui select {
  width: 100%;
  padding: 10px;
  background: #111;
  color: #fff;
  border: 1px solid #666;
  border-radius: 6px;
  margin-bottom: 10px;
  font-size: 14px;
  cursor: pointer;
}
}


.mw-dropdown-ui select:hover {
/* ================= TAB SYSTEM ================= */
  border-color: #00bfff;
}
 
/* Output panel */
.mw-dropdown-output {
  background: #0d0d0d;
  border: 1px solid #333;
  padding: 12px;
  border-radius: 6px;
  color: #ddd;
  min-width: 300px;
  line-height: 1.4;
}
 
/* Section headers */
h3 {
  color: #00bfff;
  border-bottom: 2px solid #00bfff;
  padding-bottom: 5px;
  margin-top: 25px;
}
 
/* Optional glow effect */
.mw-dropdown-ui:hover {
  box-shadow: 0 0 15px rgba(0,191,255,0.6);
}
/* ===== TAB SYSTEM ===== */
 
.mw-tabs {
  margin: 20px 0;
}


.mw-tab-buttons {
.mw-tab-buttons {
Line 159: Line 92:
}
}


/* Hide empty dropdown list completely */
/* ================= NEW DROPDOWN SYSTEM ================= */
.mw-dropdown-list {
 
/* Wrapper */
.custom-dropdown {
  position: relative;
}
 
/* Button */
.custom-dropdown-btn {
  padding: 8px 14px;
  background: #1e1e1e;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}
 
/* Dropdown list (HIDDEN BY DEFAULT) */
.custom-dropdown-list {
   display: none;
   display: none;
   border: none !important;
  position: absolute;
   background: none !important;
  background: #1a1a1a;
   padding: 0 !important;
   border: 1px solid #444;
   margin-top: 5px;
  border-radius: 6px;
  min-width: 180px;
   z-index: 1000;
}
}


/* Only show when active */
/* Show only when open */
.mw-dropdown.open .mw-dropdown-list {
.custom-dropdown.open .custom-dropdown-list {
   display: block;
   display: block;
  border: 1px solid #444;
  background: #1a1a1a;
  padding: 5px;
}
}


/* 🔥 KILL OLD DROPDOWN SYSTEM COMPLETELY */
/* Items */
.custom-dropdown-item {
  padding: 8px 10px;
  cursor: pointer;
  color: #ccc;
}
 
.custom-dropdown-item:hover {
  background: #00bfff;
  color: #000;
}
 
/* ================= REMOVE OLD BROKEN SYSTEM ================= */
 
/* Completely disable old dropdown system */
.mw-dropdown-ui,
.mw-dropdown-ui,
.mw-dropdown,
.mw-dropdown,
Line 182: Line 148:
   display: none !important;
   display: none !important;
}
}
/* Hide empty dropdown containers before JS loads */
 
/* ================= FIX GRAY BOX ISSUE ================= */
 
/* Hide empty containers BEFORE JS loads */
[data-left]:empty,
[data-left]:empty,
[data-right]:empty {
[data-right]:empty {
   display: none !important;
   display: none !important;
}
}
/* 🔥 Kill ANY empty block inside tab content */
 
/* Prevent theme from rendering empty blocks */
.mw-tab-content div:empty {
.mw-tab-content div:empty {
   display: none !important;
   display: none !important;
}
}

Revision as of 18:44, 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;
}

/* Hide Main Page title */
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;
}

/* ================= NEW DROPDOWN SYSTEM ================= */

/* Wrapper */
.custom-dropdown {
  position: relative;
}

/* Button */
.custom-dropdown-btn {
  padding: 8px 14px;
  background: #1e1e1e;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

/* Dropdown list (HIDDEN BY DEFAULT) */
.custom-dropdown-list {
  display: none;
  position: absolute;
  background: #1a1a1a;
  border: 1px solid #444;
  margin-top: 5px;
  border-radius: 6px;
  min-width: 180px;
  z-index: 1000;
}

/* Show only when open */
.custom-dropdown.open .custom-dropdown-list {
  display: block;
}

/* Items */
.custom-dropdown-item {
  padding: 8px 10px;
  cursor: pointer;
  color: #ccc;
}

.custom-dropdown-item:hover {
  background: #00bfff;
  color: #000;
}

/* ================= REMOVE OLD BROKEN SYSTEM ================= */

/* Completely disable old dropdown system */
.mw-dropdown-ui,
.mw-dropdown,
.mw-dropdown-list,
.mw-dropdown-content {
  display: none !important;
}

/* ================= FIX GRAY BOX ISSUE ================= */

/* Hide empty containers BEFORE JS loads */
[data-left]:empty,
[data-right]:empty {
  display: none !important;
}

/* Prevent theme from rendering empty blocks */
.mw-tab-content div:empty {
  display: none !important;
}