MediaWiki:Common.css: Difference between revisions

From Kintara
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
/* 1. Clear out Vector's default background slices */
/* 1. Reset default Vector background strips completely */
body {
body {
     background-image: none !important;
     background-image: none !important;
     background-color: #f4f1ea !important; /* Sets your global site background color below the header */
     background-color: #f4f1ea !important; /* Base site color below the header */
}
}
#mw-page-base, #mw-head-base {
#mw-page-base {
    height: 160px !important; /* Determines the precise vertical thickness of your banner */
    margin: 0 !important;
    padding: 0 !important;
   
    /* Embed the banner art strictly inside Vector's native top slice */
    background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('https://pbs.twimg.com/profile_banners/2049672463005474816/1778779323') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
#mw-head-base {
     background-image: none !important;
     background-image: none !important;
     background-color: transparent !important;
     background-color: transparent !important;
     height: 0 !important;
    margin-top: -160px !important; /* Keeps structural elements perfectly tracked */
     height: 160px !important;
}
}


/* 2. Create the unified full-width header banner container */
/* 2. Fix the Logo to Layer on Top of the Banner */
#mw-head {
#p-logo {
     position: absolute !important;
     position: absolute !important;
     top: 0;
     top: -160px !important; /* Pulls the logo up into the active banner space */
    left: 0;
     left: 0 !important;
    right: 0;
     z-index: 100 !important; /* Guarantees it overlays cleanly on top of the art */
    width: 100% !important;
     height: 160px !important;
    height: 180px; /* Adjust height to match how much of your art you want visible */
      
    /* Replace YOUR_IMAGE_URL with your actual uploaded image URL */
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://pbs.twimg.com/profile_banners/2049672463005474816/1778779323') !important;
     background-size: cover !important;
     background-position: center !important;
    background-repeat: no-repeat !important;
}
}


/* 3. Push the main content container down so it doesn't clip underneath the banner */
/* 3. Re-align elements inside the header so they sit cleanly */
#content {
#mw-head {
     margin-top: 180px !important; /* Must match the height of your #mw-head above */
     top: 0 !important;
    position: relative !important;
}
}
 
#right-navigation, #left-navigation {
/* 4. Push the left-side navigation panel (Logo + Sidebar) down to match */
    margin-top: 110px !important; /* Positions your action buttons/tabs near the bottom edge of your banner */
#mw-panel {
}
     top: 180px !important;
#p-personal {
     top: 10px !important; /* Keeps your user utility items (Login, Talk, Preferences) neatly at the top right */
}
}


/* 5. Make all text, links, and search icons sitting inside the banner readable */
/* 4. Formatting header elements for maximum contrast */
#p-personal ul li a,
#p-personal ul li a,
.vectorTabs li a,
.vectorTabs li a,
#p-search h3,
#p-search h3 {
.vectorMenu h3 span {
     color: #ffffff !important;
     color: #ffffff !important;
     text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8) !important;
     text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8) !important;
}
}


/* 6. Strip the default backgrounds from the navigation tabs so they embed cleanly */
/* 5. Clean up tab containers so background gradients don't block your art */
.vectorTabs, .vectorTabs li, .vectorTabs li a {
.vectorTabs, .vectorTabs li, .vectorTabs li a {
     background-image: none !important;
     background-image: none !important;
Line 52: Line 58:
}
}


/* 7. Subtle highlight for the active tab to preserve navigation clarity */
/* 6. Simple indicator overlay for active navigation elements */
.vectorTabs li.selected a {
.vectorTabs li.selected a {
     background-color: rgba(255, 255, 255, 0.15) !important;
     background-color: rgba(255, 255, 255, 0.2) !important;
     border-radius: 4px;
     border-radius: 4px;
     color: #ffffff !important;
     color: #ffffff !important;
}
}

Revision as of 05:46, 15 June 2026

/* 1. Reset default Vector background strips completely */
body {
    background-image: none !important;
    background-color: #f4f1ea !important; /* Base site color below the header */
}
#mw-page-base {
    height: 160px !important; /* Determines the precise vertical thickness of your banner */
    margin: 0 !important;
    padding: 0 !important;
    
    /* Embed the banner art strictly inside Vector's native top slice */
    background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('https://pbs.twimg.com/profile_banners/2049672463005474816/1778779323') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
#mw-head-base {
    background-image: none !important;
    background-color: transparent !important;
    margin-top: -160px !important; /* Keeps structural elements perfectly tracked */
    height: 160px !important;
}

/* 2. Fix the Logo to Layer on Top of the Banner */
#p-logo {
    position: absolute !important;
    top: -160px !important; /* Pulls the logo up into the active banner space */
    left: 0 !important;
    z-index: 100 !important; /* Guarantees it overlays cleanly on top of the art */
    height: 160px !important;
}

/* 3. Re-align elements inside the header so they sit cleanly */
#mw-head {
    top: 0 !important;
    position: relative !important;
}
#right-navigation, #left-navigation {
    margin-top: 110px !important; /* Positions your action buttons/tabs near the bottom edge of your banner */
}
#p-personal {
    top: 10px !important; /* Keeps your user utility items (Login, Talk, Preferences) neatly at the top right */
}

/* 4. Formatting header elements for maximum contrast */
#p-personal ul li a,
.vectorTabs li a,
#p-search h3 {
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8) !important;
}

/* 5. Clean up tab containers so background gradients don't block your art */
.vectorTabs, .vectorTabs li, .vectorTabs li a {
    background-image: none !important;
    background-color: transparent !important;
    border: none !important;
}

/* 6. Simple indicator overlay for active navigation elements */
.vectorTabs li.selected a {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-radius: 4px;
    color: #ffffff !important;
}