Jump to content

MediaWiki:Vector.css: Difference between revisions

From Transight Wiki
No edit summary
No edit summary
Line 1: Line 1:
/* === Transight Custom Header Bar === */
/* === Transight Custom Header Bar === */
body {
body {
     --header-bg-color: #80020; /* White background */
     --header-bg-color: #80020; /* Burgundy background */
}
}
/* Logo alignment and resizing for header */
/* Logo alignment and resizing for header */
Line 9: Line 9:
     gap: 10px; /* Space between logo and text */
     gap: 10px; /* Space between logo and text */
     padding-left: 20px; /* Shift logo slightly to the right */
     padding-left: 20px; /* Shift logo slightly to the right */
}
/* Increase logo size */
.mw-wiki-logo {
    background-size: contain !important;
    height: 120px; /* change as needed */
    width: 220px;  /* change as needed */
    background-position: center;
}
}


/* Resize logo image */
.mw-logo-icon,
.vector-header-logo img {
    width: 60px !important;
    height: auto !important;
    max-height: 60px !important;
    display: block !important;
}


/* Optional: Hide the default 'MediaWiki' wordmark if still visible */
/* Optional: Hide the default 'MediaWiki' wordmark if still visible */

Revision as of 04:48, 20 June 2025

/* === Transight Custom Header Bar === */
body {
    --header-bg-color: #80020; /* Burgundy background */
}
/* Logo alignment and resizing for header */
.mw-logo-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between logo and text */
    padding-left: 20px; /* Shift logo slightly to the right */
}
/* Increase logo size */
.mw-wiki-logo {
    background-size: contain !important;
    height: 120px; /* change as needed */
    width: 220px;  /* change as needed */
    background-position: center;
}


/* Optional: Hide the default 'MediaWiki' wordmark if still visible */
.mw-logo-wordmark {
    display: none !important;
}

/* Optional: Hide the default 'MediaWiki' wordmark if still visible */
.mw-logo-wordmark {
    display: none !important;
}

/* Top header area background (white) */
#mw-page-base,
#mw-head-base,
.vector-header-container,
.vector-header {
    background-color: var(--header-bg-color) !important;
    border: none !important;
}

/* Replace default logo with Transight logo */
#p-logo a {
    background-image: url("/images/b/b9/Transight_logo.png") !important; /* Use correct path */
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    height: 55px;
    width: 160px;
    display: block;
}

/* Hide the default wordmark text logo */
#p-logo a > img {
    opacity: 0;
}

/* Search box inside header */
.vector-header .vector-search-box input,
.vector-header .vector-search-box button {
    background-color: #f1f1f1 !important;
    color: black !important;
    border-radius: 4px;
}

/* Header menu/link text color for white background */
.vector-header .vector-user-links,
.vector-header .vector-user-menu,
.vector-header .vector-header-start,
.vector-header .vector-header-end,
.vector-header .vector-search-box {
    background-color: var(--header-bg-color) !important;
    color: black !important; /* change from white to black */
}

/* Optional: header title text in dark for white bg */
.vector-header .mw-logo-wordmark,
.vector-header .mw-logo-container {
    color: black !important;
}