Jump to content

MediaWiki:Common.css: Difference between revisions

From Once Human Guide
No edit summary
No edit summary
Line 257: Line 257:
   width: 100%; height: 100%; object-fit: cover; display: block;
   width: 100%; height: 100%; object-fit: cover; display: block;
}
}
/* ===== Design A ===== */
.mpa { --bg:#0d1117; --panel:#161b22; --accent:#f5a623; --accent2:#e8531f;
      --text:#e6edf3; --muted:#9aa7b4; --border:#2a3442; }
.mpa-hero { position:relative; border-radius:14px; overflow:hidden;
  border:1px solid var(--border); padding:48px 40px; color:var(--text);
  background:
    linear-gradient(115deg, rgba(13,17,23,.95) 35%, rgba(13,17,23,.55) 70%, rgba(13,17,23,.25)),
    url("/images/thumb/0/0c/OH_Map.png/1120px-OH_Map.png") center/cover; }
.mpa-hero-title { font-size:2.2em; font-weight:800; margin-bottom:8px; }
.mpa-hero-title .mpa-accent { color:var(--accent); }
.mpa-hero-tag { color:var(--muted); max-width:520px; font-size:1.05em; margin-bottom:22px; }
.mpa-btn a { display:inline-block; margin:0 10px 8px 0; padding:10px 20px;
  border-radius:8px; font-weight:600; transition:transform .15s, box-shadow .15s; }
.mpa-btn-primary a { background:linear-gradient(135deg,var(--accent),var(--accent2)); color:#14100a !important; }
.mpa-btn-ghost a { border:1px solid var(--accent); color:var(--accent) !important; }
.mpa-btn a:hover { transform:translateY(-2px); box-shadow:0 6px 18px rgba(245,166,35,.35); }
.mpa-new { display:inline-block; width:9px; height:9px; border-radius:50%;
  background:#3fd36c; margin-right:7px; animation:mpa-pulse 1.6s infinite; }
@keyframes mpa-pulse {
  0% { box-shadow:0 0 0 0 rgba(63,211,108,.6); }
  70% { box-shadow:0 0 0 8px rgba(63,211,108,0); }
  100% { box-shadow:0 0 0 0 rgba(63,211,108,0); } }
.mpa-sec { margin:34px 0 16px; font-size:1.25em; font-weight:700;
  display:flex; align-items:center; gap:12px; }
.mpa-sec::after { content:""; flex:1; height:2px;
  background:linear-gradient(90deg,var(--accent),transparent); }
.mpa-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:18px; }
.mpa-card { background:var(--panel); border:1px solid var(--border); border-radius:12px;
  overflow:hidden; color:var(--text);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.mpa-card:hover { transform:translateY(-5px); border-color:var(--accent);
  box-shadow:0 10px 24px rgba(0,0,0,.5), 0 0 14px rgba(245,166,35,.25); }
.mpa-card .mp-card-img { height:140px; display:block; }
.mpa-card .mp-card-img img { filter:saturate(.9); transition:filter .18s; }
.mpa-card:hover .mp-card-img img { filter:saturate(1.15); }
.mpa-card-body { padding:12px 14px 14px; }
.mpa-card-title { font-weight:700; margin-bottom:4px; }
.mpa-card-title a { color:var(--text) !important; }
.mpa-card-desc { font-size:.85em; color:var(--muted); line-height:1.4; }
.mpa-footer { margin-top:36px; display:flex; flex-wrap:wrap; gap:14px; justify-content:center;
  background:#1c2330; border:1px solid var(--border); border-radius:12px; padding:18px; }
.mpa-footer a { color:var(--accent) !important; font-weight:600; padding:6px 14px;
  border-radius:6px; transition:background .15s; }
.mpa-footer a:hover { background:rgba(245,166,35,.12); }

Revision as of 16:22, 11 June 2026

/* =============================================================
   COMMON.CSS
   Sections:
     1. Navigation
     2. Tab System
     3. Dropdown System
        3a. Container
        3b. Button
        3c. List & Items
        3d. Scrollbar
     4. Output Panel (Tech Bench Style)
     5. Cleanup / Utility Overrides
   ============================================================= */


/* ================= 1. NAVIGATION ================= */
.navtable {
  margin: 0 auto;
  border: none;
  border-collapse: collapse;
  text-align: center;
}

.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 {
  width: 100%;
  margin-top: 4px;
  text-align: center;
  font-weight: 800;
  line-height: 1.05;
}

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

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

body.page-Main_Page h1.firstHeading {
  display: none;
}


/* ================= 2. TAB SYSTEM ================= */
.mw-tab-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.mw-tab-btn {
  min-width: 90px;
  padding: 8px 14px;
  background: #111;
  color: #ccc;
  border: 1px solid #444;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
}

.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;
}


/* ================= 3. DROPDOWN SYSTEM ================= */

/* -- 3a. Container -- */
.mw-dropdown-ui {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 18px auto;
  padding: 14px;
  background: linear-gradient(145deg, #1a1a1a, #111);
  border: 1px solid #333;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
  box-sizing: border-box;
  overflow: visible;
}

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

/* Force consistent sizing on children */
.mw-dropdown-ui *,
.mod-dropdown-btn,
.mw-dropdown-output {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* -- 3b. Button -- */
.mod-dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  background: #0f0f0f;
  color: #eee;
  border: 1px solid #444;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

/* -- 3c. List & Items -- */
.mod-dropdown-list {
  display: none;
  position: absolute;
  top: 56px;
  left: 14px;
  right: 14px;
  width: auto;
  max-height: 250px;
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 6px;
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 99999;
}

.mod-dropdown-item {
  padding: 8px;
  color: #ccc;
  border-bottom: 1px solid #222;
  cursor: pointer;
}

.mod-dropdown-item:last-child {
  border-bottom: none;
}

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

/* -- 3d. Scrollbar -- */
.mod-dropdown-list::-webkit-scrollbar {
  width: 6px;
}

.mod-dropdown-list::-webkit-scrollbar-thumb {
  background: #00bfff;
  border-radius: 3px;
}


/* ================= 4. OUTPUT PANEL (TECH BENCH STYLE) ================= */
.mw-dropdown-output {
  min-height: 70px;
  margin-top: 10px;
  padding: 12px;
  background: #0d1319;
  border: 1px solid #1f2a35;
  border-radius: 10px;
  color: #e6edf3;
  font-size: 13px;
}

.mw-ui-placeholder {
  color: #666;
  font-style: italic;
  text-align: center;
}

.mw-ui-title {
  margin-bottom: 8px;
  color: #e6edf3;
  font-size: 14px;
  font-weight: 700;
}

.mw-ui-line {
  padding: 6px 0;
  border-top: 1px solid #1a222b;
  color: #9fb0c3;
  font-size: 13px;
}

.mw-ui-line:first-of-type {
  border-top: none;
}


/* ================= 5. CLEANUP / UTILITY OVERRIDES ================= */
.mw-dropdown,
.mw-dropdown-content {
  display: none !important;
}

[data-left]:empty,
[data-right]:empty,
.mw-tab-content div:empty {
  display: none !important;
}
/* ===== Main Page redesign — shared ===== */
.page-Main_Page .firstHeading,
.page-Main_Page #siteSub { display: none; }   /* hide "Main Page" title for a cleaner landing */

.mp-wrap a { text-decoration: none; }
.mp-wrap a.new { color: inherit; }            /* don't redlink-color nav cards */

/* clickable image fills its container */
.mp-card-img img, .mp-tile-img img, .mp-banner-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
/* ===== Design A ===== */
.mpa { --bg:#0d1117; --panel:#161b22; --accent:#f5a623; --accent2:#e8531f;
       --text:#e6edf3; --muted:#9aa7b4; --border:#2a3442; }

.mpa-hero { position:relative; border-radius:14px; overflow:hidden;
  border:1px solid var(--border); padding:48px 40px; color:var(--text);
  background:
    linear-gradient(115deg, rgba(13,17,23,.95) 35%, rgba(13,17,23,.55) 70%, rgba(13,17,23,.25)),
    url("/images/thumb/0/0c/OH_Map.png/1120px-OH_Map.png") center/cover; }
.mpa-hero-title { font-size:2.2em; font-weight:800; margin-bottom:8px; }
.mpa-hero-title .mpa-accent { color:var(--accent); }
.mpa-hero-tag { color:var(--muted); max-width:520px; font-size:1.05em; margin-bottom:22px; }

.mpa-btn a { display:inline-block; margin:0 10px 8px 0; padding:10px 20px;
  border-radius:8px; font-weight:600; transition:transform .15s, box-shadow .15s; }
.mpa-btn-primary a { background:linear-gradient(135deg,var(--accent),var(--accent2)); color:#14100a !important; }
.mpa-btn-ghost a { border:1px solid var(--accent); color:var(--accent) !important; }
.mpa-btn a:hover { transform:translateY(-2px); box-shadow:0 6px 18px rgba(245,166,35,.35); }

.mpa-new { display:inline-block; width:9px; height:9px; border-radius:50%;
  background:#3fd36c; margin-right:7px; animation:mpa-pulse 1.6s infinite; }
@keyframes mpa-pulse {
  0% { box-shadow:0 0 0 0 rgba(63,211,108,.6); }
  70% { box-shadow:0 0 0 8px rgba(63,211,108,0); }
  100% { box-shadow:0 0 0 0 rgba(63,211,108,0); } }

.mpa-sec { margin:34px 0 16px; font-size:1.25em; font-weight:700;
  display:flex; align-items:center; gap:12px; }
.mpa-sec::after { content:""; flex:1; height:2px;
  background:linear-gradient(90deg,var(--accent),transparent); }

.mpa-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:18px; }
.mpa-card { background:var(--panel); border:1px solid var(--border); border-radius:12px;
  overflow:hidden; color:var(--text);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.mpa-card:hover { transform:translateY(-5px); border-color:var(--accent);
  box-shadow:0 10px 24px rgba(0,0,0,.5), 0 0 14px rgba(245,166,35,.25); }
.mpa-card .mp-card-img { height:140px; display:block; }
.mpa-card .mp-card-img img { filter:saturate(.9); transition:filter .18s; }
.mpa-card:hover .mp-card-img img { filter:saturate(1.15); }
.mpa-card-body { padding:12px 14px 14px; }
.mpa-card-title { font-weight:700; margin-bottom:4px; }
.mpa-card-title a { color:var(--text) !important; }
.mpa-card-desc { font-size:.85em; color:var(--muted); line-height:1.4; }

.mpa-footer { margin-top:36px; display:flex; flex-wrap:wrap; gap:14px; justify-content:center;
  background:#1c2330; border:1px solid var(--border); border-radius:12px; padding:18px; }
.mpa-footer a { color:var(--accent) !important; font-weight:600; padding:6px 14px;
  border-radius:6px; transition:background .15s; }
.mpa-footer a:hover { background:rgba(245,166,35,.12); }