MediaWiki:Common.css: Difference between revisions

From Fatesend Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
/* iRO-like tables */
/* =========================
  iRO-like tables (classic)
  ========================= */
 
table.wikitablec,
table.wikitablec,
table.wikitable {
table.wikitable {
Line 7: Line 10:
}
}


/* Header */
table.wikitablec th,
table.wikitablec th,
table.wikitable th {
table.wikitable th {
Line 14: Line 16:
   padding: 6px 8px;
   padding: 6px 8px;
   font-size: 90%;
   font-size: 90%;
   white-space: nowrap; /* iRO-like headers */
   white-space: nowrap;
}
}


/* Cells */
table.wikitablec td,
table.wikitablec td,
table.wikitable td {
table.wikitable td {
Line 24: Line 25:
   vertical-align: top;
   vertical-align: top;
   font-size: 90%;
   font-size: 90%;
  overflow-wrap: normal;
  word-break: normal;
}
}


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


/* Row hover (subtle) */
/* Hover */
table.wikitablec tr:hover td,
table.wikitablec tr:hover td,
table.wikitable tr:hover td {
table.wikitable tr:hover td {
Line 37: Line 38:
}
}


/* Keep text readable, but don't force aggressive breaking */
/* Access Quests table tuning */
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 th:nth-child(1),
table.wikitablec.access-quests td:nth-child(1) { width: 22%; }
table.wikitablec.access-quests td:nth-child(1) { width: 22%; }
Line 62: Line 56:
table.wikitablec.access-quests th:nth-child(6),
table.wikitablec.access-quests th:nth-child(6),
table.wikitablec.access-quests td:nth-child(6) { width: 10%; }
table.wikitablec.access-quests td:nth-child(6) { width: 10%; }
/* Wide tables helper */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
/* =========================
  Vector 2010 / layout tweaks
  ========================= */
/* Don’t make content feel too wide (optional; keep classic) */
.mw-body-content { max-width: 1200px; }
/* Sidebar spacing (Vector 2010) */
#mw-panel .portal .body li { margin: 0.15em 0; }


/* =========================
/* =========================
   Fatesend Main Page styling
   (Optional legacy classes)
   (iRO-like frames & titles)
   If any old iRO-like main page pieces still use these
   ========================= */
   ========================= */


/* Main Page frames */
.iwMainFrame {
.iwMainFrame {
   border: 1px solid #a2a9b1;
   border: 1px solid #a2a9b1;
Line 76: Line 85:
}
}


/* Main Page title bars */
.iwMainTitle {
.iwMainTitle {
   font-weight: 700;
   font-weight: 700;
Line 85: Line 93:
}
}


/* Tighten lists on Main Page */
.iwMainFrame ul { margin: 0.4em 0 0.6em 1.2em; }
.iwMainFrame ul {
.iwMainFrame li { margin: 0.15em 0; }
  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 .iwMainTitle {
.MainPageTop center { display: block; line-height: 1.35; }
  font-size: 140%;
}
.MainPageTop center {
  display: block;
  line-height: 1.35;
}


/* Optional: subtle divider */
.iwMainFrame hr {
.iwMainFrame hr {
   border: 0;
   border: 0;
Line 109: Line 105:
}
}


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


/* =========================
/* =========================
   Tables: match iRO feel
   Fatesend Main Page (Vector 2010 classic vibe)
   ========================= */
   ========================= */


table.wikitablec,
.fsw-main {
table.wikitable {
  border-collapse: collapse;
   width: 100%;
   width: 100%;
   background: #fff;
   max-width: 100%;
}
   margin: 0 auto;
 
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 */
/* Outer “card” frame */
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 {
.fsw-frame {
   border: 1px solid #a2a9b1;
   border: 1px solid #a2a9b1;
Line 165: Line 123:
   padding: 0;
   padding: 0;
   margin: 0 0 12px 0;
   margin: 0 0 12px 0;
  box-sizing: border-box;
}
}


/* Blue title bar */
.fsw-head {
.fsw-head {
   background: #cedff2; /* classic wiki blue */
   background: #cedff2;
   border-bottom: 1px solid #a2a9b1;
   border-bottom: 1px solid #a2a9b1;
   padding: 6px 10px;
   padding: 6px 10px;
   font-weight: bold;
   font-weight: bold;
  margin: 0;
  box-sizing: border-box;
}
}


/* Body: tighter to avoid “empty gaps” */
.fsw-body {
.fsw-body {
   background: #ffffff;
   background: #fff;
   padding: 10px 12px;
   padding: 8px 10px;    /* smaller than before */
  line-height: 1.25;    /* tighter lines */
  box-sizing: border-box;
}
}


.fsw-center {
/* Kill default paragraph/list spacing inside main page tiles */
  text-align: center;
.fsw-body p { margin: 0; }
}
.fsw-body ul { margin: 0.2em 0 0.35em 1.2em; }
.fsw-body li { margin: 0.1em 0; }
 
/* IMPORTANT: don’t let <br> create “fat” empty space */
.fsw-body br { line-height: 0; }


.fsw-note {
/* Alignment */
  color: #54595d;
.fsw-center { text-align: center; }
  font-size: 90%;
}


/* Disclaimer: inline, small, no extra vertical block spacing */
.fsw-alert {
.fsw-alert {
   display: inline-block;
   display: inline;
   background: #fff5f5;
   background: #fff5f5;
   border: 1px solid #f2b8b5;
   border: 1px solid #f2b8b5;
   padding: 6px 10px;
   padding: 1px 5px;
   color: #b32424;
   color: #b32424;
  font-size: 85%;
  border-radius: 3px;
  margin: 0;
}
}


/* tighten lists inside frames */
/* Note: inline, small, same-line with content */
.fsw-body ul {
.fsw-inline-note {
  margin: 0.25em 0 0.6em 1.2em;
   display: inline;
}
.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; }
 
/* Fix header overflow + classic inner spacing */
.fsw-frame, .fsw-head, .fsw-body {
  box-sizing: border-box;
}
 
.fsw-head {
  display: block;
  width: auto;          /* IMPORTANT: don't force 100% */
  margin: 0;            /* no weird spill */
}
 
/* Reduce random empty gaps caused by paragraphs/lists */
.fsw-body p {
  margin: 0.35em 0;
}
.fsw-body ul {
  margin: 0.3em 0 0.6em 1.2em;
}
.fsw-body li {
  margin: 0.15em 0;
}
 
/* Small “sub-panels” inside boxes (for Notes / grouped links) */
.fsw-subbox {
  border: 1px solid #eaecf0;
  background: #f8f9fa;
  padding: 8px 10px;
  margin: 8px 0;
}
 
.fsw-subtitle {
  font-weight: bold;
  margin: 0 0 4px 0;
}
/* Inline note inside tiles (no extra boxes) */
.fsw-inline-note{
   display:inline-block;
  margin: 6px 0 0 0;
  padding: 2px 6px;
   background: #f8f9fa;
   background: #f8f9fa;
   border: 1px solid #eaecf0;
   border: 1px solid #eaecf0;
  padding: 1px 5px;
   color: #54595d;
   color: #54595d;
   font-size: 90%;
   font-size: 85%;
  border-radius: 3px;
  margin: 0;
}
}


/* Reduce vertical gaps inside fsw-body */
/* Optional muted text */
.fsw-body p { margin: 0.25em 0; }
.fsw-note { color: #54595d; font-size: 90%; }
.fsw-body ul { margin: 0.2em 0 0.4em 1.2em; }
.fsw-body li { margin: 0.1em 0; }
 
/* Smaller disclaimer box */
.fsw-alert{
  background:#fff5f5;
  border:1px solid #f2b8b5;
  padding:3px 6px;
  border-radius:4px;
  color:#b32424;
  font-size:85%;
  display:inline;
}
 
/* Inline note (no extra vertical gaps) */
.fsw-inline-note{
  background:#f8f9fa;
  border:1px solid #eaecf0;
  padding:1px 5px;
  color:#54595d;
  font-size:85%;
  display:inline;
}


/* Reduce accidental spacing from paragraphs/lists inside tiles */
/* Make external links not explode layout */
.fsw-body p{ margin:0.15em 0; }
.fsw-body a.external { word-break: break-word; }
.fsw-body ul{ margin:0.15em 0 0.35em 1.2em; }
.fsw-body li{ margin:0.1em 0; }

Revision as of 21:20, 26 January 2026

/* =========================
   iRO-like tables (classic)
   ========================= */

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%;
  overflow-wrap: normal;
  word-break: normal;
}

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

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

/* Access Quests table tuning */
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%; }

/* Wide tables helper */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* =========================
   Vector 2010 / layout tweaks
   ========================= */

/* Don’t make content feel too wide (optional; keep classic) */
.mw-body-content { max-width: 1200px; }

/* Sidebar spacing (Vector 2010) */
#mw-panel .portal .body li { margin: 0.15em 0; }

/* =========================
   (Optional legacy classes)
   If any old iRO-like main page pieces still use these
   ========================= */

.iwMainFrame {
  border: 1px solid #a2a9b1;
  background: #fff;
  padding: 10px 12px;
  margin: 0 0 10px 0;
}

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

.iwMainFrame ul { margin: 0.4em 0 0.6em 1.2em; }
.iwMainFrame li { margin: 0.15em 0; }

.MainPageTop .iwMainTitle { font-size: 140%; }
.MainPageTop center { display: block; line-height: 1.35; }

.iwMainFrame hr {
  border: 0;
  border-top: 1px solid #eaecf0;
  margin: 10px 0;
}

.iwMainFrame small { font-size: 90%; }

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

.fsw-main {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

/* Outer “card” frame */
.fsw-frame {
  border: 1px solid #a2a9b1;
  background: #f8f9fa;
  padding: 0;
  margin: 0 0 12px 0;
  box-sizing: border-box;
}

/* Blue title bar */
.fsw-head {
  background: #cedff2;
  border-bottom: 1px solid #a2a9b1;
  padding: 6px 10px;
  font-weight: bold;
  margin: 0;
  box-sizing: border-box;
}

/* Body: tighter to avoid “empty gaps” */
.fsw-body {
  background: #fff;
  padding: 8px 10px;     /* smaller than before */
  line-height: 1.25;     /* tighter lines */
  box-sizing: border-box;
}

/* Kill default paragraph/list spacing inside main page tiles */
.fsw-body p { margin: 0; }
.fsw-body ul { margin: 0.2em 0 0.35em 1.2em; }
.fsw-body li { margin: 0.1em 0; }

/* IMPORTANT: don’t let <br> create “fat” empty space */
.fsw-body br { line-height: 0; }

/* Alignment */
.fsw-center { text-align: center; }

/* Disclaimer: inline, small, no extra vertical block spacing */
.fsw-alert {
  display: inline;
  background: #fff5f5;
  border: 1px solid #f2b8b5;
  padding: 1px 5px;
  color: #b32424;
  font-size: 85%;
  border-radius: 3px;
  margin: 0;
}

/* Note: inline, small, same-line with content */
.fsw-inline-note {
  display: inline;
  background: #f8f9fa;
  border: 1px solid #eaecf0;
  padding: 1px 5px;
  color: #54595d;
  font-size: 85%;
  border-radius: 3px;
  margin: 0;
}

/* Optional muted text */
.fsw-note { color: #54595d; font-size: 90%; }

/* Make external links not explode layout */
.fsw-body a.external { word-break: break-word; }