MediaWiki:Common.css: Difference between revisions

From Fatesend Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* iRO-like tables */
/* =========================
  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.wikitablec,
table.wikitable {
table.wikitable {
Line 7: Line 19:
}
}


/* Header */
table.wikitablec th,
table.wikitablec th,
table.wikitable th {
table.wikitable th {
Line 14: Line 25:
   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 34:
   vertical-align: top;
   vertical-align: top;
   font-size: 90%;
   font-size: 90%;
  overflow-wrap: normal;
  word-break: normal;
}
}


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


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


/* 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 63: Line 66:
table.wikitablec.access-quests td:nth-child(6) { width: 10%; }
table.wikitablec.access-quests td:nth-child(6) { width: 10%; }


/* =========================
/* Wide tables: allow horizontal scroll when wrapped */
  Fatesend Main Page styling
.table-wrap {
  (iRO-like frames & titles)
   overflow-x: auto;
  ========================= */
   -webkit-overflow-scrolling: touch;
 
/* 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 */
/* Sidebar link spacing (Vector) */
.iwMainFrame ul {
#mw-panel .portal .body li {
  margin: 0.4em 0 0.6em 1.2em;
}
.iwMainFrame li {
   margin: 0.15em 0;
   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
   Main Page (Vector 2010 classic vibe)
   (use <div class="table-wrap"> ... </div> when needed)
   Uses: .fsw-frame .fsw-head .fsw-body
   ========================= */
   ========================= */
.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;
   background: #f8f9fa;
   background: #ffffff;
   padding: 0;
   padding: 0;
   margin: 0 0 12px 0;
   margin: 0 0 12px 0;
  box-sizing: border-box;
}
}


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


Line 178: Line 100:
   background: #ffffff;
   background: #ffffff;
   padding: 10px 12px;
   padding: 10px 12px;
  box-sizing: border-box;
}
}


.fsw-center {
/* Center helper */
  text-align: center;
.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; }


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


/* Inline disclaimer (smaller than normal text, no extra 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: 2px 6px;
  border-radius: 4px;
   color: #b32424;
   color: #b32424;
  font-size: 85%;
}
}


/* tighten lists inside frames */
/* “Server website” line: normal text, slightly bigger than disclaimer */
.fsw-body ul {
.fsw-serverline {
   margin: 0.25em 0 0.6em 1.2em;
   font-size: 95%;
}
.fsw-body li {
  margin: 0.15em 0;
}
}


/* Make Main Page table centered and not overly wide */
/* Prevent any weird header spill/overhang */
.fsw-main {
.fsw-frame, .fsw-head, .fsw-body {
   width: 100%;
   overflow: hidden;
  max-width: 100%;
  margin: 0 auto;
}
}
/* Main Page container */
.fsw-main { width: 100%; margin: 0 auto; }

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