MediaWiki:Common.css: Difference between revisions

From The World of Haelora
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 224: Line 224:
     margin-bottom: 0 !important;
     margin-bottom: 0 !important;
}
}


/* ==========================================
/* ==========================================
   HAELORA ENCYCLOPEDIA
   HAELORA RESPONSIVE CATEGORY BANNERS
  RESPONSIVE CATEGORY BANNERS
   ========================================== */
   ========================================== */
/* Main banner container */


.haelora-banner {
.haelora-banner {
    display: block;
     width: 100%;
     width: 100%;
     max-width: 100%;
     max-width: 100%;
     margin: 0 0 1rem 0;
     margin: 0 0 12px 0;
     padding: 0;
     padding: 0;
     overflow: hidden;
     overflow: hidden;
Line 241: Line 240:
}
}


/* Remove MediaWiki image spacing */
/* MediaWiki's image wrapper */
 
.haelora-banner .mw-halign-none,
.haelora-banner .mw-file-element {
.haelora-banner .mw-file-description,
.haelora-banner .mw-default-size {
     display: block;
     display: block;
     width: 100%;
     width: 100%;
     max-width: 100%;
     max-width: 100%;
    height: auto;
}
}


/* Primary category banners */
/* Responsive image with transparent fade */
.haelora-banner img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;


.haelora-banner-category img {
     -webkit-mask-image: linear-gradient(
     -webkit-mask-image: linear-gradient(
         to bottom,
         to bottom,
         black 0%,
         #000 0%,
         black 60%,
         #000 60%,
         transparent 100%
         transparent 100%
     );
     );
Line 262: Line 265:
     mask-image: linear-gradient(
     mask-image: linear-gradient(
         to bottom,
         to bottom,
         black 0%,
         #000 0%,
         black 60%,
         #000 60%,
         transparent 100%
         transparent 100%
     );
     );
Line 269: Line 272:


/* Subcategory banners */
/* Subcategory banners */
.haelora-banner-subcategory img {
.haelora-banner-subcategory img {
     -webkit-mask-image: linear-gradient(
     -webkit-mask-image: linear-gradient(
         to bottom,
         to bottom,
         black 0%,
         #000 0%,
         black 80%,
         #000 65%,
         transparent 100%
         transparent 100%
     );
     );
Line 280: Line 282:
     mask-image: linear-gradient(
     mask-image: linear-gradient(
         to bottom,
         to bottom,
         black 0%,
         #000 0%,
         black 80%,
         #000 65%,
         transparent 100%
         transparent 100%
     );
     );
}
}


/* Mobile adjustments */
/* Mobile */
 
@media screen and (max-width: 600px) {
@media screen and (max-width: 600px) {
     .haelora-banner {
     .haelora-banner {
         margin-bottom: 0.5rem;
         margin-bottom: 8px;
     }
     }
}
/* Reduce spacing beneath Haelora category banners */


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


        mask-image: linear-gradient(
.haelora-banner + p {
            to bottom,
    margin-top: 0;
            black 0%,
            black 70%,
            transparent 100%
        );
    }
}
}

Latest revision as of 21:45, 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 RESPONSIVE CATEGORY BANNERS
   ========================================== */

.haelora-banner {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 0 12px 0;
    padding: 0;
    overflow: hidden;
    line-height: 0;
}

/* MediaWiki's image wrapper */
.haelora-banner .mw-halign-none,
.haelora-banner .mw-file-description,
.haelora-banner .mw-default-size {
    display: block;
    width: 100%;
    max-width: 100%;
}

/* Responsive image with transparent fade */
.haelora-banner img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;

    -webkit-mask-image: linear-gradient(
        to bottom,
        #000 0%,
        #000 60%,
        transparent 100%
    );

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

/* Subcategory banners */
.haelora-banner-subcategory img {
    -webkit-mask-image: linear-gradient(
        to bottom,
        #000 0%,
        #000 65%,
        transparent 100%
    );

    mask-image: linear-gradient(
        to bottom,
        #000 0%,
        #000 65%,
        transparent 100%
    );
}

/* Mobile */
@media screen and (max-width: 600px) {
    .haelora-banner {
        margin-bottom: 8px;
    }
}

/* Reduce spacing beneath Haelora category banners */

.haelora-banner {
    margin-bottom: -20px;
}

.haelora-banner + p {
    margin-top: 0;
}