MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
Superadmin (talk | contribs) No edit summary |
Superadmin (talk | contribs) No edit summary |
||
| Line 62: | Line 62: | ||
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%; } | ||
/* ========================= | |||
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; | |||
} | |||
/* ========================= | |||
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; | |||
} | |||
Revision as of 20:50, 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;
}
/* =========================
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;
}