MediaWiki:Timeless.css: Unterschied zwischen den Versionen

Aus Pyrathor
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 592: Zeile 592:
}
}
/* ============================================================ 19. FOOTER ============================================================ */
/* ============================================================ 19. FOOTER ============================================================ */
  #mw-footer {
  #mw-footer-container {
background-color: var(--dnd-paper-dark);
background-color: var(--dnd-paper-dark);
color: var(--dnd-ink);
color: var(--dnd-ink);
Zeile 598: Zeile 598:
box-shadow: 0 -2px 5px rgba(50, 30, 15, 0.10);
box-shadow: 0 -2px 5px rgba(50, 30, 15, 0.10);
}
}
  #mw-footer a {
  #mw-footer-container a {
color: var(--dnd-red-dark);
color: var(--dnd-red-dark);
}
}

Version vom 17. September 2026, 00:23 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.
   Designed for MediaWiki:Timeless.css

   Main palette:
     Parchment     #efe2c0
     Light paper   #f7edcf
     Dark paper    #d7c294
     Ink           #30251d
     Brown         #5a3925
     Burgundy      #7b2d26
     Gold          #9a742c
   ============================================================ */

/* ============================================================ 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);
}
/* ============================================================ 2. PAGE / PARCHMENT ============================================================ */
 html, body {
	 background-color: var(--dnd-paper);
	 color: var(--dnd-ink);
}
/* 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 h2 {
	 color: var(--dnd-red);
	 font-size: 1.65em;
	 border-bottom: 2px solid var(--dnd-gold);
	 padding-bottom: 0.12em;
	 margin-top: 1.5em;
	 position: relative;
}
/* Decorative little diamond */
 .mw-body h2::after {
	 content: "◆";
	 color: var(--dnd-gold);
	 font-size: 0.45em;
	 margin-left: 0.6em;
	 vertical-align: middle;
}
/* H3 */
 .mw-body h3 {
	 color: var(--dnd-brown-dark);
	 font-size: 1.3em;
	 border-bottom: 1px solid rgba(120, 80, 40, 0.55);
	 padding-bottom: 0.08em;
}
/* H4 */
 .mw-body h4, .mw-body h5, .mw-body 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. DROP CAPS ------------------------------------------------------------ Gives prose a sourcebook / novel feel. ============================================================ */
 .mw-body p:first-of-type::first-letter {
  font-size:1.5em;
  line-height:0.8;
  color:var(--dnd-red);
  font-weight:bold
}
/* ============================================================ 5. HEADER ============================================================ */
 #mw-head {
	 background-color: var(--dnd-paper-dark);
	 border-bottom: 3px solid var(--dnd-brown);
	 box-shadow: 0 2px 5px rgba(50, 30, 15, 0.15);
}
/* 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);
}
/* ============================================================ 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.72) /*rgba(255, 248, 225, 0.72) rgba(247, 222, 143, .72)*/,
            rgba(243, 236, 221, 0.48) /*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;
}
/* ============================================================ 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;
	}
}