MediaWiki:Common.css: Difference between revisions

From Fatesend Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 157: Line 157:
}
}


/* =========================
  Vector / Vector 2022 tweaks
  ========================= */


/* Keep content from feeling too wide on large screens (optional) */
.mw-body-content {
  max-width: 1200px;
}
/* Sidebar links spacing can look tight in some skins */
#mw-panel .portal .body li {
  margin: 0.15em 0;
}
/* =========================
  Fatesend Main Page - nicer cards
  ========================= */
.fsw-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 980px) {
  .fsw-grid-2 {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
.fsw-card {
  border: 1px solid #a2a9b1;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.fsw-card-head {
  background: #d8e6ff;
  border-bottom: 1px solid #a2a9b1;
  padding: 8px 12px;
  font-weight: 700;
}
.fsw-card-body {
  padding: 10px 12px;
}
.fsw-center {
  text-align: center;
}
.fsw-muted {
  color: #54595d;
}
.fsw-alert {
  background: #fff5f5;
  border: 1px solid #f2b8b5;
  padding: 8px 10px;
  border-radius: 6px;
  color: #b32424;
  display: inline-block;
  max-width: 900px;
}
.fsw-links a.external {
  word-break: break-word;
}
.fsw-card-body ul {
  margin: 0.3em 0 0.7em 1.2em;
}
.fsw-card-body li {
  margin: 0.2em 0;
}
/* ===== Fatesend Main Page (Vector 2010 classic vibe) ===== */
/* ===== Fatesend Main Page (Vector 2010 classic vibe) ===== */


Line 288: Line 211:
   margin: 0 auto;
   margin: 0 auto;
}
}
/* Main Page container */
.fsw-main { width: 100%; margin: 0 auto; }

Revision as of 21:04, 26 January 2026

/* iRO-like tables */
table.wikitablec,
table.wikitable {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
}

/* Header */
table.wikitablec th,
table.wikitable th {
  background: #f2f2f2;
  border: 1px solid #a2a9b1;
  padding: 6px 8px;
  font-size: 90%;
  white-space: nowrap; /* iRO-like headers */
}

/* Cells */
table.wikitablec td,
table.wikitable td {
  border: 1px solid #a2a9b1;
  padding: 6px 8px;
  vertical-align: top;
  font-size: 90%;
}

/* Sortable icon spacing */
table.sortable th {
  cursor: pointer;
}

/* Row hover (subtle) */
table.wikitablec tr:hover td,
table.wikitable tr:hover td {
  background: #f9f9f9;
}

/* Keep text readable, but don't force aggressive breaking */
table.wikitablec td,
table.wikitable td {
  overflow-wrap: normal;
  word-break: normal;
}

/* Access Quests table tuning (matches iRO look) */
table.wikitablec.access-quests th:nth-child(1),
table.wikitablec.access-quests td:nth-child(1) { width: 22%; }

table.wikitablec.access-quests th:nth-child(2),
table.wikitablec.access-quests td:nth-child(2) { width: 20%; }

table.wikitablec.access-quests th:nth-child(3),
table.wikitablec.access-quests td:nth-child(3) { width: 14%; }

table.wikitablec.access-quests th:nth-child(4),
table.wikitablec.access-quests td:nth-child(4) { width: 12%; text-align: center; }

table.wikitablec.access-quests th:nth-child(5),
table.wikitablec.access-quests td:nth-child(5) { width: 22%; }

table.wikitablec.access-quests th:nth-child(6),
table.wikitablec.access-quests td:nth-child(6) { width: 10%; }

/* =========================
   Fatesend Main Page styling
   (iRO-like frames & titles)
   ========================= */

/* Main Page frames */
.iwMainFrame {
  border: 1px solid #a2a9b1;
  background: #fff;
  padding: 10px 12px;
  margin: 0 0 10px 0;
}

/* Main Page title bars */
.iwMainTitle {
  font-weight: 700;
  font-size: 120%;
  border-bottom: 1px solid #a2a9b1;
  padding: 4px 0 6px 0;
  margin: 0 0 8px 0;
}

/* Tighten lists on Main Page */
.iwMainFrame ul {
  margin: 0.4em 0 0.6em 1.2em;
}
.iwMainFrame li {
  margin: 0.15em 0;
}

/* Make the top welcome frame look a bit more "header-like" */
.MainPageTop .iwMainTitle {
  font-size: 140%;
}
.MainPageTop center {
  display: block;
  line-height: 1.35;
}

/* Optional: subtle divider */
.iwMainFrame hr {
  border: 0;
  border-top: 1px solid #eaecf0;
  margin: 10px 0;
}

/* Make small disclaimers readable */
.iwMainFrame small {
  font-size: 90%;
}

/* =========================
   Tables: match iRO feel
   ========================= */

table.wikitablec,
table.wikitable {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
}

table.wikitablec th,
table.wikitable th {
  background: #f2f2f2;
  border: 1px solid #a2a9b1;
  padding: 6px 8px;
  font-size: 90%;
  white-space: nowrap;
}

table.wikitablec td,
table.wikitable td {
  border: 1px solid #a2a9b1;
  padding: 6px 8px;
  vertical-align: top;
  font-size: 90%;
}

/* Hover */
table.wikitablec tr:hover td,
table.wikitable tr:hover td {
  background: #f9f9f9;
}

/* =========================
   Wide tables: allow scroll
   (use <div class="table-wrap"> ... </div> when needed)
   ========================= */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}


/* ===== Fatesend Main Page (Vector 2010 classic vibe) ===== */

.fsw-frame {
  border: 1px solid #a2a9b1;
  background: #f8f9fa;
  padding: 0;
  margin: 0 0 12px 0;
}

.fsw-head {
  background: #cedff2; /* classic wiki blue */
  border-bottom: 1px solid #a2a9b1;
  padding: 6px 10px;
  font-weight: bold;
  width: 100%;
}

.fsw-body {
  background: #ffffff;
  padding: 10px 12px;
}

.fsw-center {
  text-align: center;
}

.fsw-note {
  color: #54595d;
  font-size: 90%;
}

.fsw-alert {
  display: inline-block;
  background: #fff5f5;
  border: 1px solid #f2b8b5;
  padding: 6px 10px;
  color: #b32424;
}

/* tighten lists inside frames */
.fsw-body ul {
  margin: 0.25em 0 0.6em 1.2em;
}
.fsw-body li {
  margin: 0.15em 0;
}

/* Make Main Page table centered and not overly wide */
.fsw-main {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

/* Main Page container */
.fsw-main { width: 100%; margin: 0 auto; }