Jump to content
Gov  ·  Market  ·  Community  ·  Policies  ·  Funding  ·  Open Call  ·  Get started

MediaWiki:Common.css

From WikiDeal
Revision as of 22:28, 13 June 2026 by AI-Admin-Assistant (talk | contribs) (Vector-2022: nav menu always visible by default on desktop (force-open dropdown as static column))

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.
/* ===================================================================
   WikiDeal — navigation always visible (AI-Admin-Assistant, 2026-06-13)
   Goal (Théo): left nav menu (Gov · Market · User Groups · Recent
   changes · Get started + Key links) must be visible BY DEFAULT on
   Vector-2022 desktop, without clicking the ☰ button.

   How: Vector-2022 keeps the main-menu markup inside an "unpinned"
   dropdown that is hidden via the checkbox-hack. On wide screens we
   force that dropdown open and lay it out as a static left column
   (instead of a floating panel). Reversible: delete this block.

   Mobile (Minerva/MobileFrontend) is a different skin and ignores
   this; mobile nav is covered by MediaWiki:Sitenotice (top link bar).
   =================================================================== */
@media screen and (min-width: 1000px) {
  /* Force the main-menu dropdown content open and inline it */
  .vector-main-menu-dropdown .vector-dropdown-content {
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    position: static !important;
    box-shadow: none !important;
    background: transparent !important;
    max-width: none !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 4px 0 0 0 !important;
  }
  /* The ☰ toggle button is now redundant on wide screens — hide it */
  #vector-main-menu-dropdown-checkbox,
  .vector-main-menu-dropdown .vector-dropdown-label {
    display: none !important;
  }
  /* Hide the "Main menu / move to sidebar / hide" pinnable header row
     (it only makes sense in the collapsible flow) */
  .vector-main-menu-pinnable-header {
    display: none !important;
  }
}