Jump to content

MediaWiki:Common.css: Difference between revisions

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




/* === Transight custom footer === */
/* === Hide default MediaWiki footer across skins === */
#tg-footer.tg-footer { background:#2f3e52; color:#fff; margin-top:40px; }
.mw-footer,
#tg-footer a { color:#cfe3ff; text-decoration:none; }
#footer,
#tg-footer a:hover { text-decoration:underline; }
.mw-footer-container { display: none !important; }


#tg-footer .tg-inner { max-width:1200px; margin:0 auto; padding:40px 20px; }
/* === Transight global footer styles === */
#tg-footer .tg-grid  { display:flex; flex-wrap:wrap; gap:32px; }
.ts-footer {
#tg-footer .tg-col  { flex:1 1 220px; min-width:200px; }
  background: #5b82a2;             /* blue like the screenshot */
  color: #ffffff;
  padding: 48px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}


#tg-footer h3 { font-size:18px; margin:0 0 16px; text-transform:uppercase; letter-spacing:.5px; }
.ts-footer a { color: #e7eef5; text-decoration: none; }
#tg-footer ul { list-style:none; margin:0; padding:0; }
.ts-footer a:hover { color: #ffffff; text-decoration: underline; }
#tg-footer li { margin:8px 0; }


#tg-footer .tg-bottom {
.ts-footer__container {
   border-top:1px solid rgba(255,255,255,.15);
   max-width: 1200px;
   margin-top:24px; padding-top:16px;
   margin: 0 auto;
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:12px; font-size:14px;
}
}
#tg-footer .tg-social a {
 
   display:inline-flex; width:36px; height:36px; border-radius:50%;
.ts-footer__sitemap {
   background:rgba(255,255,255,.1); align-items:center; justify-content:center;
   display: flex;
   margin-right:8px; text-decoration:none;
  flex-wrap: wrap;
  gap: 32px 40px;
  align-items: flex-start;
  justify-content: space-between;
}
 
.ts-footer__col {
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 200px;
}
 
.ts-footer__title {
  font-size: 14px;
  letter-spacing: .5px;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 12px 0;
  opacity: .95;
}
 
.ts-footer__col li { margin: 0 0 8px 0; }
.ts-footer__col li a { font-size: 13px; opacity: .9; }
.ts-footer__col li a:hover { opacity: 1; }
 
.ts-footer__bottom {
   border-top: 1px solid rgba(255,255,255,.25);
  margin-top: 36px;
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
   align-items: center;
  justify-content: space-between;
}
}


/* Hide Teltonika’s built-in footer if you want only custom one */
.ts-footer__legal { margin: 0; font-size: 12px; color: #f0f6fa; }
.mw-footer-container { display:none; }
.ts-footer__social a { margin-left: 12px; font-size: 12px; }
.ts-footer__social a:first-child { margin-left: 0; }


/* Responsive */
/* Mobile */
@media (max-width:768px){
@media (max-width: 720px) {
   #tg-footer .tg-col { flex:1 1 100%; }
   .ts-footer { padding: 36px 16px; }
   #tg-footer .tg-grid { gap:20px; }
  .ts-footer__sitemap { gap: 24px; }
  .ts-footer__col { min-width: 46%; }
   .ts-footer__bottom { flex-direction: column; align-items: flex-start; }
}
}

Revision as of 06:36, 1 September 2025

html {
    scroll-behavior: smooth;
}

/* Hide the appearance landmark menu completely */
nav.vector-appearance-landmark {
    display: none !important;
}
/* Hide the Appearance UI (both the sidebar block and the header trigger) */
nav.vector-appearance-landmark,
#vector-appearance,
#vector-appearance-pinned-container,
[id^="vector-appearance"] {
  display: none !important;
}

/* Force wide layout */
body.skin-vector-2022 {
    max-width: none !important;
}


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

/* Force all user links (login, editor, etc.) to white */
.vector-user-links-main a,
.vector-user-links-main span,
.vector-user-links-main .mw-ui-icon 
.vector-header-end {
    color: white !important;
    fill: white !important; 
}


body.skin-vector-2022 .vector-sidebar-container {
    display: block !important;
}
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-text {
  display: inline-block;
  white-space: nowrap;
  color: white;
  font-weight: bold;
  font-size: 25px;
  font-family: 'Segoe UI', sans-serif;
  font-color:#680022;
  animation: scroll-left 25s 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;
    position: centre;
    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: White!important;
    fill: White!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 20s linear infinite;
  font-weight: bold;
  color: #680022;
}
/* Fix for the Personal Tools dropdown in Vector skin */
#p-personal .vector-menu-content,
#p-personal .vector-menu-content a,
#p-personal .vector-menu-content li {
    color: black !important;
}

/* Optional: Ensure background isn't transparent */
#p-personal .vector-menu-content
{
    background-color: white !important;
}

/* Hover styling (optional) */
#p-personal .vector-menu-content a:hover {
    background-color: #f0f0f0 !important;
    color: #202122 !important;
}

/* Hide footer links in all skins */
#footer, #footer-info, #footer-places {
    display: none !important;
}


/* === Hide default MediaWiki footer across skins === */
.mw-footer,
#footer,
.mw-footer-container { display: none !important; }

/* === Transight global footer styles === */
.ts-footer {
  background: #5b82a2;              /* blue like the screenshot */
  color: #ffffff;
  padding: 48px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.ts-footer a { color: #e7eef5; text-decoration: none; }
.ts-footer a:hover { color: #ffffff; text-decoration: underline; }

.ts-footer__container {
  max-width: 1200px;
  margin: 0 auto;
}

.ts-footer__sitemap {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 40px;
  align-items: flex-start;
  justify-content: space-between;
}

.ts-footer__col {
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 200px;
}

.ts-footer__title {
  font-size: 14px;
  letter-spacing: .5px;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 12px 0;
  opacity: .95;
}

.ts-footer__col li { margin: 0 0 8px 0; }
.ts-footer__col li a { font-size: 13px; opacity: .9; }
.ts-footer__col li a:hover { opacity: 1; }

.ts-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.25);
  margin-top: 36px;
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.ts-footer__legal { margin: 0; font-size: 12px; color: #f0f6fa; }
.ts-footer__social a { margin-left: 12px; font-size: 12px; }
.ts-footer__social a:first-child { margin-left: 0; }

/* Mobile */
@media (max-width: 720px) {
  .ts-footer { padding: 36px 16px; }
  .ts-footer__sitemap { gap: 24px; }
  .ts-footer__col { min-width: 46%; }
  .ts-footer__bottom { flex-direction: column; align-items: flex-start; }
}