MediaWiki:Common.css: Difference between revisions

From The World of Haelora
No edit summary
No edit summary
Line 223: Line 223:
h1#firstHeading {
h1#firstHeading {
     margin-bottom: 0 !important;
     margin-bottom: 0 !important;
}
/* ==========================================
  HAELORA ENCYCLOPEDIA
  RESPONSIVE CATEGORY BANNERS
  ========================================== */
/* Main banner container */
.haelora-banner {
    width: 100%;
    max-width: 100%;
    margin: 0 0 1rem 0;
    padding: 0;
    overflow: hidden;
    line-height: 0;
}
/* Remove MediaWiki image spacing */
.haelora-banner .mw-file-element {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}
/* Primary category banners */
.haelora-banner-category img {
    -webkit-mask-image: linear-gradient(
        to bottom,
        black 0%,
        black 60%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        black 0%,
        black 60%,
        transparent 100%
    );
}
/* Subcategory banners */
.haelora-banner-subcategory img {
    -webkit-mask-image: linear-gradient(
        to bottom,
        black 0%,
        black 80%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        black 0%,
        black 80%,
        transparent 100%
    );
}
/* Mobile adjustments */
@media screen and (max-width: 600px) {
    .haelora-banner {
        margin-bottom: 0.5rem;
    }
    .haelora-banner-category img {
        -webkit-mask-image: linear-gradient(
            to bottom,
            black 0%,
            black 70%,
            transparent 100%
        );
        mask-image: linear-gradient(
            to bottom,
            black 0%,
            black 70%,
            transparent 100%
        );
    }
}
}

Revision as of 03:57, 16 October 2026

/* ==========================================
   THE WORLD OF HAELORA
   Global Wiki Stylesheet
   MediaWiki Timeless Skin
   ========================================== */


/* ==========================================
   1. MAIN PAGE AND CONTENT BACKGROUNDS
   ========================================== */

body {
    background-color: #F4EFE4;
    color: #292724;
}

#mw-content-container {
    background-color: #F4EFE4;
}

.mw-body {
    background-color: #FFFDF8;
    color: #292724;
}


/* ==========================================
   2. TYPOGRAPHY AND HEADINGS
   ========================================== */

.mw-body h1,
.mw-body h2,
.mw-body h3,
.mw-body h4 {
    font-family: Georgia, "Times New Roman", serif;
    color: #343743;
}

.mw-body h1 {
    font-size: 2.1em;
    border-bottom: 2px solid #B49A67;
    padding-bottom: 0.3em;
}

.mw-body h2 {
    border-bottom: 1px solid #D5CBB9;
    padding-bottom: 0.2em;
}


/* ==========================================
   3. LINKS
   ========================================== */

.mw-body a {
    color: #405A83;
}

.mw-body a:visited {
    color: #68577B;
}

.mw-body a:hover {
    color: #8A6938;
    text-decoration: underline;
}


/* ==========================================
   4. BORDERS AND TABLES
   ========================================== */

.mw-body,
.mw-parser-output table {
    border-color: #D5CBB9;
}

.mw-parser-output table.wikitable {
    background-color: #FFFDF8;
    border: 1px solid #D5CBB9;
}

.mw-parser-output table.wikitable th {
    background-color: #EAE1D1;
    color: #343743;
}


/* ==========================================
   5. BLOCKQUOTES
   ========================================== */

.mw-parser-output blockquote {
    border-left: 3px solid #B49A67;
    background-color: #F8F3E9;
    padding: 0.8em 1.2em;
    font-style: italic;
}


/* ==========================================
   6. IMAGES AND THUMBNAILS
   ========================================== */

.mw-parser-output .thumbinner {
    background-color: #F8F3E9;
    border: 1px solid #D5CBB9;
    padding: 5px;
}


/* ==========================================
   7. HORIZONTAL RULES
   ========================================== */

.mw-parser-output hr {
    border: 0;
    border-top: 1px solid #B49A67;
}


/* ==========================================
   8. UNIFIED PAGE NAVIGATION
   Timeless Skin
   ========================================== */

/*
   The flow-root declaration contains Timeless's
   floated navigation groups, allowing the border
   to surround the entire navigation bar.
*/

#mw-page-header-links {
    display: flow-root !important;

    background-color: #E6D9C3 !important;
    border: 1px solid #B49A67 !important;
    border-radius: 3px;

    box-sizing: border-box;
    padding: 6px 10px !important;
    margin: 12px 0;

    box-shadow: none !important;
}


/* Remove separate backgrounds and borders */

#mw-page-header-links .mw-portlet,
#mw-page-header-links .mw-portlet-body,
#mw-page-header-links ul {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}


/* Navigation links */

#mw-page-header-links a {
    color: #514056 !important;
    background: transparent !important;
    text-decoration: none;
}


/* Active navigation tab */

#mw-page-header-links .selected a {
    background-color: #D6C3A5 !important;
    border-bottom: 2px solid #514056 !important;
}


/* Hover effect */

#mw-page-header-links a:hover {
    background-color: #D6C3A5 !important;
    color: #352A39 !important;
}

/* ==========================================
   HAELORA - REMOVE NAVIGATION WHITE STRIP
   ========================================== */

/* Match the surrounding navigation area to parchment */
#mw-page-header-links {
    margin-bottom: 0 !important;
}

/* Remove the white background beneath the tabs */
#bodyContentOuter,
#mw-content,
#bodyContent {
    background-color: transparent !important;
}

/* ==========================================
   HAELORA - PAGE HEADER PARCHMENT FIX
   ========================================== */

/* Remove remaining white behind the navigation */
#mw-page-header-links,
#mw-page-header-links::before,
#mw-page-header-links::after,
#bodyContentOuter,
#mw-content {
    background-color: transparent !important;
}

/* Restore parchment inside the navigation bar */
#mw-page-header-links {
    background-color: #E6D9C3 !important;
}
}
/* ==========================================
   HAELORA - PAGE TITLE SPACING FIX
   ========================================== */

#mw-content #firstHeading,
#mw-content .mw-first-heading,
h1#firstHeading {
    margin-bottom: 0 !important;
}

/* ==========================================
   HAELORA ENCYCLOPEDIA
   RESPONSIVE CATEGORY BANNERS
   ========================================== */

/* Main banner container */

.haelora-banner {
    width: 100%;
    max-width: 100%;
    margin: 0 0 1rem 0;
    padding: 0;
    overflow: hidden;
    line-height: 0;
}

/* Remove MediaWiki image spacing */

.haelora-banner .mw-file-element {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* Primary category banners */

.haelora-banner-category img {
    -webkit-mask-image: linear-gradient(
        to bottom,
        black 0%,
        black 60%,
        transparent 100%
    );

    mask-image: linear-gradient(
        to bottom,
        black 0%,
        black 60%,
        transparent 100%
    );
}

/* Subcategory banners */

.haelora-banner-subcategory img {
    -webkit-mask-image: linear-gradient(
        to bottom,
        black 0%,
        black 80%,
        transparent 100%
    );

    mask-image: linear-gradient(
        to bottom,
        black 0%,
        black 80%,
        transparent 100%
    );
}

/* Mobile adjustments */

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

    .haelora-banner {
        margin-bottom: 0.5rem;
    }

    .haelora-banner-category img {
        -webkit-mask-image: linear-gradient(
            to bottom,
            black 0%,
            black 70%,
            transparent 100%
        );

        mask-image: linear-gradient(
            to bottom,
            black 0%,
            black 70%,
            transparent 100%
        );
    }
}