Jump to content

MediaWiki:Common.css: Difference between revisions

From Transight Wiki
No edit summary
No edit summary
Line 328: Line 328:
}
}


/* === Floating "Go to our web" button (SVG-free, stable) === */
 
.ts-webfab {
/* === Floating "Go to our web" button — globe icon + true bottom-right === */
.ts-webfab{
   position: fixed;
   position: fixed;
   right: 22px;
  /* pin to the very corner, respecting iOS safe areas */
   bottom: 22px;
   right: max(16px, env(safe-area-inset-right));
   bottom: max(16px, env(safe-area-inset-bottom));
   z-index: 2147483646;
   z-index: 2147483646;
   display: flex;
   width: 54px;                 /* wrapper sized to button only */
   align-items: center;
   height: 54px;
  gap: 10px;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}
}


/* round button */
/* round button */
.ts-webfab__btn {
.ts-webfab__btn{
   width: 54px;
   width: 54px;
   height: 54px;
   height: 54px;
Line 348: Line 348:
   align-items: center;
   align-items: center;
   justify-content: center;
   justify-content: center;
   background: #7A0F2F; /* brand */
   background: #7A0F2F;
   color: #fff;
   color: #fff;
   box-shadow: 0 6px 18px rgba(0,0,0,.25);
   box-shadow: 0 6px 18px rgba(0,0,0,.25);
   text-decoration: none;
   text-decoration: none;
   transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
   transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.ts-webfab__btn::before {
  content: "";
  width: 22px;
  height: 22px;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  /* arrow icon (white) */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 17L17 7M10 7h7v7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
}
.ts-webfab__btn:hover,
.ts-webfab__btn:hover,
.ts-webfab__btn:focus { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.28); background:#8e1438; }
.ts-webfab__btn:focus{ transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.28); background:#8e1438; }


/* pill bubble */
/* globe icon inside the round button (replaces arrow) */
.ts-webfab__bubble {
.ts-webfab__btn::before{
   display: inline-flex;
   content:"";
   align-items: center;
   width:22px; height:22px; display:block;
  gap: 8px;
   background-repeat:no-repeat; background-position:center; background-size:contain;
  padding: 10px 14px;
   /* white globe */
   border-radius: 10px;
   background-image:url("data:image/svg+xml;utf8,\
  text-decoration: none;
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
  background: #243447;
<circle cx='12' cy='12' r='9' fill='none' stroke='%23fff' stroke-width='1.8'/>\
   color: #fff;
<path d='M12 3c2.7 2.4 4.3 5.7 4.3 9s-1.6 6.6-4.3 9c-2.7-2.4-4.3-5.7-4.3-9s1.6-6.6 4.3-9z' fill='none' stroke='%23fff' stroke-width='1.8'/>\
   box-shadow: 0 6px 18px rgba(0,0,0,.22);
<path d='M5 12h14' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'/>\
  white-space: nowrap;
</svg>");
  opacity: 0;
  visibility: hidden;
  transform: translateX(6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
}
.ts-webfab__bubble::before {
 
   content: "";
/* bubble: absolute so it doesn't shift the button */
   width: 18px;
.ts-webfab__bubble{
   height: 18px;
   position:absolute;
   display: block;
   right: 64px;                 /* 54px button + 10px gap */
   background-repeat: no-repeat;
   bottom: 7px;                 /* vertically centered against button */
   background-position: center;
   display:inline-flex;
   background-size: contain;
   align-items:center;
   /* globe icon (white) */
  gap:8px;
   background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='9' fill='none' stroke='%23fff' stroke-width='1.6'/><path d='M12 3c2.5 2.2 4 5.3 4 9s-1.5 6.8-4 9c-2.5-2.2-4-5.3-4-9s1.5-6.8 4-9z' fill='none' stroke='%23fff' stroke-width='1.6'/><path d='M5 12h14' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round'/></svg>");
  padding:10px 14px;
  border-radius:10px;
   background:#243447;
  color:#fff;
   text-decoration:none;
   box-shadow:0 6px 18px rgba(0,0,0,.22);
   white-space:nowrap;
  opacity:0; visibility:hidden; transform:translateX(6px);
  transition:opacity .15s ease, transform .15s ease, visibility .15s ease;
}
}
/* show bubble on hover/focus */
.ts-webfab:hover .ts-webfab__bubble,
.ts-webfab:hover .ts-webfab__bubble,
.ts-webfab:focus-within .ts-webfab__bubble { opacity:1; visibility:visible; transform:translateX(0); }
.ts-webfab:focus-within .ts-webfab__bubble{ opacity:1; visibility:visible; transform:translateX(0); }


/* small screens: only show round button */
/* hide bubble on small screens */
@media (max-width: 680px) {
@media (max-width:680px){ .ts-webfab__bubble{ display:none !important; } }
  .ts-webfab__bubble { display: none !important; }
}


/* do not print */
/* no print */
@media print { .ts-webfab { display:none !important; } }
@media print{ .ts-webfab{ display:none !important; } }

Revision as of 09:22, 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; }


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


/* === Transight Footer Styles === */
.ts-footer {
  background: #C0C0C0;   /* grey shaded */
  color: #ffffff;
  padding: 50px 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 20px; /* default body font in footer */
}

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

/* Footer sitemap layout */
.ts-footer__sitemap {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
}

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

/* Section headings */
.ts-footer__title {
  font-size: 16px;  /* bigger than links */
  letter-spacing: .5px;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 14px 0;
  color: #ffffff;
}

/* Links */
.ts-footer__col li { margin: 0 0 10px 0; }

.ts-footer a {
  color: #f1f1f1;          
  text-decoration: none;
  font-size: 20px;  /* increased link size */
  font-weight: 400;
}

.ts-footer a:hover {
  color: #ffd166;          
  text-decoration: underline;
}

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

.ts-footer__legal {
  margin: 0;
  font-size: 18px;  /* increased */
  color: #f9eaea;
}

.ts-footer__social a {
  margin-left: 14px;
  font-size: 18px;  /* increased */
  color: #f1f1f1;
}
.ts-footer__social a:first-child { margin-left: 0; }
.ts-footer__social a:hover { color: #ffd166; }

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


/* === Floating "Go to our web" button — globe icon + true bottom-right === */
.ts-webfab{
  position: fixed;
  /* pin to the very corner, respecting iOS safe areas */
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 2147483646;
  width: 54px;                 /* wrapper sized to button only */
  height: 54px;
}

/* round button */
.ts-webfab__btn{
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #7A0F2F;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.ts-webfab__btn:hover,
.ts-webfab__btn:focus{ transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.28); background:#8e1438; }

/* globe icon inside the round button (replaces arrow) */
.ts-webfab__btn::before{
  content:"";
  width:22px; height:22px; display:block;
  background-repeat:no-repeat; background-position:center; background-size:contain;
  /* white globe */
  background-image:url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<circle cx='12' cy='12' r='9' fill='none' stroke='%23fff' stroke-width='1.8'/>\
<path d='M12 3c2.7 2.4 4.3 5.7 4.3 9s-1.6 6.6-4.3 9c-2.7-2.4-4.3-5.7-4.3-9s1.6-6.6 4.3-9z' fill='none' stroke='%23fff' stroke-width='1.8'/>\
<path d='M5 12h14' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'/>\
</svg>");
}

/* bubble: absolute so it doesn't shift the button */
.ts-webfab__bubble{
  position:absolute;
  right: 64px;                 /* 54px button + 10px gap */
  bottom: 7px;                 /* vertically centered against button */
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:10px;
  background:#243447;
  color:#fff;
  text-decoration:none;
  box-shadow:0 6px 18px rgba(0,0,0,.22);
  white-space:nowrap;
  opacity:0; visibility:hidden; transform:translateX(6px);
  transition:opacity .15s ease, transform .15s ease, visibility .15s ease;
}
.ts-webfab:hover .ts-webfab__bubble,
.ts-webfab:focus-within .ts-webfab__bubble{ opacity:1; visibility:visible; transform:translateX(0); }

/* hide bubble on small screens */
@media (max-width:680px){ .ts-webfab__bubble{ display:none !important; } }

/* no print */
@media print{ .ts-webfab{ display:none !important; } }