Jump to content

MediaWiki:Common.css: Difference between revisions

From Once Human Guide
No edit summary
No edit summary
Line 84: Line 84:
}
}


/* ================= DROPDOWN SYSTEM (FIXED) ================= */
/* ================= DROPDOWN SYSTEM ================= */


.custom-dropdown {
/* KEEP THIS VISIBLE (fixes Ingredients page) */
   position: relative;
.mw-dropdown-ui {
   display: inline-block;
   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;
}
}


.custom-dropdown-btn {
/* dropdown select */
   padding: 8px 14px;
.mw-dropdown-ui select {
   background: #1e1e1e;
  width: 100%;
   padding: 10px;
   background: #111;
   color: #fff;
   color: #fff;
   border: 1px solid #444;
   border: 1px solid #666;
   border-radius: 6px;
   border-radius: 6px;
  margin-bottom: 10px;
  font-size: 14px;
   cursor: pointer;
   cursor: pointer;
  font-weight: bold;
}
}


/* KEY FIX: removed from layout completely */
.mw-dropdown-ui select:hover {
.custom-dropdown-list {
   border-color: #00bfff;
   position: absolute;
}
  top: 100%;
  left: 0;
  min-width: 180px;


   background: #1a1a1a;
/* output box */
   border: 1px solid #444;
.mw-dropdown-output {
   background: #0d0d0d;
   border: 1px solid #333;
  padding: 12px;
   border-radius: 6px;
   border-radius: 6px;
   margin-top: 5px;
   color: #ddd;
}


  visibility: hidden;
/* ================= CUSTOM DROPDOWN (MOD SYSTEM) ================= */
  opacity: 0;
  pointer-events: none;


.dropdown-list {
  position: absolute;
  background: #1a1a1a;
  border: 1px solid #444;
  padding: 5px;
   z-index: 9999;
   z-index: 9999;
}
}


/* Show only when open */
.dropdown-list div {
.custom-dropdown.open .custom-dropdown-list {
   padding: 6px;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
 
.custom-dropdown-item {
   padding: 8px 10px;
   cursor: pointer;
   cursor: pointer;
   color: #ccc;
   color: #ccc;
}
}


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


/* ================= REMOVE OLD SYSTEM ================= */
/* ================= CLEANUP ================= */


.mw-dropdown-ui,
/* ONLY remove broken legacy elements */
.mw-dropdown,
.mw-dropdown,
.mw-dropdown-list,
.mw-dropdown-content {
.mw-dropdown-content {
   display: none !important;
   display: none !important;
}
}


/* Hide empty containers before JS loads */
/* DO NOT hide mw-dropdown-ui (this was your bug) */
 
/* prevent empty containers */
[data-left]:empty,
[data-left]:empty,
[data-right]:empty {
[data-right]:empty {
  display: none !important;
}
/* 🔥 HARD KILL ANY EMPTY/INVISIBLE DROPDOWN BLOCK */
.custom-dropdown-list:empty {
   display: none !important;
   display: none !important;
}
}


/* 🔥 FORCE dropdown lists OUT of layout */
/* remove empty junk blocks */
.custom-dropdown-list {
.mw-tab-content div:empty {
  position: absolute !important;
   display: none !important;
   display: none !important;
}
/* Show only when JS opens it */
.custom-dropdown-list[style*="block"] {
  display: block !important;
}
.dropdown-list {
  position: absolute;
  background: #1a1a1a;
  border: 1px solid #444;
  padding: 5px;
  z-index: 9999;
}
.dropdown-list div {
  padding: 6px;
  cursor: pointer;
}
.dropdown-list div:hover {
  background: #00bfff;
  color: #000;
}
/* 🔥 FIX: Remove theme panel styling from dropdown container */
[data-dropdown-group] {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}
[data-dropdown-group] > div {
  background: transparent !important;
  border: none !important;
}
/* 🔥 Remove accidental <pre> blocks */
pre:empty {
  display: none !important;
}
pre {
  background: none !important;
  border: none !important;
  padding: 0 !important;
}
}

Revision as of 19:50, 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 ================= */

/* KEEP THIS VISIBLE (fixes Ingredients page) */
.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;
}

/* dropdown select */
.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 {
  border-color: #00bfff;
}

/* output box */
.mw-dropdown-output {
  background: #0d0d0d;
  border: 1px solid #333;
  padding: 12px;
  border-radius: 6px;
  color: #ddd;
}

/* ================= CUSTOM DROPDOWN (MOD SYSTEM) ================= */

.dropdown-list {
  position: absolute;
  background: #1a1a1a;
  border: 1px solid #444;
  padding: 5px;
  z-index: 9999;
}

.dropdown-list div {
  padding: 6px;
  cursor: pointer;
  color: #ccc;
}

.dropdown-list div:hover {
  background: #00bfff;
  color: #000;
}

/* ================= CLEANUP ================= */

/* ONLY remove broken legacy elements */
.mw-dropdown,
.mw-dropdown-content {
  display: none !important;
}

/* DO NOT hide mw-dropdown-ui (this was your bug) */

/* prevent empty containers */
[data-left]:empty,
[data-right]:empty {
  display: none !important;
}

/* remove empty junk blocks */
.mw-tab-content div:empty {
  display: none !important;
}