MediaWiki:Common.css

From HandWiki Stage
Revision as of 17:06, 9 May 2026 by Harold (talk | contribs)
Jump to navigation Jump to search

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.
/* HandWiki Stage top header roll-down navigation */

/* Remove old red test line */
body {
    border-top: none !important;
}

/* Put top menu in the header line, right from logo */
#handwiki-topnav {
    position: absolute !important;
    top: 0.35em !important;
    left: 190px !important;
    z-index: 100000 !important;
    display: flex !important;
    gap: 10px !important;
    align-items: flex-start !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 13px !important;
}

/* Dropdown container */
#handwiki-topnav .handwiki-dropdown {
    position: relative !important;
    display: inline-block !important;
}

/* Dropdown button */
#handwiki-topnav .handwiki-dropdown-button {
    display: block !important;
    border: 1px solid #a2a9b1 !important;
    background: #ffffff !important;
    color: #0645ad !important;
    padding: 4px 10px !important;
    min-width: 140px !important;
    text-align: left !important;
    font-weight: bold !important;
    cursor: pointer !important;
    line-height: 1.4 !important;
}

/* Dropdown panel */
#handwiki-topnav .handwiki-dropdown-content {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    z-index: 100001 !important;
    min-width: 230px !important;
    background: #ffffff !important;
    border: 1px solid #a2a9b1 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18) !important;
    padding: 6px 0 !important;
}

/* Show dropdown on hover */
#handwiki-topnav .handwiki-dropdown:hover .handwiki-dropdown-content {
    display: block !important;
}

/* Dropdown links */
#handwiki-topnav .handwiki-dropdown-content a {
    display: block !important;
    padding: 6px 12px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

#handwiki-topnav .handwiki-dropdown-content a:hover {
    background: #eaecf0 !important;
}

/* Hide the old left sidebar links */
#mw-panel .portal,
#mw-panel nav,
#mw-panel .vector-menu-portal,
#mw-panel #p-navigation,
#mw-panel #p-tb {
    display: none !important;
}
/* Smaller logo */
#p-logo,
#p-logo a {
    width: 130px !important;
    height: 130px !important;
}

#p-logo {
    left: 20px !important;
    top: 20px !important;
    background-size: contain !important;
}

#p-logo a {
    background-size: contain !important;
}