MediaWiki:Timeless.css

From Tarazedi
Revision as of 19:12, 1 December 2026 by Tarazedi (talk | contribs)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* ==========================================================
   TARAZEDI — TIMELESS SKIN
   ========================================================== */

/* BASE INTERFACE */

body.skin-timeless {
    background: var(--background);
    color: var(--primary);
    font-family: var(--font-body);
    font-size: 16px;
}

/* BLACK INTERFACE PANELS */

#mw-header-container,
#mw-header,
#mw-content-container,
#mw-content-block,
#mw-site-navigation,
#mw-related-navigation,
#mw-footer-container,
#mw-footer,
#mw-header-hack,
#mw-header-nav-hack,
.sidebar-inner,
.sidebar-chunk,
.mw-portlet,
.ts-container {
    background-color: var(--background) !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

#mw-content-container {
    background-image: none !important;
}

/* REMOVE TIMELESS COLOUR STRIPE */

.color-bar,
.color-left,
.color-middle,
.color-right,
.color-middle-container {
    display: none;
}

/* CENTRAL CONTENT */

.skin-timeless #mw-content {
    background: var(--content-background) !important;
    color: var(--primary);
    border: none;
    border-radius: 4px;
    box-shadow: none;
}

#bodyContent,
#bodyContentOuter,
#mw-content-text {
    background: transparent;
    color: var(--primary);
    font-family: var(--font-body);
}

#mw-content-text {
    font-size: 1rem;
    line-height: 1.5;
}

/* HEADINGS */

.skin-timeless h1,
.skin-timeless h2,
.skin-timeless h3,
.skin-timeless h4,
.skin-timeless h5,
.skin-timeless h6 {
    font-family: var(--font-heading) !important;
    font-weight: 400 !important;
    font-variant: normal !important;
    text-transform: lowercase !important;
    text-align: center !important;

    background-image: var(--heading-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    line-height: 1.3;
}

/* ARTICLE TITLE */

.skin-timeless #firstHeading {
    font-size: 3.5rem;
    margin-bottom: 0.3em;
    padding: 0.1em 0;
}

/* SECTION HEADINGS */

.skin-timeless #mw-content-text h2 {
    font-size: 2.4rem;
}

.skin-timeless #mw-content-text h3 {
    font-size: 2rem;
}

.skin-timeless #mw-content-text h4 {
    font-size: 1.7rem;
}

.skin-timeless #mw-content-text h5 {
    font-size: 1.5rem;
}

.skin-timeless #mw-content-text h6 {
    font-size: 1.3rem;
}

/* SECTION HEADING WRAPPERS */

.skin-timeless .mw-heading {
    display: flex;
    justify-content: center;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5em;
    text-align: center;
    border: none !important;
    overflow: visible !important;
}

.skin-timeless .mw-heading h2,
.skin-timeless .mw-heading h3,
.skin-timeless .mw-heading h4,
.skin-timeless .mw-heading h5,
.skin-timeless .mw-heading h6 {
    padding: 0.1em 0.15em;
    overflow: visible !important;
}

/* SECTION EDIT CONTROLS */

.skin-timeless .mw-editsection {
    display: inline-block;
    position: static;
    float: none;

    font-family: var(--font-body) !important;
    font-size: 0.75rem !important;
    font-weight: normal;
    line-height: 1.5;

    color: var(--secondary);
    -webkit-text-fill-color: var(--secondary);

    background: none !important;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    overflow: visible !important;
}

.skin-timeless .mw-editsection a,
.skin-timeless .mw-editsection a:first-of-type {
    display: inline;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    color: var(--secondary);
    -webkit-text-fill-color: var(--secondary);
}

/* SITE WORDMARK */

#p-logo-text {
    background: none;
    padding: 0;
    text-align: center;
    box-sizing: border-box;
}

.skin-timeless #p-logo-text a,
.skin-timeless #p-logo-text a.long {
    display: inline-block;
    height: auto;
    margin: 0 auto;
    padding: 0.1em 0.2em;

    font-family: var(--font-heading) !important;
    font-size: 2.5rem;
    font-weight: 400;
    font-variant: normal;
    text-transform: lowercase;
    text-align: center;
    line-height: 1.15;

    background-image: var(--heading-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent !important;

    border: none !important;
}

/* DESKTOP WORDMARK ALIGNMENT */

@media screen and (min-width: 851px) {

    #p-logo-text {
        flex: 0 0 14em;
        width: 14em;
        max-width: 14em;
        order: 1;
        align-self: center;
        text-align: center;
    }

    #p-search {
        order: 2;
        flex: 1 1 auto;
        min-width: 0;
    }

    #user-tools {
        order: 3;
    }
}

/* SITE LOGO */

#p-logo {
    text-align: center;
}

#p-logo .mw-wiki-logo {
    display: block;
    margin: 0.75em auto;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

#p-logo .mw-wiki-logo img {
    width: 135px;
    max-width: 100%;
    height: auto;
}

/* SIDEBARS */

.skin-timeless .sidebar-chunk {
    background: var(--background) !important;
    border: none !important;
    box-shadow: none !important;
}

.skin-timeless .sidebar-chunk h3,
.skin-timeless .mw-portlet h3 {
    font-size: 1.8rem;
    font-weight: 400;
    text-align: center;
    margin: 0.6em auto 0.3em;
    padding: 0.1em 0;
}

.sidebar-chunk ul {
    list-style: none;
    padding-left: 0;
}

.sidebar-chunk li {
    margin: 0.3em 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ALL LINKS */

body.skin-timeless a,
body.skin-timeless a:link,
body.skin-timeless a:visited,
body.skin-timeless a.external,
body.skin-timeless a.extiw,
body.skin-timeless a.new {
    color: var(--secondary) !important;
    text-decoration: none !important;
}

body.skin-timeless a:hover,
body.skin-timeless a:focus-visible {
    color: var(--primary) !important;
}

#mw-content-text a:not(.image):not(.mw-file-description),
.sidebar-chunk li a,
#mw-footer a,
.mw-editsection a {
    border-bottom: 1px dotted var(--accent);
}

/* EXTERNAL LINKS */

.mw-parser-output a.external {
    background-image: none !important;
    padding-right: 0 !important;
}

/* PAGE NAVIGATION TABS */

#mw-page-header-links,
#mw-page-header-links-bottom {
    text-align: left;
    background: transparent;
}

#p-namespaces,
#p-views {
    float: left !important;
    text-align: left;
}

#p-namespaces li,
#p-views li {
    margin-left: 0;
    margin-right: 1em;
}

.tools-inline li,
.tools-inline li.selected,
.tools-inline li:hover {
    border-bottom: none !important;
    box-shadow: none !important;
}

.tools-inline a {
    border-bottom: 1px dotted var(--accent);
}

/* PRESERVE WATCHLIST ICON WITHOUT EMPTY UNDERLINE */

#ca-watch a,
#ca-unwatch a {
    border-bottom: none;
    filter: brightness(1.7);
}

#mw-page-header-links::after,
#mw-page-header-links-bottom::after {
    content: "";
    display: block;
    clear: both;
}

/* SEARCH AND FORM CONTROLS */

input,
textarea,
select,
button {
    background-color: var(--background);
    color: var(--primary);
    border: 1px solid var(--secondary);
    border-radius: 3px;
    font-family: var(--font-body);
}

#simpleSearch {
    background: var(--background);
    border: 1px solid var(--secondary);
    box-shadow: none;
}

#searchInput {
    color: var(--primary);
    background: transparent;
    border: none;
    box-shadow: none;
}

input::placeholder,
textarea::placeholder {
    color: var(--secondary);
    opacity: 1;
}

input:focus,
textarea:focus,
select:focus,
button:focus-visible {
    outline: 1px solid var(--primary);
    outline-offset: 2px;
}

#searchButton,
#mw-searchButton {
    filter: brightness(0) invert(1);
    border: none;
}

/* ACCOUNT MENU — PRESERVE NATIVE CONTROLS */

#personal h2,
#user-tools h2 {
    font-family: var(--font-body) !important;
    font-size: 1rem;
    text-transform: none !important;

    color: var(--secondary);
    -webkit-text-fill-color: var(--secondary);

    background-clip: border-box;
    -webkit-background-clip: border-box;
}

#personal h2 {
    background-image: none;
}

/* DROPDOWNS AND SEARCH SUGGESTIONS */

.dropdown,
.suggestions,
.suggestions-results,
.suggestions-special {
    background-color: var(--background) !important;
    color: var(--primary);
    border-color: var(--border);
}

.suggestions-result {
    color: var(--primary);
}

.suggestions-result-current {
    background-color: var(--surface);
    color: var(--accent);
}

/* TABLE OF CONTENTS */

#toc,
.toc {
    background: var(--surface);
    color: var(--primary);
    border: none;
    padding: 1em;
}

.tocnumber {
    color: var(--primary);
}

.toctext {
    color: var(--secondary);
}

/* INFOBOXES */

.infobox {
    background: var(--background);
    color: var(--primary);
    border: 1px solid var(--border);
    padding: 0.5em;
    margin: 0 0 1em 1em;
    max-width: 100%;
}

.infobox th {
    background: var(--surface);
    color: var(--secondary);
}

.infobox td {
    color: var(--primary);
}

/* CATEGORIES */

#catlinks {
    background: transparent;
    color: var(--primary);
    border: none;
    border-top: 1px solid var(--border);
    padding: 0.75em 0;
}

/* FOOTER */

#mw-footer {
    background: var(--background);
    color: var(--secondary);
    font-size: 0.75rem;
    text-align: center;
}

/* EDITING INTERFACE */

#wpTextbox1 {
    background: var(--background);
    color: var(--primary);
    border: 1px solid var(--secondary);
    font-family: var(--font-body);
}

/* ==========================================================
   RESPONSIVE — MOBILE
   ========================================================== */

@media screen and (max-width: 850px) {

    #p-logo-text {
        width: auto;
        max-width: none;
    }

    .skin-timeless #p-logo-text a,
    .skin-timeless #p-logo-text a.long {
        font-size: 1.8rem;
    }

    .skin-timeless #firstHeading {
        font-size: 2.7rem;
    }

    .skin-timeless #mw-content-text h2 {
        font-size: 2rem;
    }

    .skin-timeless #mw-content-text h3 {
        font-size: 1.7rem;
    }

    .skin-timeless #mw-content {
        border-radius: 0;
    }

    #mw-content-text {
        font-size: 1rem;
        line-height: 1.5;
    }

    .infobox {
        float: none !important;
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
        margin: 1em auto;
    }

    .thumb,
    .thumbinner,
    figure {
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* SIDEBAR TYPOGRAPHY */

.skin-timeless .sidebar-chunk h2,
.skin-timeless .sidebar-chunk h3,
.skin-timeless .mw-portlet h3 {
    font-family: var(--font-heading) !important;
    font-size: 2rem !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;

    text-align: center;
    text-transform: lowercase;

    background-image: var(--heading-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    margin: 0.5em 0 0.25em;
    padding: 0.15em 0;
}

/* REDUCE EXCESSIVE SIDEBAR SPACING */

.skin-timeless .sidebar-chunk {
    margin-bottom: 0.75em;
    padding-top: 0;
    padding-bottom: 0;
}

.skin-timeless .sidebar-chunk li {
    margin: 0.15em 0;
    line-height: 1.4;
}