MediaWiki:Common.css

From HandWiki Stage
Revision as of 17:01, 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 if it exists */
body {
    border-top: none !important;
}

/* Top menu: same header line as user/login links, right of logo */
#handwiki-topnav {
    position: absolute;
    top: 0.35em;
    left: 190px;
    z-index: 100000;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    font-size: 13px;
}

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

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

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

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

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

#handwiki-topnav .handwiki-dropdown-content a:hover {
    background: #eaecf0;
}
/* Hide old left sidebar navigation, keep logo */
#mw-panel .portal,
#p-navigation,
#p-tb {
    display: none !important;
}

/* Remove leftover sidebar space in Vector */
#content,
.mw-body,
#footer {
    margin-left: 0 !important;
}