MediaWiki:Timeless.css: Unterschied zwischen den Versionen
Aus Pyrathor
Faern (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Faern (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| (5 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 27: | Zeile 27: | ||
--dnd-header-bg: #bb3131; | --dnd-header-bg: #bb3131; | ||
--dnd-header-light-bg: #ca936f; | --dnd-header-light-bg: #ca936f; | ||
--pi-background:var(--dnd-paper-light); | |||
--pi-secondary-background:var(--dnd-red-light); | |||
--pi-secondary-background--label:var(--dnd-header-text); | |||
--pi-border-color:rgba(var(--dnd-red-dark),0.5); | |||
--pi-item-spacing: 3px 6px; | |||
--pi-caption-color: #333; | |||
} | } | ||
/* ============================================================ 2. PAGE / PARCHMENT ============================================================ */ | /* ============================================================ 2. PAGE / PARCHMENT ============================================================ */ | ||
html, body { | html, body { | ||
| Zeile 108: | Zeile 115: | ||
.mw-body .mw-heading h2 { | .mw-body .mw-heading h2 { | ||
color: var(--dnd-red); | color: var(--dnd-red); | ||
padding-bottom: 0.12em; | padding-bottom: 0.12em; | ||
margin-top: 1.5em; | margin-top: 1.5em; | ||
position: relative; | position: relative; | ||
} | |||
.mw-body .mw-heading2 { | |||
border-bottom: 2px solid var(--dnd-gold); | |||
} | } | ||
/* Decorative little diamond */ | /* Decorative little diamond */ | ||
| Zeile 125: | Zeile 133: | ||
.mw-body .mw-heading h3 { | .mw-body .mw-heading h3 { | ||
color: var(--dnd-brown-dark); | color: var(--dnd-brown-dark); | ||
} | } | ||
/* H4 */ | /* H4 */ | ||
| Zeile 145: | Zeile 150: | ||
} | } | ||
/* ============================================ 4. Captilize first letter in article ================================================ */ | /* ============================================ 4. Captilize first letter in article ================================================ */ | ||
.mw-parser-output > p:first- | .mw-parser-output > p:first-of-type::first-letter { | ||
font-size: 1.5em; | font-size: 1.5em; | ||
line-height: 0.8; | line-height: 0.8; | ||
| Zeile 660: | Zeile 665: | ||
color: var(--dnd-ink-light); | color: var(--dnd-ink-light); | ||
font-style: italic; | font-style: italic; | ||
} | |||
/* thumbnail boxes and frames */ | |||
figure[typeof~="mw:File/Thumb"] > :not(figcaption) .mw-file-element, figure[typeof~="mw:File/Frame"] > :not(figcaption) .mw-file-element { | |||
margin: 0; | |||
} | |||
figure[typeof~="mw:File/Thumb"] > figcaption { | |||
font-size: 0.75em; | |||
padding: 0 0.5em 0.5em 0.5em;; | |||
} | } | ||
/* ============================================================ 21. GALLERY ============================================================ */ | /* ============================================================ 21. GALLERY ============================================================ */ | ||
Aktuelle Version vom 28. September 2026, 22:58 Uhr
/* CSS an dieser Stelle wird für Benutzer geladen, die die Benutzeroberfläche „Timeless“ verwenden */
/* ============================================================
D&D 5e INSPIRED — TIMELESS SKIN
------------------------------------------------------------
A parchment / fantasy sourcebook theme for MediaWiki.
============================================================ */
/* ============================================================ 1. GLOBAL VARIABLES ============================================================ */
:root {
--dnd-paper: #efe2c0;
--dnd-paper-light: #f7edcf;
--dnd-paper-dark: #d7c294;
--dnd-paper-deep: #c6ad78;
--dnd-ink: #30251d;
--dnd-ink-light: #55463a;
--dnd-brown: #5a3925;
--dnd-brown-dark: #3e2719;
--dnd-red: #7b2d26;
--dnd-red-dark: #57201c;
--dnd-red-light: #9b4036;
--dnd-gold: #9a742c;
--dnd-gold-light: #c09a4a;
--dnd-border: #795436;
--dnd-shadow: rgba(55, 35, 15, 0.20);
--dnd-header-text: #ffffff;
--dnd-header-bg: #bb3131;
--dnd-header-light-bg: #ca936f;
--pi-background:var(--dnd-paper-light);
--pi-secondary-background:var(--dnd-red-light);
--pi-secondary-background--label:var(--dnd-header-text);
--pi-border-color:rgba(var(--dnd-red-dark),0.5);
--pi-item-spacing: 3px 6px;
--pi-caption-color: #333;
}
/* ============================================================ 2. PAGE / PARCHMENT ============================================================ */
html, body {
background-color: var(--dnd-paper);
color: var(--dnd-ink);
}
/* Background image (only visible wide windows) */
@media screen and (min-width: 1100px){
#mw-wrapper {
background-image: url(/w/images/a/a9/Site-Background.jpg);
background-size: contain;
}
}
/* Logo size */
@media screen and (min-width: 851px) {
.mw-wiki-logo.timeless-logo img {
width: 200px;
margin: 0;
}
}
/* Main content paper */
#mw-content {
background:
/* subtle paper grain */
repeating-linear-gradient(
0deg,
rgba(80, 50, 20, 0.025) 0,
rgba(80, 50, 20, 0.025) 1px,
transparent 1px,
transparent 4px
),
/* edge darkening */
radial-gradient(
ellipse at center,
transparent 55%,
rgba(100, 65, 25, 0.12) 100%
),
/* parchment color */
linear-gradient(
135deg,
#f6e8c5,
#ead3a5
);
border: 1px solid #b18c55;
border-radius: 5px;
box-shadow:
0 3px 12px rgba(50, 35, 15, 0.25),
inset 0 0 25px rgba(90, 55, 20, 0.10);
padding: 2rem;
}
#mw-content-text {
color: var(--dnd-ink);
}
/* ============================================================ 3. TYPOGRAPHY ============================================================ */
body, .mw-body {
font-size: 16px;
line-height: 1.55;
}
/* Headings */
h1, h2, h3, h4, h5, h6 {
color: var(--dnd-red-dark);
font-weight: bold;
}
/* Main page title */
.firstHeading {
color: var(--dnd-red-dark);
letter-spacing: 0.015em;
text-shadow: 1px 1px 0 rgba(255, 245, 215, 0.6);
border-bottom: 3px solid var(--dnd-red) !important;
padding-bottom: 0.1em;
margin-bottom: 0.7em;
}
/* H2 */
.mw-body .mw-heading h2 {
color: var(--dnd-red);
padding-bottom: 0.12em;
margin-top: 1.5em;
position: relative;
}
.mw-body .mw-heading2 {
border-bottom: 2px solid var(--dnd-gold);
}
/* Decorative little diamond */
.mw-body .mw-heading h2::after {
content: "◆";
color: var(--dnd-gold);
font-size: 0.45em;
margin-left: 0.6em;
vertical-align: middle;
}
/* H3 */
.mw-body .mw-heading h3 {
color: var(--dnd-brown-dark);
}
/* H4 */
.mw-body .mw-heading h4, .mw-body .mw-heading h5, .mw-body .mw-heading h6 {
color: var(--dnd-brown);
}
/* Links */
a, a:visited {
color: var(--dnd-red);
}
a:hover {
color: var(--dnd-red-dark);
}
/* External links */
a.external {
color: var(--dnd-red);
}
/* ============================================ 4. Captilize first letter in article ================================================ */
.mw-parser-output > p:first-of-type::first-letter {
font-size: 1.5em;
line-height: 0.8;
color: var(--dnd-red);
font-weight: bold;
}
/* ============================================================ 5. HEADER ============================================================ */
/* Header colors */
#mw-header-container, #mw-header-container h2 span, #p-logo-text #p-banner {
color: var(--dnd-header-text) !important;
}
#mw-header-container {
z-index: 203; /* Overlap on "tablet resolutions" fix */
}
#mw-header-hack {
box-shadow: none;
}
#mw-header-container, .color-left, .color-middle, .color-right {
background: var(--dnd-header-bg);
}
#mw-header-nav-hack {
background: var(--dnd-header-light-bg);
}
/* Search */
#p-search #searchInput {
background-color: var(--dnd-paper-light);
color: var(--dnd-ink);
border: 1px solid var(--dnd-brown);
border-radius: 0;
}
#p-search #searchInput:focus {
border-color: var(--dnd-red);
box-shadow: 0 0 4px rgba(123, 45, 38, 0.25);
}
/* Make the SVG notification icons in the top right white */
#personal-extra li a {
filter: invert(100%) sepia(0%) brightness(1000%) contrast(100%);
}
/* Replace gear, hamburger menu and person icons with white one (mobile only) */
@media screen and (max-width: 850px) {
/* replace gear icon */
#site-tools h2 {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg' width='30' height='30' viewBox='0 0 28.147 28.147'%3E%3Cpath fill='%23fff' d='M13.64 2.814a1.74 1.74 0 0 0-1.743 1.743v1.134A9.6 9.6 0 0 0 9.01 6.883l-.789-.788a1.737 1.737 0 0 0-2.464 0l-.615.617a1.74 1.74 0 0 0 0 2.464l.795.794a9.6 9.6 0 0 0-1.187 2.864H3.62a1.74 1.74 0 0 0-1.745 1.742v.871a1.74 1.74 0 0 0 1.743 1.743h1.134a9.6 9.6 0 0 0 1.192 2.885l-.803.804a1.74 1.74 0 0 0 0 2.466l.615.615a1.74 1.74 0 0 0 2.464 0l.812-.811a9.6 9.6 0 0 0 2.862 1.186v1.132a1.74 1.74 0 0 0 1.743 1.742h.871a1.74 1.74 0 0 0 1.742-1.742v-1.134a9.6 9.6 0 0 0 2.866-1.181l.809.809a1.74 1.74 0 0 0 2.465 0l.616-.616a1.74 1.74 0 0 0 0-2.466l-.808-.809a9.6 9.6 0 0 0 1.198-2.88h1.131a1.74 1.74 0 0 0 1.743-1.743v-.87a1.74 1.74 0 0 0-1.743-1.743h-1.134a9.6 9.6 0 0 0-1.18-2.866l.793-.792a1.74 1.74 0 0 0 0-2.464l-.615-.617a1.74 1.74 0 0 0-2.466 0l-.792.791a9.6 9.6 0 0 0-2.883-1.197V4.557a1.74 1.74 0 0 0-1.74-1.743zm.56 6.97a5.102 5.227 0 0 1 5.102 5.228 5.102 5.227 0 0 1-5.101 5.227 5.102 5.227 0 0 1-5.102-5.227A5.102 5.227 0 0 1 14.2 9.784' opacity='.9'/%3E%3C%2Fsvg%3E");
}
/* replace hamburger menu icon */
#site-navigation h2 {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg' width='30' height='30' viewBox='0 0 28.147 28.147'%3E%3Cg fill='%23fff' opacity='.9'%3E%3Crect width='22.518' height='4.691' x='2.815' y='2.815' rx='1.465' ry='1.465'/%3E%3Crect width='22.518' height='4.691' x='2.815' y='12.197' rx='1.465' ry='1.465'/%3E%3Crect width='22.518' height='4.691' x='2.815' y='21.58' rx='1.465' ry='1.465'/%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
/* replace person icon */
#personal h2 {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg' width='30' height='30' viewBox='0 0 28.147 28.147'%3E%3Cpath fill='%23fff' d='M5.104 12.915c-2.477 3.345-2.756 6.998-1.729 9.42.689 1.652 1.661 2.62 2.802 3.207 1.114.6 2.462.727 3.659.729h8.911c1.297 0 2.606-.29 3.732-.944 1.126-.655 2.056-1.68 2.534-3.206.69-2.17.375-5.642-2.083-9.045-.01.017-.03.026-.04.041a10.568 10.51 0 0 1-8.827 4.746 10.568 10.51 0 0 1-8.96-4.948z' opacity='.9'/%3E%3Cpath fill='%23fff' d='M14.073 2.728c-3.109 0-5.629 2.449-5.629 5.467s2.52 5.465 5.63 5.465c3.108 0 5.63-2.447 5.63-5.465s-2.522-5.465-5.63-5.465z' opacity='.9'/%3E%3C%2Fsvg%3E");
}
/* replace arrow down icon */
#user-tools h2::after, .sidebar-chunk h2::after {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg' width='22' height='16'%3E%3Cpath fill='%23fff' d='m15.5 6-5 5-5-5z' opacity='.9'/%3E%3C%2Fsvg%3E");
}
}
/* Replace icons in header with white ones (desktop only) */
@media screen and (min-width: 851px) {
/* replace person icon */
#personal h2 {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg' width='20' height='20'%3E%3Cpath fill='%23fff' d='M3.643 9.46c-1.758 2.39-1.957 5-1.227 6.729.49 1.18 1.18 1.871 1.99 2.29.792.429 1.75.518 2.6.521h6.329c.92 0 1.851-.208 2.65-.675.8-.467 1.46-1.198 1.8-2.29.49-1.549.266-4.03-1.48-6.46-.007.013-.02.02-.03.03a7.5 7.5 0 0 1-6.267 3.39A7.5 7.5 0 0 1 3.643 9.46' opacity='.9'/%3E%3Cpath fill='%23fff' d='M10.008.992a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9' opacity='.9'/%3E%3C%2Fsvg%3E")
}
/* replace arrow down icon */
#personal h2::after {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg' width='22' height='16'%3E%3Cpath fill='%23fff' d='m15.5 6-5 5-5-5z' opacity='.9'/%3E%3C%2Fsvg%3E");
}
}
/* ============================================================ 6. SIDEBAR ============================================================ */
/* ------------------------------------------------------------
SIDEBAR COLUMNS
------------------------------------------------------------ */
/* Remove Timeless' default column background */
#mw-site-navigation,
#mw-related-navigation {
background: transparent;
}
/* Keep everything inside the sidebars on the parchment palette */
/*#mw-site-navigation *,
#mw-related-navigation * {
box-sizing: border-box;
}*/
/* ------------------------------------------------------------
NAVIGATION SECTION / "CHUNK"
------------------------------------------------------------ */
/*
* Each Timeless navigation group is a .sidebar-chunk.
* Examples:
*
* Navigation
* Tools
* More
* Print/export
* In other languages
* Categories
*/
#mw-site-navigation .sidebar-chunk,
#mw-related-navigation .sidebar-chunk {
background:
linear-gradient(
135deg,
rgba(255, 248, 225, 0.7) /*rgba(255, 248, 225, 0.72) rgba(247, 222, 143, .72)*/,
rgba(243, 236, 221, 0.7) /*rgba(215, 194, 148, 0.48) rgba(243, 236, 221, 0.48) rgba(217, 177, 89, .48)*/
);
border: 1px solid rgba(100, 65, 30, 0.30);
border-radius: 2px;
margin-bottom: 1em;
padding: 0;
box-shadow:
1px 2px 5px rgba(50, 30, 15, 0.10),
inset 0 0 0 1px rgba(255, 248, 225, 0.30);
}
/* ------------------------------------------------------------
SECTION HEADINGS
------------------------------------------------------------ */
#mw-site-navigation .sidebar-chunk > h2,
#mw-related-navigation .sidebar-chunk > h2 {
margin: 0;
color: #f4e5bd;
font-size: 0.92em;
font-weight: bold;
font-variant: small-caps;
letter-spacing: 0.08em;
line-height: 1.2;
text-align: center;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
}
/*
* Navigation chunks on narrow browser
*/
@media screen and (min-width: 851px) and (max-width: 1099px) {
#mw-site-navigation .sidebar-chunk > h2,
#mw-related-navigation .sidebar-chunk > h2 {
position: relative;
padding: 0.55em 0.75em 0.45em;
background:
linear-gradient(
to bottom,
rgba(104, 65, 28, 0.96),
rgba(78, 45, 20, 0.96)
);
border-bottom: 2px solid rgba(180, 139, 62, 0.85);
}
/*
* Decorative gold divider underneath the heading.
* This gives the navigation blocks more of a 5e sourcebook feel.
*/
#mw-site-navigation .sidebar-chunk > h2::after,
#mw-related-navigation .sidebar-chunk > h2::after {
content: "◆";
display: block;
margin: 0.25em auto 0;
color: #c29a4a;
font-size: 0.55em;
line-height: 0.5;
}
#mw-site-navigation .sidebar-inner .mw-portlet > div, #mw-site-navigation .sidebar-inner .mw-portlet-body {
margin-bottom: 0;
}
}
/* Timeless puts the actual portlet contents here */
#mw-site-navigation .sidebar-inner,
#mw-related-navigation .sidebar-inner {
padding: 0.55em 1.5em 0.55em;
}
/* ------------------------------------------------------------
PORTLETS INSIDE THE CHUNKS
------------------------------------------------------------ */
#mw-site-navigation .sidebar-inner > .portal,
#mw-related-navigation .sidebar-inner > .portal {
background: transparent;
border: 0;
box-shadow: none;
margin: 0;
padding: 0;
}
/* Portal headings, if generated by MediaWiki */
#mw-site-navigation .portal h3,
#mw-related-navigation .portal h3 {
margin: 0.45em 0 0.15em;
padding: 0.25em 0.35em;
color: #70451f;
font-size: 0.86em;
font-weight: bold;
font-variant: small-caps;
letter-spacing: 0.04em;
}
/* ------------------------------------------------------------
NAVIGATION LINKS
------------------------------------------------------------ */
#mw-site-navigation a,
#mw-related-navigation a {
display: block;
border-left: 3px solid transparent;
color: #5b3518;
font-size: 0.91em;
line-height: 1.25;
text-decoration: none;
transition:
background-color 0.12s ease,
border-color 0.12s ease,
color 0.12s ease,
padding-left 0.12s ease;
}
/* Hover = subtle illuminated parchment */
#mw-site-navigation .sidebar-chunk a:hover,
#mw-related-navigation .sidebar-chunk a:hover {
background:
linear-gradient(
to right,
rgba(194, 154, 74, 0.20),
rgba(194, 154, 74, 0.05)
);
border-left-color: #9a6b2f;
color: #3f2410;
padding-left: 0.35em;
text-decoration: none;
}
/* Currently selected item */
#mw-site-navigation li.selected > a,
#mw-related-navigation li.selected > a,
#mw-site-navigation li.active > a,
#mw-related-navigation li.active > a {
background:
linear-gradient(
to right,
rgba(124, 76, 32, 0.16),
rgba(124, 76, 32, 0.04)
);
border-left-color: #7a3e24;
color: #54250f;
font-weight: bold;
}
/* ------------------------------------------------------------
NESTED NAVIGATION (untested)
------------------------------------------------------------ */
/*#mw-site-navigation ul ul,
#mw-related-navigation ul ul {
margin-left: 0.65em;
padding-left: 0.35em;
border-left: 1px solid rgba(100, 65, 30, 0.18);
}
#mw-site-navigation ul ul a,
#mw-related-navigation ul ul a {
font-size: 0.88em;
}*/
/* ------------------------------------------------------------
REMOVE MODERN GRAY BACKGROUNDS FROM Timeless WRAPPERS
------------------------------------------------------------ */
#mw-content-container,
#mw-content-block,
#mw-content-wrapper,
#mw-site-navigation,
#mw-related-navigation {
background-color: transparent;
}
/*
* A very subtle vertical rule makes the sidebars feel like
* marginalia/panels on a printed sourcebook page.
*/
@media screen and (min-width: 1340px) {
#mw-site-navigation {
border-right: 1px solid rgba(122, 62, 36, 0.18);
}
#mw-related-navigation {
border-left: 1px solid rgba(122, 62, 36, 0.18);
}
}
/*
* Change sidebar chunk heading style
*/
#mw-site-navigation .sidebar-chunk h3, #mw-related-navigation .sidebar-chunk h3 {
border-bottom: 2px solid var(--dnd-red);
}
/* ============================================================ 7. NAVIGATION TABS ============================================================ */
/* #p-cactions {
border-bottom: 1px solid var(--dnd-brown);
}
#p-cactions li a {
background-color: rgba(215, 194, 148, 0.65);
color: var(--dnd-brown-dark);
border: 1px solid rgba(90, 57, 37, 0.25);
border-bottom: none;
}
#p-cactions li.selected a {
background-color: var(--dnd-paper-light);
color: var(--dnd-red);
font-weight: bold;
}*/
/* ============================================================ 8. TABLE OF CONTENTS ============================================================ */
#toc, .toc {
background-color: rgba(245, 241, 234, 0.48);
border: 1px solid var(--dnd-brown);
padding: 0.8em 1em;
box-shadow: 2px 2px 5px var(--dnd-shadow);
}
#toc .toctitle, .toc .toctitle {
color: var(--dnd-red-dark);
font-size: 1.15em;
font-weight: bold;
border-bottom: 1px solid var(--dnd-gold);
padding-bottom: 0.3em;
margin-bottom: 0.5em;
}
#toc a {
color: var(--dnd-brown-dark);
}
/* ============================================================ 9. D&D-STYLE STAT BLOCKS ------------------------------------------------------------ Works particularly well with MediaWiki infoboxes. ============================================================ */
.infobox {
background-color: var(--dnd-paper-light);
color: var(--dnd-ink);
border: 2px solid var(--dnd-brown);
border-radius: 0;
box-shadow: 3px 4px 8px rgba(50, 30, 15, 0.18);
}
/* Infobox title */
.infobox caption {
background-color: var(--dnd-red);
color: #f8ebc9;
font-size: 1.25em;
font-weight: bold;
padding: 0.45em;
border: 1px solid var(--dnd-red-dark);
}
/* Infobox headings */
.infobox th {
background-color: var(--dnd-paper-dark);
color: var(--dnd-red-dark);
border-color: var(--dnd-border);
font-weight: bold;
}
.infobox td {
border-color: rgba(120, 80, 40, 0.45);
}
/* Stat block labels */
.infobox th:first-child {
color: var(--dnd-brown-dark);
}
/* ============================================================ 10. CUSTOM STAT BLOCK CLASS ------------------------------------------------------------ Add class="dnd-statblock" to an appropriate template/table. ============================================================ */
.dnd-statblock {
background: var(--dnd-paper-light);
border: 3px solid var(--dnd-brown);
border-radius: 0;
padding: 1em;
box-shadow: 3px 4px 8px rgba(50, 30, 15, 0.2);
position: relative;
}
/* Red header */
.dnd-statblock .statblock-header {
background: var(--dnd-red);
color: #f8ebc9;
padding: 0.45em 0.7em;
margin: -1em -1em 0.7em -1em;
font-size: 1.25em;
font-weight: bold;
}
/* Stat labels */
.dnd-statblock .stat-label {
color: var(--dnd-red);
font-weight: bold;
font-variant: small-caps;
}
/* Divider */
.dnd-statblock hr {
border: none;
border-top: 2px solid var(--dnd-red);
margin: 0.6em 0;
}
/* ============================================================ 11. STANDARD WIKITABLES ============================================================ */
.wikitable {
background-color: var(--dnd-paper-light);
color: var(--dnd-ink);
border: 1px solid var(--dnd-brown);
border-collapse: collapse;
box-shadow: 2px 3px 5px rgba(50, 30, 15, 0.10);
}
.wikitable > tr > th, .wikitable > * > tr > th {
background-color: var(--dnd-red);
color: #f7eac8;
border: 1px solid var(--dnd-brown-dark);
font-weight: bold;
}
.wikitable > tr > td, .wikitable > * > tr > td {
border: 1px solid rgba(110, 75, 40, 0.5);
}
.wikitable > tr:nth-child(even), .wikitable > * > tr:nth-child(even) {
background-color: rgba(215, 194, 148, 0.28);
}
/* ============================================================ 12. BOXED / READ-ALOUD TEXT ============================================================ */
.dnd-box {
background-color: rgba(215, 194, 148, 0.5);
border: 1px solid var(--dnd-brown);
border-left: 5px solid var(--dnd-red);
padding: 1em 1.2em;
margin: 1.2em 0;
font-style: italic;
box-shadow: 2px 3px 6px rgba(50, 30, 15, 0.10);
}
.dnd-box-title {
color: var(--dnd-red-dark);
font-style: normal;
font-weight: bold;
font-variant: small-caps;
letter-spacing: 0.04em;
margin-bottom: 0.4em;
}
/* ============================================================ 13. QUOTATIONS ============================================================ */
blockquote {
background-color: rgba(215, 194, 148, 0.38);
border-left: 4px solid var(--dnd-gold);
color: var(--dnd-ink-light);
font-style: italic;
padding: 0.8em 1.2em;
margin: 1em 2em;
}
/* ============================================================ 14. LISTS ============================================================ */
.mw-body ul {
list-style-type: square;
}
.mw-body ul li::marker {
color: var(--dnd-red);
}
.mw-body ol li::marker {
color: var(--dnd-red);
font-weight: bold;
}
/* ============================================================ 15. HORIZONTAL RULES ============================================================ */
.mw-body hr {
border: none;
border-top: 2px solid var(--dnd-gold);
margin: 1.5em auto;
width: 70%;
position: relative;
}
/* ============================================================ 16. PRE / CODE ============================================================ */
pre, .mw-code, code {
background-color: #dfcfaa;
color: var(--dnd-ink);
border: 1px solid var(--dnd-brown);
}
pre {
padding: 0.8em;
box-shadow: inset 0 0 8px rgba(70, 45, 20, 0.08);
}
/* ============================================================ 17. NOTICE BOXES ============================================================ */
.mw-message-box {
background-color: var(--dnd-paper-light);
color: var(--dnd-ink);
border: 1px solid var(--dnd-brown);
border-left: 4px solid var(--dnd-gold);
}
/* ============================================================ 18. CATEGORIES ============================================================ */
.catlinks {
background-color: rgba(215, 194, 148, 0.45);
border-top: 2px solid var(--dnd-gold);
border-bottom: 1px solid rgba(100, 65, 30, 0.25);
padding: 0.6em;
margin-top: 2em;
}
.catlinks a {
color: var(--dnd-red);
}
/* ============================================================ 19. FOOTER ============================================================ */
#mw-footer-container {
background-color: var(--dnd-paper-dark);
color: var(--dnd-ink);
border-top: 3px solid var(--dnd-brown);
box-shadow: 0 -2px 5px rgba(50, 30, 15, 0.10);
}
#mw-footer-container a {
color: var(--dnd-red-dark);
}
/* ============================================================ 20. FILES / IMAGES ============================================================ */
.thumbinner {
background-color: var(--dnd-paper-light);
border: 1px solid var(--dnd-brown);
box-shadow: 2px 3px 6px rgba(50, 30, 15, 0.15);
}
.thumbcaption {
color: var(--dnd-ink-light);
font-style: italic;
}
/* thumbnail boxes and frames */
figure[typeof~="mw:File/Thumb"] > :not(figcaption) .mw-file-element, figure[typeof~="mw:File/Frame"] > :not(figcaption) .mw-file-element {
margin: 0;
}
figure[typeof~="mw:File/Thumb"] > figcaption {
font-size: 0.75em;
padding: 0 0.5em 0.5em 0.5em;;
}
/* ============================================================ 21. GALLERY ============================================================ */
ul.gallery {
background-color: rgba(215, 194, 148, 0.25);
border: 1px solid rgba(100, 65, 30, 0.2);
padding: 0.8em;
}
.gallerybox .thumb {
background-color: var(--dnd-paper-light);
border: 1px solid var(--dnd-brown);
}
/* ============================================================ 22. PAGINATION / PAGE TOOLS ============================================================ */
.mw-prefs-buttons, .mw-ui-button {
border-radius: 0;
}
/* ============================================================ 23. EDITOR / FORMS ============================================================ */
textarea, input, select {
background-color: var(--dnd-paper-light);
color: var(--dnd-ink);
border: 1px solid var(--dnd-brown);
border-radius: 0;
}
textarea:focus, input:focus, select:focus {
border-color: var(--dnd-red);
box-shadow: 0 0 4px rgba(123, 45, 38, 0.25);
}
/* ============================================================ 24. BUTTONS ============================================================ */
button, .mw-ui-button, input[type="submit"] {
background-color: var(--dnd-brown);
color: #f7edcf;
border: 1px solid var(--dnd-brown-dark);
border-radius: 0;
}
button:hover, .mw-ui-button:hover, input[type="submit"]:hover {
background-color: var(--dnd-red);
}
/* ============================================================ 25. TIMeless PERSONAL TOOLS ============================================================ */
#personal a, #p-personal a {
color: var(--dnd-brown-dark);
}
/* ============================================================ 26. SPECIAL PAGES ============================================================ */
.mw-body-content .mw-warning {
background-color: rgba(155, 64, 54, 0.10);
border: 1px solid var(--dnd-red);
color: var(--dnd-ink);
}
/* ============================================================ 27. DARKER "SOURCEBOOK" EDGE ============================================================ */
/* Gives the content area a subtle illuminated-manuscript appearance without using an image. */
.mw-body::before {
content: "";
display: block;
height: 6px;
margin: 0 0 1em 0;
background: linear-gradient( 90deg, transparent, var(--dnd-gold), var(--dnd-red), var(--dnd-gold), transparent );
opacity: 0.75;
}
/* ============================================================ 28. RESPONSIVE MOBILE ADJUSTMENTS ============================================================ */
@media screen and (max-width: 850px) {
.mw-body {
border-left: none;
border-right: none;
box-shadow: none;
}
.firstHeading {
font-size: 2em;
}
.mw-body h2 {
font-size: 1.45em;
}
blockquote {
margin-left: 0.5em;
margin-right: 0.5em;
}
.infobox {
max-width: 100%;
}
}
/* ============================================================ 29. PRINT VERSION ============================================================ */
@media print {
body, .mw-body, #mw-content-text {
background: white !important;
color: black !important;
}
#mw-panel, #mw-head, #mw-footer {
display: none !important;
}
.mw-body {
border: none;
box-shadow: none;
}
a {
color: black !important;
}
.infobox, .wikitable, .dnd-box {
box-shadow: none;
}
}
