MediaWiki:Minerva.css: Difference between revisions

From The Radical Buddhism Project
mNo edit summary
No edit summary
Line 5: Line 5:
   ===================================================================== */
   ===================================================================== */


/* 1. GLOBAL NAVBAR COLOR SETTING (Applies on both Desktop and Mobile views) */
/* 2. THEME VARIABLE INJECTIONS (Bypasses Skin Token Variables) */
.header-container.header-chrome {
:root, body, .header-container, #mw-header-container, .footer {
     background-color: #f0f2f4 !important; /* The core gray background color of your navbar */
    /* Define the background tint across both color blocks */
     border-bottom: 1px solid #aaaaaa !important; /* A razor-thin, precise 1px dark separator line below it */
    --background-color-chrome: #f0f2f4 !important;
     box-shadow: none !important; /* Wipes out any native browser drop-shadow lines */
     --background-color-neutral: #f0f2f4 !important;
    --background-color-base: #ffffff !important;
   
    /* Force matching text contrast rules */
    --color-base: #222222 !important;
    --color-emphasized: #222222 !important;
}
 
/* 3. PHYSICAL NAVBAR COLOR LAYER FALLBACKS */
.header-container.header-chrome,
#mw-header-container,
.header {
    background-color: #f0f2f4 !important;
    background: #f0f2f4 !important;
     border-bottom: 1px solid #222222 !important;
     box-shadow: none !important;
}
}


/* 2. GLOBAL FOOTER COLOR SETTING (Applies on both Desktop and Mobile views) */
/* 4. PHYSICAL FOOTER LAYER FALLBACKS */
.footer {
.footer-container,
     background-color: #f0f2f4 !important; /* The core gray background color of your bottom footer area */
footer,
     border-top: 1px solid #aaaaaa !important; /* A razor-thin, precise 1px dark separator line above it */
.footer,
     padding: 20px 40px !important;
#mw-footer-container {
     background-color: #f0f2f4 !important;
    background: #f0f2f4 !important;
     border-top: 1px solid #222222 !important;
    box-shadow: none !important;
}
 
/* Ensure footer interior layouts do not inherit white blocks */
.footer-places, .footer-info, .minerva-footer {
    background: transparent !important;
     background-color: transparent !important;
}
}


Line 47: Line 72:
     }
     }


     /* TARGET THE TRUE INLINE CLASS TO FORCE ABSOLUTE ALL-CAPS OVERRIDES */
     /* FORCE ABSOLUTE ALL-CAPS CAPITALIZATION ACROSS THE NAVBAR ENGINE */
     .header-container .branding-box a.brand,
     .header-container .branding-box a,
     .header-container .branding-box a.brand span,
     .header-container .branding-box span,
     .header-container .branding-box h1,
     .header-container .branding-box h1,
     .header-container .branding-box .mw-wiki-title {
     .header-container .branding-box .mw-wiki-title,
        font-family: inherit !important;
    .header-container .branding-box .brand {
        font-size: 1.3em !important;
    text-transform: uppercase !important;
        font-weight: normal !important;
    letter-spacing: 2px !important;
        text-transform: uppercase !important; /* Forces your title into clean capitals */
    font-variant: normal !important;
        letter-spacing: 2px !important; /* Spaciously separates the layout letters */
}
        color: #222222 !important; /* Crisp, matching dark charcoal grey */
        text-decoration: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }


     /* -----------------------------------------------------------------
     /* -----------------------------------------------------------------

Revision as of 04:10, 21 July 2026

/* All CSS here will be loaded for users of the MinervaNeue skin */

/* =====================================================================
   RADICAL BUDDHIST PROJECT - DESKTOP LAYOUT
   ===================================================================== */

/* 2. THEME VARIABLE INJECTIONS (Bypasses Skin Token Variables) */
:root, body, .header-container, #mw-header-container, .footer {
    /* Define the background tint across both color blocks */
    --background-color-chrome: #f0f2f4 !important;
    --background-color-neutral: #f0f2f4 !important;
    --background-color-base: #ffffff !important;
    
    /* Force matching text contrast rules */
    --color-base: #222222 !important;
    --color-emphasized: #222222 !important;
}

/* 3. PHYSICAL NAVBAR COLOR LAYER FALLBACKS */
.header-container.header-chrome,
#mw-header-container,
.header {
    background-color: #f0f2f4 !important;
    background: #f0f2f4 !important;
    border-bottom: 1px solid #222222 !important;
    box-shadow: none !important;
}

/* 4. PHYSICAL FOOTER LAYER FALLBACKS */
.footer-container,
footer,
.footer,
#mw-footer-container {
    background-color: #f0f2f4 !important;
    background: #f0f2f4 !important;
    border-top: 1px solid #222222 !important;
    box-shadow: none !important;
}

/* Ensure footer interior layouts do not inherit white blocks */
.footer-places, .footer-info, .minerva-footer {
    background: transparent !important;
    background-color: transparent !important;
}

/* ONLY execute this custom structure on desktop viewports (1100px or wider) */
@media screen and (min-width: 1100px) {

    /* -----------------------------------------------------------------
       1. TOP NAVBAR CONFIGURATION (Forces Search Right & Title Left)
       ----------------------------------------------------------------- */
    
    /* Turn the top header row into a full-width flex container */
    .header-container {
        display: flex !important;
        justify-content: flex-start !important; /* Lines elements up from the left side */
        align-items: center !important;
        padding: 0 40px !important; /* Adds breathing space at the window edges */
    }

    /* Force the native search input wrapper box to stay completely on the right side */
    .header-container .search-box {
        margin-left: auto !important; /* Pushes the input to the far right margin */
        width: 300px !important; /* Restricts search width to preserve center space */
    }

    /* Position the site name text right next to the hamburger icon */
    .header-container .branding-box {
        margin-left: 15px !important; /* Creates a clean gap after the ☰ button */
        display: flex !important;
        align-items: center !important;
    }

    /* FORCE ABSOLUTE ALL-CAPS CAPITALIZATION ACROSS THE NAVBAR ENGINE */
    .header-container .branding-box a,
    .header-container .branding-box span,
    .header-container .branding-box h1,
    .header-container .branding-box .mw-wiki-title,
    .header-container .branding-box .brand {
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    font-variant: normal !important;
}

    /* -----------------------------------------------------------------
       2. MARGIN LOGO CONFIGURATION (Floating in Outside Left Margin)
       ----------------------------------------------------------------- */

    /* Keep the outer content and text grids completely standard and unpushed */
    .mw-body {
        position: relative !important;
        padding-left: 0 !important; 
    }

    /* Target the main page title heading element */
    #firstHeading {
        position: relative !important;
        padding-left: 0 !important; /* Title stays left-aligned with page content */
        margin-left: 0 !important;
    }

    /* Throw the logo into the outside empty left margin space */
    #firstHeading::before {
        content: "";
        display: block;
        position: absolute;
        
        /* Vertical alignment: 0 = flush with the top edge of the title row */
        top: 10px; 
        
        /* Horizontal alignment: Floating completely outside the text boundaries */
        /* Sized at 110px width, a -150px position places it exactly 40px to the left of your text line */
        left: -150px; 
        
        /* Dimensions (Your exact proportional dimensions) */
        width: 110px;
        height: 110px;
        
        /* Graphics loading execution */
        background-image: url('/rbplogo.png') !important; /* Root path directory asset */
        background-repeat: no-repeat;
        background-position: top left;
        background-size: contain;
    }

    /* Add breathing room below the title block before body paragraph text begins */
    .mw-body-content {
        margin-top: 25px !important;
    }
	
	/* -----------------------------------------------------------------
       3. MAIN PAGE CONDITIONAL HYBRID RULES
       ----------------------------------------------------------------- */

    /* Hide the navbar text title *only* when viewing the home page */
    .page-Main_Page .header-container .branding-box h1 {
        display: none !important;
    }

    /* Suppress the large left-margin logo *only* when viewing the home page */
    .page-Main_Page .mw-body::before {
        display: none !important;
    }

    /* Reset the left margin padding on the home screen for layout balance */
    .page-Main_Page .mw-body {
        padding-left: 0 !important;
    }
}

/* =====================================================================
   RESPONSIVE SITE NAME SWAP (Full Name on Desktop ➔ RBP on Mobile)
   ===================================================================== */

/* Target viewports narrower than 768px (Standard tablets and smartphones) */
@media screen and (max-width: 767px) {
    
    /* 1. Shrink the width of the native text block to exactly zero and hide its visibility */
    .header-container .branding-box h1 span {
        visibility: hidden !important;
        position: relative !important;
        display: inline-block !important;
        width: 0 !important;
        height: 0 !important;
    }
    
    /* 2. Inject the clean "RBP" acronym right into the emptied space */
    .header-container .branding-box h1::after {
        content: "RBP" !important;
        visibility: visible !important; /* Forces this specific text block to show up */
        font-family: sans-serif !important;
        font-size: 1.2em !important;
        font-weight: bold !important;
        color: #222222 !important; /* Matches clean charcoal dark text tone */
        padding-left: 5px !important;
    }
}


/* =====================================================================
   MISCELLANIA
   ===================================================================== */

/* Completely hides the "grouping results by page is not available on mobile" alert box */
.mw-mobile-notification,
.mobile-frontend-warning,
.recentchanges-page-navigation .notification {
    display: none !important;
}

/* Custom Background Color for the Top Navigation Bar */
.header-container.header-chrome {
    background-color: #f2f4f6 !important;
    border-bottom: 1px solid #f1f3f5 !important;
}