MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
Lighten dark background |
Import P:G wiki styles adapted for dark theme |
||
| Line 1: | Line 1: | ||
/* === SAS Gaming Wiki — Common.css === */ | |||
/* Lighten dark theme background — closer to Vikunja dark gray */ | /* Lighten dark theme background — closer to Vikunja dark gray */ | ||
:root.skin-citizen-dark, | :root.skin-citizen-dark, | ||
| Line 17: | Line 19: | ||
--color-surface-0-hsl__s: 20% !important; | --color-surface-0-hsl__s: 20% !important; | ||
} | } | ||
/* === P:G Imported Styles (adapted for dark theme) === */ | |||
/* Infobox header image + title */ | |||
.ib-tbl-hd { width:100%; height:29px; } | |||
.ib-tbl-hd img { display:block; width:100%; height:29px; border:none; } | |||
.ib-tbl-hdt { width:100%; font:bold 19px/1em Arial; text-align:center; position:absolute; left:0; top:13px; border-radius:2px; } | |||
.ib-tbl-hdt, .ib-tbl-hdt a, .ib-tbl-hdt a:visited { color:#eaeaea; } | |||
/* Infobox content blocks */ | |||
.block1 { background-color:#2a1f1a; color:#d4b896; } | |||
.block2 a:link, .block2 a:visited { color:#e5b964; } | |||
/* Item tooltip template */ | |||
.gg-itemt { border:1px solid #423930; width:400px; padding:6px; background:#0e0a08; color:#b09066; text-align:left; } | |||
.gg-itemt p { font:13px/15px Arial, sans-serif; color:#b09066; margin:0 0 7px; } | |||
.gg-itemt-hd { position:relative; padding:0 0 0 47px; min-height:40px; overflow:visible; } | |||
.gg-itemt-img { position:absolute; left:0; top:0; width:32px; height:32px; padding:3px; overflow:hidden; background:#0f0c0a; border:1px solid #1d1713; } | |||
.gg-itemt-img img { display:block; border:none; width:32px; height:32px; } | |||
.gg-itemt .gg-hd { | |||
font:bold 16px/1.1em "Book Antiqua", Palatino, "Palatino Linotype", "Palatino LT STD", Georgia, serif; | |||
color:#fff; white-space:nowrap; margin:0 0 8px; padding:0; | |||
} | |||
.gg-itemt dl { margin:0; padding:0; } | |||
.gg-itemt dt { margin:0; padding:0 0 9px 0; } | |||
.gg-itemt dd { margin:0 0 0 15px; padding:0 0 9px 0; line-height:14px; } | |||
/* Icon tooltips */ | |||
.gg-icon-tt { | |||
position:absolute; border:1px solid #423930; padding:6px 10px; background:#0e0a08; margin:0 0 7px; white-space:nowrap; | |||
font:bold 16px/1.1em "Book Antiqua", Palatino, "Palatino Linotype", "Palatino LT STD", Georgia, serif; color:#fff; | |||
box-shadow:0 0 3px rgba(0,0,0,.3); | |||
} | |||
/* Main page table headers */ | |||
.gg-tbl-hd { width:100%; height:29px; background:#6B21A8; } | |||
.gg-tbl-hd img { display:block; width:100%; height:29px; border:none; } | |||
.gg-tbl-hdt { width:100%; font:bold 15px/1em Georgia,serif; text-align:center; position:absolute; left:0; top:8px; } | |||
.gg-tbl-hdt, .gg-tbl-hdt a, .gg-tbl-hdt a:visited { color:#eaeaea; } | |||
/* Light bullet lists */ | |||
.gg-light-bullets li { list-style-image:none; color:#ccc; } | |||
/* Common tables */ | |||
.table { margin:10px 0; border-collapse:collapse; border:1px solid #444; font-size:12px; } | |||
.table th { background:#2a2040; border-bottom:1px solid #555; padding:0.25em; color:#ddd; } | |||
.table td { padding:0.25em 0.5em; } | |||
.table > tbody > tr:nth-child(even) { background:rgba(255,255,255,0.03); } | |||
table.zebra > tbody > tr:nth-child(even) { background:rgba(255,255,255,0.05); } | |||
/* Ambox (message boxes) */ | |||
.ambox { | |||
font-size:95%; width:80%; margin:0 auto; | |||
border:1px solid #555; border-left:10px solid #228b22; | |||
border-collapse:collapse; background:#1a1a2e; color:#ddd; | |||
} | |||
.ambox a { color:#e5b964; } | |||
.ambox-blue { border-left-color:#1e90ff; } | |||
.ambox-red { border-left-color:#b22222; } | |||
.ambox-orange { border-left-color:#f28500; } | |||
.ambox-yellow { border-left-color:#f4c430; } | |||
.ambox-purple { border-left-color:#9932cc; } | |||
.ambox-gray { border-left-color:#888; } | |||
.ambox-green { border-left-color:#228b22; } | |||
.ambox-smalltext { font-size:smaller; margin-top:0.5em; margin-left:0.8em; } | |||
.ambox-image { width:60px; padding:2px 0 2px 0.5em; text-align:center; } | |||
@media print { .ambox { display:none; } } | |||
/* Spoiler boxes */ | |||
.spoilbox { | |||
padding:2px; margin:3px 0; width:100%; | |||
border-radius:0 0 10px 10px; border:0 solid #1e1615; | |||
text-align:left; background:#2a1f1a; color:#d4b896; font-weight:bold; | |||
} | |||
.spoilbox a:visited, .spoilbox a.external:visited, .spoilbox a:link { color:#e5b964; } | |||
.mw-collapsible-toggle a { color:#e5b964; } | |||
/* External image sizing */ | |||
.extimage16px img { width:16px; } | |||
.extimage32px img { width:32px; } | |||
.extimage64px img { width:64px; } | |||
/* Keyboard keys */ | |||
kbd { | |||
border:2px solid #555; color:#eee; border-radius:.5em; | |||
background-color:#2a2a3e; padding:2px; | |||
} | |||
/* Documentation template */ | |||
.template-documentation .color1, | |||
#bodyContent .template-documentation .color1 a, | |||
#bodyContent .template-documentation .color1 a.external { background-color:#36C; color:white; } | |||
/* Hide main page title */ | |||
body.page-Main_Page .mw-page-title { display:none; } | |||
Latest revision as of 21:31, 7 April 2026
/* === SAS Gaming Wiki — Common.css === */
/* Lighten dark theme background — closer to Vikunja dark gray */
:root.skin-citizen-dark,
:root[data-theme="dark"],
:root.skin-theme-clientpref-night,
html.skin-citizen-dark {
--color-surface-0-oklch__l: 18% !important;
--color-surface-0-oklch__c: 0.015 !important;
--color-surface-0-hsl__l: 10% !important;
--color-surface-0-hsl__s: 20% !important;
}
/* Also override pure-black mode for any user who has it enabled */
:root.citizen-feature-pure-black-clientpref-1 {
--color-surface-0-oklch__l: 18% !important;
--color-surface-0-oklch__c: 0.015 !important;
--color-surface-0-hsl__l: 10% !important;
--color-surface-0-hsl__s: 20% !important;
}
/* === P:G Imported Styles (adapted for dark theme) === */
/* Infobox header image + title */
.ib-tbl-hd { width:100%; height:29px; }
.ib-tbl-hd img { display:block; width:100%; height:29px; border:none; }
.ib-tbl-hdt { width:100%; font:bold 19px/1em Arial; text-align:center; position:absolute; left:0; top:13px; border-radius:2px; }
.ib-tbl-hdt, .ib-tbl-hdt a, .ib-tbl-hdt a:visited { color:#eaeaea; }
/* Infobox content blocks */
.block1 { background-color:#2a1f1a; color:#d4b896; }
.block2 a:link, .block2 a:visited { color:#e5b964; }
/* Item tooltip template */
.gg-itemt { border:1px solid #423930; width:400px; padding:6px; background:#0e0a08; color:#b09066; text-align:left; }
.gg-itemt p { font:13px/15px Arial, sans-serif; color:#b09066; margin:0 0 7px; }
.gg-itemt-hd { position:relative; padding:0 0 0 47px; min-height:40px; overflow:visible; }
.gg-itemt-img { position:absolute; left:0; top:0; width:32px; height:32px; padding:3px; overflow:hidden; background:#0f0c0a; border:1px solid #1d1713; }
.gg-itemt-img img { display:block; border:none; width:32px; height:32px; }
.gg-itemt .gg-hd {
font:bold 16px/1.1em "Book Antiqua", Palatino, "Palatino Linotype", "Palatino LT STD", Georgia, serif;
color:#fff; white-space:nowrap; margin:0 0 8px; padding:0;
}
.gg-itemt dl { margin:0; padding:0; }
.gg-itemt dt { margin:0; padding:0 0 9px 0; }
.gg-itemt dd { margin:0 0 0 15px; padding:0 0 9px 0; line-height:14px; }
/* Icon tooltips */
.gg-icon-tt {
position:absolute; border:1px solid #423930; padding:6px 10px; background:#0e0a08; margin:0 0 7px; white-space:nowrap;
font:bold 16px/1.1em "Book Antiqua", Palatino, "Palatino Linotype", "Palatino LT STD", Georgia, serif; color:#fff;
box-shadow:0 0 3px rgba(0,0,0,.3);
}
/* Main page table headers */
.gg-tbl-hd { width:100%; height:29px; background:#6B21A8; }
.gg-tbl-hd img { display:block; width:100%; height:29px; border:none; }
.gg-tbl-hdt { width:100%; font:bold 15px/1em Georgia,serif; text-align:center; position:absolute; left:0; top:8px; }
.gg-tbl-hdt, .gg-tbl-hdt a, .gg-tbl-hdt a:visited { color:#eaeaea; }
/* Light bullet lists */
.gg-light-bullets li { list-style-image:none; color:#ccc; }
/* Common tables */
.table { margin:10px 0; border-collapse:collapse; border:1px solid #444; font-size:12px; }
.table th { background:#2a2040; border-bottom:1px solid #555; padding:0.25em; color:#ddd; }
.table td { padding:0.25em 0.5em; }
.table > tbody > tr:nth-child(even) { background:rgba(255,255,255,0.03); }
table.zebra > tbody > tr:nth-child(even) { background:rgba(255,255,255,0.05); }
/* Ambox (message boxes) */
.ambox {
font-size:95%; width:80%; margin:0 auto;
border:1px solid #555; border-left:10px solid #228b22;
border-collapse:collapse; background:#1a1a2e; color:#ddd;
}
.ambox a { color:#e5b964; }
.ambox-blue { border-left-color:#1e90ff; }
.ambox-red { border-left-color:#b22222; }
.ambox-orange { border-left-color:#f28500; }
.ambox-yellow { border-left-color:#f4c430; }
.ambox-purple { border-left-color:#9932cc; }
.ambox-gray { border-left-color:#888; }
.ambox-green { border-left-color:#228b22; }
.ambox-smalltext { font-size:smaller; margin-top:0.5em; margin-left:0.8em; }
.ambox-image { width:60px; padding:2px 0 2px 0.5em; text-align:center; }
@media print { .ambox { display:none; } }
/* Spoiler boxes */
.spoilbox {
padding:2px; margin:3px 0; width:100%;
border-radius:0 0 10px 10px; border:0 solid #1e1615;
text-align:left; background:#2a1f1a; color:#d4b896; font-weight:bold;
}
.spoilbox a:visited, .spoilbox a.external:visited, .spoilbox a:link { color:#e5b964; }
.mw-collapsible-toggle a { color:#e5b964; }
/* External image sizing */
.extimage16px img { width:16px; }
.extimage32px img { width:32px; }
.extimage64px img { width:64px; }
/* Keyboard keys */
kbd {
border:2px solid #555; color:#eee; border-radius:.5em;
background-color:#2a2a3e; padding:2px;
}
/* Documentation template */
.template-documentation .color1,
#bodyContent .template-documentation .color1 a,
#bodyContent .template-documentation .color1 a.external { background-color:#36C; color:white; }
/* Hide main page title */
body.page-Main_Page .mw-page-title { display:none; }