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

MediaWiki:Common.css: Difference between revisions

From WikiDeal
TEST: force Vector-2022 main menu open (reversible, investigation)
 
Vector-2022: nav menu always visible by default on desktop (force-open dropdown as static column)
Line 1: Line 1:
/* TEST: force Vector-2022 main menu dropdown open (reversible). AI-Admin-Assistant 2026-06-13 */
/* ===================================================================
  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) {
@media screen and (min-width: 1000px) {
   #vector-main-menu-dropdown-checkbox ~ .vector-dropdown-content,
   /* Force the main-menu dropdown content open and inline it */
   .vector-main-menu-dropdown .vector-dropdown-content {
   .vector-main-menu-dropdown .vector-dropdown-content {
     opacity: 1 !important;
     opacity: 1 !important;
Line 8: Line 21:
     position: static !important;
     position: static !important;
     box-shadow: none !important;
     box-shadow: none !important;
    background: transparent !important;
     max-width: none !important;
     max-width: none !important;
     max-height: none !important;
     max-height: none !important;
     padding: 8px 0 !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;
   }
   }
}
}

Revision as of 22:28, 13 June 2026

/* ===================================================================
   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;
  }
}