MediaWiki:Common.css

From Heritage Apple Corps

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* Heritage Apple Corps — site-wide navigation bar */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&display=swap');

/* Hide Timeless decorative color bars */
#mw-header-hack,
#mw-header-nav-hack {
    display: none !important;
}

/* Push Timeless skin fixed elements below navbar */
#mw-header-container {
    top: 80px !important;
}

#mw-content-container {
    margin-top: calc(3.475em + 80px) !important;
}

/* === Navbar === */
#hac-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 2px 6px 2px rgba(26, 32, 44, 0.1);
}

#hac-navbar * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#hac-navbar .hac-container {
    max-width: 1230px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

#hac-navbar .hac-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
}

#hac-navbar .hac-branding a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #2e4aac;
    text-decoration: none;
    letter-spacing: -0.02em;
}

#hac-navbar .hac-branding a:hover {
    color: #192e75;
}

#hac-navbar .hac-logo {
    height: 48px;
    width: 48px;
    display: block;
}

/* Desktop nav links */
#hac-navbar .hac-nav {
    display: flex;
    align-items: center;
    list-style: none;
}

#hac-navbar .hac-nav li a {
    display: block;
    padding: 0.6em;
    color: #2d4aad;
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

#hac-navbar .hac-nav li a:hover {
    color: #192e75;
}

#hac-navbar .hac-nav li.hac-cta a {
    background: #2d4aad;
    color: #ffffff;
    border-radius: 4px;
    padding: 0.5em 1.2em;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 16px;
    transition: background 0.2s, box-shadow 0.2s;
}

#hac-navbar .hac-nav li.hac-cta a:hover {
    background: #3d60dc;
    color: #ffffff;
    box-shadow: 0 8px 20px -7px rgba(0, 0, 0, 0.15);
}

/* Hamburger toggle */
#hac-navbar .hac-toggle {
    display: none;
    background: none;
    border: 1px solid #1A202C;
    color: #1A202C;
    padding: 0.4em 0.6em;
    cursor: pointer;
    border-radius: 4px;
}

#hac-navbar .hac-toggle svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
    display: block;
}

/* Mobile nav overlay */
#hac-mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 2000;
    flex-direction: column;
    padding: 1.5rem;
    box-sizing: border-box;
    overflow-x: hidden;
}

#hac-mobile-nav * {
    box-sizing: border-box;
}

#hac-mobile-nav.active {
    display: flex;
}

#hac-mobile-nav .hac-mobile-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

#hac-mobile-nav .hac-mobile-close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #1A202C;
    padding: 0.2em;
}

#hac-mobile-nav .hac-mobile-list {
    list-style: none;
}

#hac-mobile-nav .hac-mobile-list li a {
    display: block;
    padding: 0.5em 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    color: #1A202C;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

#hac-mobile-nav .hac-mobile-list li a:hover {
    color: #3366cc;
}

#hac-mobile-nav .hac-mobile-list li.hac-cta a {
    background: #2d4aad;
    color: #ffffff;
    text-align: center;
    border-radius: 4px;
    margin-top: 1rem;
    padding: 0.8em 1em;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: none;
}

/* Footer disclaimer (public wiki only) */
#hac-footer-disclaimer {
    font-size: 0.8em;
    color: #7bafd4;
    text-align: center;
    padding: 0.6em 1.5em 0.4em;
    border-top: 1px solid #e0e0e0;
    margin-top: 0.5em;
    line-height: 1.5;
}

/* Responsive — mobile/tablet */
@media (max-width: 1074px) {
    /* Switch HAC navbar to mobile layout */
    #hac-navbar .hac-nav-wrap {
        display: none;
    }
    #hac-navbar .hac-toggle {
        display: block;
    }
    #hac-navbar .hac-inner {
        min-height: 64px;
    }
    #hac-navbar .hac-branding a {
        font-size: 20px;
    }
}

/* Timeless skin tablet adjustments (851-1099px): sidebar becomes
   dropdown triggers positioned above content block at top:-2.35em.
   Move them down to sit just above content, below the header. */
@media (min-width: 851px) and (max-width: 1099px) {
    #mw-site-navigation,
    #mw-related-navigation {
        top: -0.5em !important;
    }
}

/* Timeless skin mobile adjustments (below skin's own breakpoint) */
@media (max-width: 850px) {
    /* Push Timeless header elements below the 64px HAC navbar.
       At <=850px the Timeless skin switches #mw-header-container
       to position:static with padding-top:3.75em. The hamburger,
       gear, user icons, and site title (#site-navigation h2,
       #site-tools h2, #user-tools h2, #p-logo-text) become
       position:absolute relative to the viewport (not the
       container), so they must be pushed down individually. */
    #mw-header-container {
        padding-top: calc(3.75em + 64px) !important;
    }
    #p-logo-text {
        top: calc(1em + 64px) !important;
    }
    #user-tools h2 {
        top: calc(1em + 64px) !important;
    }
    #site-navigation h2 {
        top: calc(1em + 64px) !important;
    }
    #site-tools h2 {
        top: calc(1em + 64px) !important;
    }
    /* Remove default content margin (color bars are gone) */
    #mw-content-container {
        margin-top: 0 !important;
    }
}

/* Footer donate link */
#hac-footer-donate {
    text-align: center;
    padding: 0.8em 1.5em 0.4em;
    border-top: 1px solid #e0e0e0;
    margin-top: 0.5em;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9em;
}

#hac-footer-donate a {
    color: #2d4aad;
    text-decoration: none;
    font-weight: 600;
}

#hac-footer-donate a:hover {
    color: #192e75;
    text-decoration: underline;
}