MediaWiki:Common.css: Difference between revisions

From Kintara
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* 1. Target the top header block in Vector Legacy */
/* 1. Target the global top header bar */
#mw-head {
.mw-header {
     /* Replace YOUR_IMAGE_URL with your actual uploaded image URL */
     /* Replace 'YOUR_IMAGE_URL' with your actual uploaded image URL */
     background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('YOUR_IMAGE_URL') !important;
     background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url('https://pbs.twimg.com/profile_banners/2049672463005474816/1778779323');
     background-size: cover !important;
     background-size: cover;
     background-position: center !important;
     background-position: center;
     background-repeat: no-repeat !important;
     background-repeat: no-repeat;
     height: 160px; /* Gives the header enough room to show the banner */
      
    /* Optional: Adds a bit of depth separation from the rest of the wiki content */
    border-bottom: 2px solid var(--border-color-base, #e2d9c8);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
}


/* 2. Style text & navigation icons inside the header to remain crisp and readable */
/* 2. Adjust the main page content downward so it doesn't overlap your new banner */
.mw-header,  
#content, #mw-panel {
.mw-header .citizen-header__logo,
     margin-top: 160px !important; /* Must match the height of your #mw-head above */
.mw-header .citizen-header__item,
.mw-header .citizen-ui-icon {
     color: #ffffff !important;
}
}


/* 3. Force links and navigation text in the header to be white */
/* 3. Make the navigation tabs and text white so they remain readable over the image */
.mw-header a,  
#p-personal ul li a,
.mw-header .citizen-header-links a,  
#left-navigation .vectorTabs li a,
.mw-header button {
#right-navigation .vectorTabs li a,
#p-search h3 {
     color: #ffffff !important;
     color: #ffffff !important;
     text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); /* Helps text pop off the image background */
     text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}
}


/* 4. Fix search bar visibility so it doesn't clash with the background */
/* 4. Fix tab backgrounds so they blend into your banner */
.mw-header .citizen-search-form__input {
.vectorTabs, .vectorTabs li, .vectorTabs li a {
     background-color: rgba(255, 255, 255, 0.15) !important;
     background-image: none !important;
     backdrop-filter: blur(4px);
     background-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}
}


/* Placeholder fix for search input text */
/* 5. Highlight the active tab slightly so users know what page they are on */
.mw-header .citizen-search-form__input::placeholder {
.vectorTabs li.selected {
     color: rgba(255, 255, 255, 0.7) !important;
     background-color: rgba(255, 255, 255, 0.15) !important;
    border-radius: 4px 4px 0 0;
}
}

Revision as of 05:40, 15 June 2026

/* 1. Target the top header block in Vector Legacy */
#mw-head {
    /* Replace YOUR_IMAGE_URL with your actual uploaded image URL */
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('YOUR_IMAGE_URL') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    height: 160px; /* Gives the header enough room to show the banner */
}

/* 2. Adjust the main page content downward so it doesn't overlap your new banner */
#content, #mw-panel {
    margin-top: 160px !important; /* Must match the height of your #mw-head above */
}

/* 3. Make the navigation tabs and text white so they remain readable over the image */
#p-personal ul li a,
#left-navigation .vectorTabs li a, 
#right-navigation .vectorTabs li a,
#p-search h3 {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

/* 4. Fix tab backgrounds so they blend into your banner */
.vectorTabs, .vectorTabs li, .vectorTabs li a {
    background-image: none !important;
    background-color: transparent !important;
}

/* 5. Highlight the active tab slightly so users know what page they are on */
.vectorTabs li.selected {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-radius: 4px 4px 0 0;
}