Jump to content

MediaWiki:Common.css: Difference between revisions

From Transight Wiki
No edit summary
No edit summary
Line 17: Line 17:


$wgRawHtml = true;
$wgRawHtml = true;
#floatingWebButton {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #0056b3;
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}
#floatingWebButton:hover {
    background-color: #004096;
}


body.skin-vector-2022 .vector-menu-toggle-button {
body.skin-vector-2022 .vector-menu-toggle-button {

Revision as of 10:14, 30 June 2025

/* Force icon on menu button using pseudo element */
#vector-main-menu-dropdown-label::before {
    content: "☰";
    font-size: 30px;
    color: black;
    position: centre;
    top: 10px;
    left: 10px;
    z-index: 999;
}

body.skin-vector-2022 .vector-sidebar-container {

    display: block !important;

}

$wgRawHtml = true;
#floatingWebButton {

    position: fixed;

    bottom: 20px;

    right: 20px;

    background-color: #0056b3;

    color: white;

    padding: 10px 18px;

    border-radius: 25px;

    font-weight: bold;

    text-decoration: none;

    z-index: 9999;

    box-shadow: 0 4px 6px rgba(0,0,0,0.2);

}

#floatingWebButton:hover {

    background-color: #004096;

}


body.skin-vector-2022 .vector-menu-toggle-button {

    display: none;

}


/* Hide broken SVG to avoid overlapping */
#vector-main-menu-dropdown-label svg {
    display: none !important;
}


@keyframes scroll-left {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

ul#footer-icons {
    display: none !important;
}


/* Wrapper bar background */
.scroll-banner {
  background-color: #680022;
  overflow: hidden;
  width: 100%;
  height: 2.5em; /* Adjust height as needed */
  display: flex;
  align-items: center;
}

/* Scrolling text style */
.scroll-banner-text {
  display: inline-block;
  white-space: nowrap;
  color: white;
  font-weight: bold;
  font-size: 16px;
  font-family: 'Segoe UI', sans-serif;
  animation: scroll-left 15s linear infinite;
  padding-left: 100vw;
}

/* === GLOBAL HEADER AREA BURGUNDY === */
body {
    --header-background-color: #680022 !important;
    --header-text-color: white !important;
}
/* === HEADER SECTIONS === */
.vector-header,
.vector-header-container,
.vector-sticky-header {
    background-color: #680022 !important;
    color: white !important;
    border: none !important;
}
.vector-search-box input {
    color: black !important;
}
.vector-search-box button {
    background-color: #FFFFFF !important;
    color: black !important;
    border: none !important;
    border-radius: 3px;
}
/* === Make entire top header burgundy === */
.vector-header-container {
    background-color: #680022 !important;
}
/* === Set all page link colors to burgundy === */
a, a:visited {
    color: #680022 !important;
}
/* === TOP TABS === */
.vector-tab,
.vector-tab a {
    background: transparent !important;
    color: white !important;
    font-weight: bold;
}
.vector-tab a:hover {
    border-bottom: 2px solid white !important;
}
.vector-tab.selected a {
    border-bottom: 3px solid white !important;
}
/* LOGIN / USERNAME TEXT */
.vector-header .vector-user-links a,
.vector-header .vector-user-links a:visited,
.vector-header .vector-user-links .mw-ui-icon {
    color: black !important;
    fill: black !important;
}
/* SVG icons (user icon, bell, etc.) */
.vector-header .vector-user-links svg,
.vector-header .vector-user-links path {
    fill: black !important;
    stroke: black !important;
}
/* DROPDOWN MENU (if shown after login) */
.vector-header .vector-user-menu .vector-menu-content,
.vector-header .vector-user-menu .vector-menu-content a 
{
    color: black !important;
    fill: black !important;
}

/* === CUSTOM LOGO (for Vector-2022) === */
.vector-header .mw-logo {
    background-image: url("/resources/assets/TRANSIGHT_NEW.jpg"); /* Fix path and encode spaces */
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left;
    width: 400px;
    height: 100px;
}
/* === Hide the default MediaWiki logo === */
.vector-header .mw-logo img {
    opacity: 0 !important;
}
/* === Global font style for entire wiki === */
body,
.mw-body,
.vector-body,
.vector-page-titlebar,
.vector-user-menu,
.vector-menu,
.vector-tab,
.vector-tabs,
#content,
#mw-content-text,
#firstHeading,
.mw-parser-output {
    font-family: 'Segoe UI', 'Open Sans', 'Arial', sans-serif !important;
    color: #000000;
}
body,
body * {
    font-family: 'Segoe UI', 'Open Sans', 'Arial', simportant;
}
@keyframes scroll-left {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.scrolling-text {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-left 12s linear infinite;
  font-weight: bold;
  color: #680022;
}

/* User menu dropdown styling after login */
.vector-header .vector-user-menu .vector-menu-content {
    color: #000;            /* Text color */
    fill: currentColor;     /* Ensures SVG icons use text color */
}

.vector-header .vector-user-menu .vector-menu-content a {
    color: inherit;         /* Inherits the color from parent */
    text-decoration: none;  /* Optional: remove underline */
}

.vector-user-menu .mw-ui-icon {
    fill: currentColor !important;  /* Fix icon color if overridden */
}