MediaWiki:Common.css: Difference between revisions

From EQOA Sandstorm Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 162: Line 162:
.npc-left-column h2 {
.npc-left-column h2 {
   font-family: "Trajan Pro", Georgia, serif !important;
   font-family: "Trajan Pro", Georgia, serif !important;
   font-size: 20px !important;
   font-size: 20px !important;
   letter-spacing: 1px;
   letter-spacing: 1px;
Line 387: Line 388:
}
}


/* COLLAPSE ROW HEIGHT COMPLETELY */
/* TIGHT, EVEN ROW SPACING */
.spell-row {
.spell-row {
     padding: 0 !important;
     padding: 0 !important;
Line 396: Line 397:
}
}


/* REMOVE INTERNAL SPACING IN DATA CELL */
/* 1px spacing between all inline elements */
.spell-data {
.spell-data {
     padding: 0 !important;
     padding: 0 !important;
Line 403: Line 404:
     height: auto !important;
     height: auto !important;
     display: flex;
     display: flex;
     align-items: center; /* prevents tall rows */
     align-items: center;
     gap: 2px; /* remove if you want ZERO spacing */
     gap: 1px !important;   /* ΓåÉ 1px spacing between icon and spell name */
}
}


/* REMOVE SPACING FROM LEVEL COLUMN */
/* LEVEL column also gets 1px spacing after it */
.spell-lvl {
.spell-lvl {
     padding: 0 !important;
     padding: 0 !important;
     margin: 0 !important;
     margin: 0 1px 0 0 !important; /* ΓåÉ 1px space between level and icon */
     line-height: 1 !important;
     line-height: 1 !important;
    height: auto !important;
     display: flex;
     display: flex;
     align-items: center;
     align-items: center;
}
}


/* REMOVE SPACING FROM SPELL NAME */
/* SPELL NAME stays tight */
.spell-name {
.spell-name {
     padding: 0 !important;
     padding: 0 !important;
Line 424: Line 424:
}
}


/* FIX ICON ALIGNMENT (THIS IS KEY) */
/* ICON ALIGNMENT (keeps row height tiny) */
.spell-icon-wrap img {
.spell-icon-wrap img {
     vertical-align: middle !important;
     vertical-align: middle !important;
     margin: 0 !important;
     margin: 0 !important;
     padding: 0 !important;
     padding: 0 !important;
    line-height: 1 !important;
     height: 20px;
     height: 20px;
     width: 20px;
     width: 20px;
    line-height: 1 !important;
}
}

Revision as of 11:12, 22 November 2025

/* ============================================================
   EQOA: Sandstorm WIKI THEME ΓÇö CLEANED VERSION
   ============================================================ */

/* ------------------------------------------------------------
   ROOT VARIABLES
------------------------------------------------------------ */
:root {
  --midnight: #0F1626;
  --sand: #B9C4D1;
  --gold: #E3B44A;
  --sky: #6DA5E7;
  --evergreen: #3E6B52;
  --ember: #9A2E1E;
  --box-header: #1C2B44;
}

/* ------------------------------------------------------------
   GLOBAL PAGE BACKGROUND & HEADINGS
------------------------------------------------------------ */
body,
#globalWrapper,
#content,
#mw-page-base,
#mw-head-base {
  background: var(--midnight) !important;
  color: var(--sand) !important;
  font-family: Georgia, "Times New Roman", serif;
}

h1, h2, h3, h4, h5, h6,
#firstHeading, .mw-first-heading,
.mw-body h1, .mw-body h2, .mw-body h3,
.mw-body h4, .mw-body h5, .mw-body h6 {
  color: var(--gold) !important;
  font-weight: 700 !important;
  border: none !important;
}

.mw-parser-output > h2 {
  border-bottom: 1px solid rgba(255,255,255,0.15) !important;
}

/* ------------------------------------------------------------
   LINKS
------------------------------------------------------------ */
a { color: var(--sky) !important; }
a:visited { color: #5E8BC0 !important; }
a:hover { color: var(--gold) !important; }

/* ------------------------------------------------------------
   TABLES (GLOBAL)
------------------------------------------------------------ */
table, .wikitable {
  background: #0A1420 !important;
  border: 1px solid var(--gold) !important;
}

.wikitable th,
.infobox th,
.npc-table th,
.zone-table th {
  background: var(--box-header) !important;
  color: var(--gold) !important;
}

.wikitable td,
.infobox td,
.npc-table td,
.zone-table td {
  color: var(--sand) !important;
  border: 1px solid var(--gold) !important;
}

table tr:nth-child(even),
.wikitable tr:nth-child(even),
.npc-table tr:nth-child(even),
.zone-table tr:nth-child(even) {
  background: #121E30 !important;
}

/* ------------------------------------------------------------
   CUSTOM BOXES, PORTALS, MAIN PAGE SECTIONS
------------------------------------------------------------ */
.portal, .navbox, .multicol, .mainpage-box, .mainpage-header,
div.center-box, div.portal, #mp-topbanner, #mp-left, #mp-right {
  background: #0A1420 !important;
  border: 1px solid var(--gold) !important;
  color: var(--sand) !important;
}

.box-header, .portal .portal-header,
.mainpage-header, .center-box .header {
  background: var(--box-header) !important;
  padding: 6px 10px !important;
  color: var(--gold) !important;
  border-bottom: 1px solid var(--gold) !important;
  text-align: center;
}

/* ------------------------------------------------------------
   SIDEBAR (MonoBook)
------------------------------------------------------------ */
#p-navigation, #p-interaction, #p-tb, #p-search {
  background: #0A1420 !important;
  border: 1px solid var(--gold) !important;
}

#p-navigation h3, #p-interaction h3, #p-tb h3, #p-search h3 {
  background: var(--box-header) !important;
  color: var(--gold) !important;
  padding: 4px 6px !important;
}

/* ------------------------------------------------------------
   INPUTS
------------------------------------------------------------ */
input, textarea {
  background: #142233 !important;
  color: var(--sand) !important;
  border: 1px solid var(--gold) !important;
}

/* ------------------------------------------------------------
   NOTICES
------------------------------------------------------------ */
.notice-success { background: var(--evergreen) !important; color: #DFF2E4 !important; }
.notice-warning { background: #3F2E00 !important; color: #FFDD8A !important; }
.notice-error   { background: var(--ember) !important; color: #F9D0C8 !important; }

/* ------------------------------------------------------------
   FOOTER
------------------------------------------------------------ */
#footer {
  background: #0A1420 !important;
  border-top: 1px solid var(--gold) !important;
}

/* ------------------------------------------------------------
   MOB FLAG LEGEND ΓÇö SPECIFIC TABLE ONLY
------------------------------------------------------------ */
#mob-flag-legend,
#mob-flag-legend * {
  background: #1C2B44 !important;
  color: var(--gold) !important;
  border: none !important;
  text-align: center !important;
  font-size: 18px !important;
  font-family: "Trebuchet MS", Verdana, sans-serif !important;
}

/* ------------------------------------------------------------
   NPC TEMPLATE ΓÇö LEFT COLUMN
------------------------------------------------------------ */
.npc-left-column {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
}

.npc-left-column td:first-child { font-weight: bold !important; }
.npc-left-column h2 {
  font-family: "Trajan Pro", Georgia, serif !important;

  font-size: 20px !important;
  letter-spacing: 1px;
}

/* ------------------------------------------------------------
   NPC DETAIL TABLES (Notes, Factions, Opposing)
------------------------------------------------------------ */
.eqoa-detail-table {
  border: 1px solid var(--gold) !important;
  background: #0A1420 !important;
}

.eqoa-detail-table td {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif !important;
  font-size: 14px !important;
  padding: 8px 10px !important;
  color: var(--sand) !important;
}

/* Section header (inside unified box) */
.eqoa-section-box {
  background: #0A1420 !important;
  border: 2px solid var(--gold) !important;
}

.eqoa-section-box .right-header {
  background: var(--box-header) !important;
  padding: 8px 10px !important;
}

/* ------------------------------------------------------------
   MAIN PAGE GENERIC / COLUMN SETUP
------------------------------------------------------------ */
.mp-box {
  border: 2px solid var(--gold) !important;
  background: #0A1420 !important;
  padding: 0;
}

.mp-inner { background: #1C2B44 !important; padding: 10px; }

.mp-col {
  background: #1C2B44 !important;
  border: 1px solid var(--gold) !important;
  padding: 10px;
}

.mp-col a { color: var(--gold) !important; }
.mp-col a:hover { color: white !important; }

.mp-columns { display: flex; gap: 10px; }

/* ------------------------------------------------------------
   SPELL LIST ΓÇö ULTRA-TIGHT VERSION (Cleaned)
------------------------------------------------------------ */

.spell-list, .spell-list * {
  background: transparent !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.spell-list__cols {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.spell-col {
  display: flex;
  flex-direction: column;
  border: 1px solid #c1c7cc !important;
  background: #f8fafb !important;
}

.spell-row {
  display: flex;
  align-items: center;
  padding: 1px 3px !important;
  height: 16px !important;
  border-bottom: 1px solid #c9cfd3 !important;
}

.spell-lvl {
  width: 22px !important;
  font-size: 12px !important;
  text-align: center;
}

.spell-data {
  display: flex;
  align-items: center;
  gap: 2px !important;
}

.spell-icon-wrap img {
  width: 14px !important;
  height: 14px !important;
  background: transparent !important;
  border: none !important;
}


/* ===========================
   SPELL LIST FIX ΓÇö Side-by-side + NPC colors
   Paste AFTER your main stylesheet
   =========================== */

/* Ensure .spell-list main container uses NPC palette but keeps layout */
.spell-list {
  background: #0A1420 !important;            /* NPC box background */
  border: 1px solid #E3B44A !important;      /* gold border */
  color: #B9C4D1 !important;                 /* sand text */
  padding: 6px !important;
  margin-bottom: 12px !important;
}

/* Grid columns: keep items side-by-side and responsive */
.spell-list__cols {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 6px !important;
  align-items: start !important;
}

/* Each column box uses NPC inner background (header-blue) */
.spell-col {
  background: #1C2B44 !important;            /* NPC inner/header blue */
  border: 1px solid #E3B44A !important;
  padding: 4px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  color: #B9C4D1 !important;
}

/* Spell rows stay compact, horizontal, and aligned */
.spell-row {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 2px 4px !important;
  min-height: 18px !important;
  line-height: 18px !important;
  background: transparent !important;        /* let the column show */
  border-bottom: 1px solid rgba(227,180,74,0.06) !important;
}

/* Level box ΓÇö small and fixed */
.spell-lvl {
  width: 26px !important;
  min-width: 26px !important;
  text-align: center !important;
  font-size: 12px !important;
  color: #E3B44A !important;                 /* gold level numbers for contrast */
  padding: 0 !important;
}

/* Icon + name area */
.spell-data {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #B9C4D1 !important;
}

/* Icon sizing (keeps them tight) */
.spell-icon-wrap img,
.spell-row img {
  width: 14px !important;
  height: 14px !important;
  display: inline-block !important;
  background: transparent !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Legacy/alternate variant: SpellList + SpellRow */
.SpellList {
  background: #0A1420 !important;
  border: 1px solid #E3B44A !important;
  padding: 6px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  color: #B9C4D1 !important;
}

.SpellRow {
  width: calc(50% - 20px) !important;    /* two columns side-by-side */
  background: #1C2B44 !important;
  border: 1px solid #E3B44A !important;
  padding: 6px 8px !important;
  box-sizing: border-box !important;
  color: #B9C4D1 !important;
}

/* Ensure MediaWiki table elements inside spell-list don't override layout */
.spell-list table, .spell-list tr, .spell-list td, .spell-list th,
.spell-col table, .spell-col tr, .spell-col td, .spell-col th {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

/* Prevent broad-global header/box rules from stomping spell-list internals */
.spell-list .box, .spell-list .mp-inner, .spell-list .mainpage-box,
.spell-list .portal, .spell-list .infobox, .spell-col .infobox {
  background: transparent !important;
  border: none !important;
  color: inherit !important;
}

/* Small responsive tweak: stack single-column under narrow widths */
@media (max-width: 520px) {
  .spell-list__cols { grid-template-columns: 1fr !important; }
  .SpellRow { width: 100% !important; }
}

/* TIGHT, EVEN ROW SPACING */
.spell-row {
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    min-height: 0 !important;
    height: auto !important;
}

/* 1px spacing between all inline elements */
.spell-data {
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    height: auto !important;
    display: flex;
    align-items: center;
    gap: 1px !important;   /* ← 1px spacing between icon and spell name */
}

/* LEVEL column also gets 1px spacing after it */
.spell-lvl {
    padding: 0 !important;
    margin: 0 1px 0 0 !important;  /* ← 1px space between level and icon */
    line-height: 1 !important;
    display: flex;
    align-items: center;
}

/* SPELL NAME stays tight */
.spell-name {
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1.1 !important;
}

/* ICON ALIGNMENT (keeps row height tiny) */
.spell-icon-wrap img {
    vertical-align: middle !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 20px;
    width: 20px;
    line-height: 1 !important;
}