MediaWiki:Common.css: Difference between revisions

From Fatesend Wiki
Jump to navigation Jump to search
Created page with "CSS placed here will be applied to all skins: Prevent huge wiki tables from breaking layout: .wikitable, .wikitablec { max-width: 100%; } Make wide tables scroll horizontally on small screens: .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; } Common iRO-like table class - if missing, normalize it: table.wikitablec { border-collapse: collapse; width: 100%; } Tighter cell spacing like iRO: table.wikitablec th, table..."
 
No edit summary
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* =========================
  IMPORTANT: do NOT constrain page width (Vector 2010)
  ========================= */
.mw-body-content,
#mw-content-text,
#bodyContent {
  max-width: none !important;
  width: auto !important;
}
 
/* =========================
  iRO-like tables
  ========================= */
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;
}
 
table.sortable th {
  cursor: pointer;
}


/* Prevent huge wiki tables from breaking layout */
table.wikitablec tr:hover td,
.wikitable,
table.wikitable tr:hover td {
.wikitablec {
   background: #f9f9f9;
   max-width: 100%;
}
}


/* Make wide tables scroll horizontally on small screens */
/* 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: allow horizontal scroll when wrapped */
.table-wrap {
.table-wrap {
   overflow-x: auto;
   overflow-x: auto;
Line 13: Line 72:
}
}


/* Common iRO-like table class - if missing, normalize it */
/* Sidebar link spacing (Vector) */
table.wikitablec {
#mw-panel .portal .body li {
   border-collapse: collapse;
  margin: 0.15em 0;
   width: 100%;
}
 
/* =========================
  Main Page (Vector 2010 classic vibe)
  Uses: .fsw-frame .fsw-head .fsw-body
  ========================= */
.fsw-frame {
  border: 1px solid #a2a9b1;
  background: #ffffff;
  padding: 0;
  margin: 0 0 12px 0;
  box-sizing: border-box;
}
 
.fsw-head {
  background: #cedff2;          /* classic wiki blue */
  border-bottom: 1px solid #a2a9b1;
  padding: 6px 10px;
  font-weight: bold;
  box-sizing: border-box;
}
 
.fsw-body {
  background: #ffffff;
  padding: 10px 12px;
  box-sizing: border-box;
}
 
/* Center helper */
.fsw-center { text-align: center; }
 
/* Tighten spacing inside Main Page tiles (this fixes the “gaps under note/disclaimer”) */
.fsw-body p { margin: 0.15em 0; }
.fsw-body p:first-child { margin-top: 0; }
.fsw-body p:last-child { margin-bottom: 0; }
 
.fsw-body ul { margin: 0.15em 0 0.35em 1.2em; }
.fsw-body li { margin: 0.1em 0; }
 
/* Inline note (one line, no extra block spacing) */
.fsw-inline-note {
  display: inline;
  background: #f8f9fa;
   border: 1px solid #eaecf0;
  padding: 1px 5px;
  color: #54595d;
   font-size: 85%;
}
}


/* Tighter cell spacing like iRO */
/* Inline disclaimer (smaller than normal text, no extra block spacing) */
table.wikitablec th,
.fsw-alert {
table.wikitablec td,
  display: inline;
table.wikitable th,
  background: #fff5f5;
table.wikitable td {
  border: 1px solid #f2b8b5;
   padding: 4px 6px;
   padding: 2px 6px;
   vertical-align: top;
  border-radius: 4px;
   color: #b32424;
  font-size: 85%;
}
}


/* Optional: stabilize column widths */
/* “Server website” line: normal text, slightly bigger than disclaimer */
table.wikitablec {
.fsw-serverline {
   table-layout: fixed;
   font-size: 95%;
}
}
table.wikitablec th,
 
table.wikitablec td {
/* Prevent any weird header spill/overhang */
  word-wrap: break-word;
.fsw-frame, .fsw-head, .fsw-body {
   overflow-wrap: anywhere;
   overflow: hidden;
}
}

Latest revision as of 21:32, 26 January 2026

/* =========================
   IMPORTANT: do NOT constrain page width (Vector 2010)
   ========================= */
.mw-body-content,
#mw-content-text,
#bodyContent {
  max-width: none !important;
  width: auto !important;
}

/* =========================
   iRO-like tables
   ========================= */
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;
}

table.sortable th {
  cursor: pointer;
}

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: allow horizontal scroll when wrapped */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

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

/* =========================
   Main Page (Vector 2010 classic vibe)
   Uses: .fsw-frame .fsw-head .fsw-body
   ========================= */
.fsw-frame {
  border: 1px solid #a2a9b1;
  background: #ffffff;
  padding: 0;
  margin: 0 0 12px 0;
  box-sizing: border-box;
}

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

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

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

/* Tighten spacing inside Main Page tiles (this fixes the “gaps under note/disclaimer”) */
.fsw-body p { margin: 0.15em 0; }
.fsw-body p:first-child { margin-top: 0; }
.fsw-body p:last-child { margin-bottom: 0; }

.fsw-body ul { margin: 0.15em 0 0.35em 1.2em; }
.fsw-body li { margin: 0.1em 0; }

/* Inline note (one line, no extra block spacing) */
.fsw-inline-note {
  display: inline;
  background: #f8f9fa;
  border: 1px solid #eaecf0;
  padding: 1px 5px;
  color: #54595d;
  font-size: 85%;
}

/* Inline disclaimer (smaller than normal text, no extra block spacing) */
.fsw-alert {
  display: inline;
  background: #fff5f5;
  border: 1px solid #f2b8b5;
  padding: 2px 6px;
  border-radius: 4px;
  color: #b32424;
  font-size: 85%;
}

/* “Server website” line: normal text, slightly bigger than disclaimer */
.fsw-serverline {
  font-size: 95%;
}

/* Prevent any weird header spill/overhang */
.fsw-frame, .fsw-head, .fsw-body {
  overflow: hidden;
}