Jump to content

MediaWiki:Common.css: Difference between revisions

From Once Human Guide
No edit summary
No edit summary
Line 1: Line 1:
/* ================= NAV ================= */
/* ================= NAV ================= */


.navtable{
.navtable {
   border: none;
   border: none;
   text-align: center;
   text-align: center;
Line 8: Line 8:
}
}


.navcell{
.navcell {
   padding: 0 18px 10px 18px;
   padding: 0 18px 10px 18px;
   vertical-align: top;
   vertical-align: top;
}
}


.navimg img{
.navimg img {
   display:block;
   display: block;
   margin:0 auto;
   margin: 0 auto;
}
}


.navicon{
.navicon {
   display:flex;
   display: flex;
   align-items:flex-end;
   align-items: flex-end;
   justify-content:center;
   justify-content: center;
   width: 200px;
   width: 200px;
}
}


.navicon--row1{ height: 150px; }
.navicon--row1 { height: 150px; }
.navicon--row2{ height: 200px; }
.navicon--row2 { height: 200px; }


.navlabel{
.navlabel {
   text-align: center;
   text-align: center;
   width: 100%;
   width: 100%;
Line 36: Line 36:
}
}


.navlabel--tight{ margin-top: 2px; }
.navlabel--tight { margin-top: 2px; }


.navicon--empty,
.navicon--empty,
.navlabel--empty{
.navlabel--empty {
   visibility:hidden;
   visibility: hidden;
}
}


Line 79: Line 79:
.mw-tab-content {
.mw-tab-content {
   display: none;
   display: none;
   overflow: visible !important; /* 🔥 FIX: prevents dropdown blocking */
   overflow: visible !important; /* REQUIRED for dropdowns */
}
}


Line 87: Line 87:




/* ================= DROPDOWN SYSTEM (FULL FIX) ================= */
/* ================= DROPDOWN SYSTEM ================= */


.mw-dropdown-ui {
.mw-dropdown-ui {
Line 96: Line 96:
   margin: 18px 0;
   margin: 18px 0;
   box-shadow: 0 0 12px rgba(0,0,0,0.6);
   box-shadow: 0 0 12px rgba(0,0,0,0.6);
   max-width: 420px;
 
  width: 100%;              /* 🔥 FIX overflow */
   max-width: 100%;         /* 🔥 FIX overflow */
  box-sizing: border-box;  /* 🔥 prevents width issues */


   position: relative;
   position: relative;
Line 103: Line 106:
}
}


/* Header label */
/* Header */
.mw-dropdown-ui::before {
.mw-dropdown-ui::before {
   content: attr(data-label);
   content: attr(data-label);
Line 139: Line 142:
}
}


/* LIST — FIXED SCROLL + INTERACTION */
/* Dropdown list */
.mod-dropdown-list {
.mod-dropdown-list {
   display: none;
   display: none;
Line 157: Line 160:


   z-index: 99999;
   z-index: 99999;
  pointer-events: auto; /* 🔥 FIXES mouse scroll */
}
}


Line 166: Line 168:
   color: #ccc;
   color: #ccc;
   border-bottom: 1px solid #222;
   border-bottom: 1px solid #222;
  transition: 0.15s;
}
}


Line 178: Line 179:
}
}


/* Output box */
/* Output */
.mw-dropdown-output {
.mw-dropdown-output {
   margin-top: 10px;
   margin-top: 10px;
Line 188: Line 189:
   font-size: 13px;
   font-size: 13px;
   line-height: 1.4;
   line-height: 1.4;
  width: 100%;
  box-sizing: border-box;
}
}


Line 198: Line 202:
   background: #00bfff;
   background: #00bfff;
   border-radius: 3px;
   border-radius: 3px;
}
/* ================= 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;
}
}


Line 225: Line 207:
/* ================= CLEANUP ================= */
/* ================= CLEANUP ================= */


/* Remove legacy broken dropdowns */
.mw-dropdown,
.mw-dropdown,
.mw-dropdown-content {
.mw-dropdown-content {
Line 231: Line 212:
}
}


/* Prevent empty containers */
[data-left]:empty,
[data-left]:empty,
[data-right]:empty {
[data-right]:empty {
Line 237: Line 217:
}
}


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

Revision as of 21:21, 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;
  overflow: visible !important; /* REQUIRED for dropdowns */
}

.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 0;
  box-shadow: 0 0 12px rgba(0,0,0,0.6);

  width: 100%;              /* 🔥 FIX overflow */
  max-width: 100%;          /* 🔥 FIX overflow */
  box-sizing: border-box;   /* 🔥 prevents width issues */

  position: relative;
  overflow: visible !important;
  z-index: 1;
}

/* Header */
.mw-dropdown-ui::before {
  content: attr(data-label);
  display: block;
  font-weight: bold;
  font-size: 15px;
  margin-bottom: 8px;
  color: #00bfff;
}

/* Container */
.mod-dropdown {
  position: relative;
  width: 100%;
  z-index: 2;
}

/* Button */
.mod-dropdown-btn {
  width: 100%;
  padding: 10px;
  background: #0f0f0f;
  color: #eee;
  border: 1px solid #444;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  font-weight: bold;
  transition: 0.2s;
}

.mod-dropdown-btn:hover {
  border-color: #00bfff;
  color: #fff;
}

/* Dropdown list */
.mod-dropdown-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;

  width: 100%;
  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;
  padding: 12px;
  border-radius: 6px;
  color: #ddd;
  font-size: 13px;
  line-height: 1.4;

  width: 100%;
  box-sizing: border-box;
}

/* 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 {
  display: none !important;
}

.mw-tab-content div:empty {
  display: none !important;
}