MediaWiki:Minerva.css: Difference between revisions

From The Radical Buddhism Project
No edit summary
No edit summary
 
(31 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* All CSS here will be loaded for users of the MinervaNeue skin */
/* All CSS here will be loaded for users of the MinervaNeue skin */


/* =====================================================================
/* =====================================================================
   RADICAL BUDDHIST PROJECT - TRUE DESKTOP RESTRUCTURING
   RADICAL BUDDHIST PROJECT - INTERFACE COLOR OVERHAUL
   ==================================================================== */
   ===================================================================== */


/* 1. CLAMP GLOBAL SYSTEM VARIABLE TOKENS AT THE CORE ENGINE LAYER */
:root {
:root {
     --background-color-chrome: #f0f2f4 !important; /* Your exact target gray */
     --background-color-chrome: #f0f2f4 !important;
     --background-color-neutral: #f0f2f4 !important;
     --background-color-neutral: #f0f2f4 !important;
     --background-color-footer: #f0f2f4 !important;
     --background-color-footer: #f0f2f4 !important;
Line 14: Line 12:
     --color-surface-20: #f0f2f4 !important;
     --color-surface-20: #f0f2f4 !important;
     --color-surface-30: #f0f2f4 !important;
     --color-surface-30: #f0f2f4 !important;
    --background-color-interactive: #f0f2f4 !important;
    --background-color-base: #ffffff !important;
}
}


/* 2. THE OUTER SKELETON CANVAS OVERRIDES (Bypasses beyond-footer dark zones) */
html,  
html,  
body,  
body,  
.minerva__outer-wrapper,  
.minerva__outer-wrapper,  
#mw-mf-page-center,
#mw-mf-page-center,  
#mw-mf-viewport {
#mw-mf-viewport {
     background-color: #f0f2f4 !important;
     background-color: #f0f2f4 !important;
Line 26: Line 25:
}
}


/* 3. THE TOP NAVBAR COLOR & SEPARATOR LINE ALIGNMENT */
header,
/* Target the true outermost structural box channel spanning the window */
.header,
#mw-header-container {
#mw-header-container,
.header-chrome {
     background: #f0f2f4 !important;
     background: #f0f2f4 !important;
     background-color: #f0f2f4 !important;
     background-color: #f0f2f4 !important;
     /* Draws exactly ONE clean #aaaaaa line beneath the top bar, clearing out double lines */
     background-image: none !important;
    box-shadow: 0 1px 0 0 #aaaaaa !important;  
     border: none !important;
     border: none !important;
    box-shadow: inset 0 0 0 9999px #f0f2f4 !important; /* Keeps your gray color locked */
}
}


/* STRIP ALL SUB-BACKGROUNDS (Prevents Minerva's engine from calculating an opacity tint shift) */
.header-container {
.header-container,
    background: #f0f2f4 !important;
header,  
    background-color: #f0f2f4 !important;
.header-chrome,
    border: none !important;
.header-container::after {
    outline: none !important;
     background: transparent !important;
    box-shadow: inset 0 0 0 9999px #f0f2f4 !important;
     background-color: transparent !important;
    background-image: linear-gradient(to top, #d0d4d8 1px, transparent 1px) !important;
     background-image: none !important;
}
 
.header-container .search-box {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 300px !important;
}
 
.header-container .branding-box,
.header-container .branding-box a,
.header-container .branding-box span {
    display: inline-block !important;
    visibility: visible !important;
    overflow: visible !important;
     max-height: none !important;
}
 
#mw-content-block {
     background: #ffffff !important;
     background-color: #ffffff !important;
     border: none !important;
     border: none !important;
    margin-bottom: 0 !important;
     box-shadow: none !important;
     box-shadow: none !important;
     content: none !important; /* Wipes out the previous double pseudo-line */
     outline: none !important; /* Clears the hidden bottom outline */
}
}


/* 4. THE MAIN READING CANVAS STABILIZATION */
#mw-content-block,
.mw-body {
.mw-body {
     background: #ffffff !important;
     background: #ffffff !important;
     background-color: #ffffff !important;
     background-color: #ffffff !important;
}
/* Force exactly ONE crisp 1px line right where the white page text block drops off */
#mw-content-block {
    box-shadow: 0 1px 0 0 #aaaaaa !important; /* Your clean 1px line above the footer */
     border: none !important;
     border: none !important;
     margin-bottom: 0 !important;
     box-shadow: none !important;
    outline: 1px solid #d0d4d8 !important;
    outline-offset: -1px !important;
}
}


/* 5. THE BOTTOM FOOTER BLOCKS COLOR STABILIZATION */
footer,
footer,
.footer,
.footer,
.mw-footer,
.mw-footer,
.footer-container,
.footer-container,
#mw-footer-container {
#mw-footer-container,
.minerva-footer {
     background: #f0f2f4 !important;
     background: #f0f2f4 !important;
     background-color: #f0f2f4 !important;
     background-color: #f0f2f4 !important;
    background-image: none !important;
     border: none !important;
     border: none !important;
     box-shadow: none !important;
     box-shadow: inset 0 0 0 9999px #f0f2f4 !important;
}
}


/* 6. TOTAL ELIMINATION OF INTERIOR FOOTER EXTRA DIVIDER LINES */
.minerva-footer hr,
.minerva-footer hr,
.footer-container hr,
.footer-container hr,
Line 83: Line 99:
.minerva-footer,
.minerva-footer,
hr,
hr,
#mw-content-block::after {
.footer-places ul,
.footer-places li {
     background: transparent !important;
     background: transparent !important;
     background-color: transparent !important;
     background-color: transparent !important;
Line 90: Line 107:
     border-bottom: none !important;
     border-bottom: none !important;
     box-shadow: none !important;
     box-shadow: none !important;
    content: none !important; /* Wipes out the previous absolute layout lines */
}
}




Line 184: Line 199:
     }
     }
/* -----------------------------------------------------------------
    /* -----------------------------------------------------------------
       3. MAIN PAGE CONDITIONAL HYBRID RULES
       3. MAIN PAGE CONDITIONAL HYBRID RULES (True Desktop Fix)
       ----------------------------------------------------------------- */
       ----------------------------------------------------------------- */


     /* Hide the navbar text title *only* when viewing the home page */
     /* Hide the navbar text title and everything inside the branding area *only* when viewing the home page */
     .page-Main_Page .header-container .branding-box h1 {
    .page-main_page .branding-box,
     .page-Main_Page .branding-box,
    .page-main_page #mw-header-container .branding-box,
    .page-Main_Page #mw-header-container .branding-box {
         display: none !important;
         display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
     }
     }


     /* Suppress the large left-margin logo *only* when viewing the home page */
     /* Suppress the large left-margin logo *only* when viewing the home page */
    .page-main_page #firstHeading::before,
    .page-Main_Page #firstHeading::before,
    .page-main_page .mw-body::before,
     .page-Main_Page .mw-body::before {
     .page-Main_Page .mw-body::before {
         display: none !important;
         display: none !important;
Line 199: Line 225:


     /* Reset the left margin padding on the home screen for layout balance */
     /* Reset the left margin padding on the home screen for layout balance */
     .page-Main_Page .mw-body {
    .page-main_page .mw-body,
     .page-Main_Page .mw-body,
    .page-main_page #firstHeading,
    .page-Main_Page #firstHeading {
         padding-left: 0 !important;
         padding-left: 0 !important;
        margin-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;
}
}

Latest revision as of 04:32, 22 July 2026

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

/* =====================================================================
   RADICAL BUDDHIST PROJECT - INTERFACE COLOR OVERHAUL
   ===================================================================== */

:root {
    --background-color-chrome: #f0f2f4 !important;
    --background-color-neutral: #f0f2f4 !important;
    --background-color-footer: #f0f2f4 !important;
    --background-color-neutral-subtle: #f0f2f4 !important;
    --color-surface-20: #f0f2f4 !important;
    --color-surface-30: #f0f2f4 !important;
    --background-color-interactive: #f0f2f4 !important;
    --background-color-base: #ffffff !important;
}

html, 
body, 
.minerva__outer-wrapper, 
#mw-mf-page-center, 
#mw-mf-viewport {
    background-color: #f0f2f4 !important;
    background: #f0f2f4 !important;
}

header,
.header,
#mw-header-container,
.header-chrome {
    background: #f0f2f4 !important;
    background-color: #f0f2f4 !important;
    background-image: none !important;
    border: none !important;
    box-shadow: inset 0 0 0 9999px #f0f2f4 !important; /* Keeps your gray color locked */
}

.header-container {
    background: #f0f2f4 !important;
    background-color: #f0f2f4 !important;
    border: none !important;
    outline: none !important; 
    box-shadow: inset 0 0 0 9999px #f0f2f4 !important;
    background-image: linear-gradient(to top, #d0d4d8 1px, transparent 1px) !important;
}

.header-container .search-box {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 300px !important;
}

.header-container .branding-box,
.header-container .branding-box a,
.header-container .branding-box span {
    display: inline-block !important;
    visibility: visible !important;
    overflow: visible !important;
    max-height: none !important;
}

#mw-content-block {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: none !important;
    margin-bottom: 0 !important;
    box-shadow: none !important;
    outline: none !important; /* Clears the hidden bottom outline */
}

.mw-body {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    outline: 1px solid #d0d4d8 !important; 
    outline-offset: -1px !important;
}

footer,
.footer,
.mw-footer,
.footer-container,
#mw-footer-container,
.minerva-footer {
    background: #f0f2f4 !important;
    background-color: #f0f2f4 !important;
    background-image: none !important;
    border: none !important;
    box-shadow: inset 0 0 0 9999px #f0f2f4 !important;
}

.minerva-footer hr,
.footer-container hr,
.mw-footer hr,
.footer-places,
.footer-info,
.minerva-footer,
hr,
.footer-places ul,
.footer-places li {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}


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

/* 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 (True Desktop Fix)
       ----------------------------------------------------------------- */

    /* Hide the navbar text title and everything inside the branding area *only* when viewing the home page */
    .page-main_page .branding-box,
    .page-Main_Page .branding-box,
    .page-main_page #mw-header-container .branding-box,
    .page-Main_Page #mw-header-container .branding-box {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Suppress the large left-margin logo *only* when viewing the home page */
    .page-main_page #firstHeading::before,
    .page-Main_Page #firstHeading::before,
    .page-main_page .mw-body::before,
    .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,
    .page-Main_Page .mw-body,
    .page-main_page #firstHeading,
    .page-Main_Page #firstHeading {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
}