MediaWiki:Common.css: Difference between revisions

From Hidden Mickey Wiki

No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
 
(211 intermediate revisions by the same user not shown)
Line 12: Line 12:
#ca-talk, .mw-indicator-talkpages { display: none !important; }
#ca-talk, .mw-indicator-talkpages { display: none !important; }


/* Change title bar, enables <title> to be different from display
/* Hide DIVs where class="d-flex flex-row" or class="flex-row d-flex", which removes "Page / Action / Tools" dropdowns */
@media (min-width: 768px) { .mw-desktop-sitename { visibility: hidden; position: relative; } }
div[class="d-flex flex-row"], div[class="flex-row d-flex"] { display: none !important; }
@media (min-width: 768px) { .mw-desktop-sitename::after { content: "Hidden Mickey Wiki"; visibility: visible; position: absolute; top: 0; left: 0; } }
*/


/* === Settings dropdown (site-wide) ===
/* Shrink top gap in main content page */
  Put this in MediaWiki:Common.css
#content,.mw-body,.mw-body-content { margin-top: -20px !important; padding-top: 0px !important; line-height: 1.5 !important; }
*/


/* container */
/* Medik sidebar shrink */
#mw-settings-dropdown {
body.skin-medik #mw-navigation { width: 270px; min-width: 270px; }    /* enforce minimum width */
  display: inline-block;
body.skin-medik #mw-panel { max-width: 270px; }   /* ensure panel items don’t overflow */
  position: relative;
  font-size: 0.95rem;
  vertical-align: middle;
}


/* button (look like a header link/button) */
/* Center sidebar items in Medik skin; Adjust individual links if needed */
#mw-settings-dropdown .mw-settings-button {
#mw-navigation { display: flex; flex-direction: column; align-items: center; text-align: center; }
  background: transparent;
#mw-navigation li { width: 100%; /* let links fill the available width */ }
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  white-space: nowrap;
}


/* visible focus outline (keyboard users) */
/* Make sidebar items centered and highlighted */
#mw-settings-dropdown .mw-settings-button:focus {
#mw-navigation li { background-color: #f0f0f0; border-radius: 2px; margin: 2px 0; padding: 2px 4px; display: inline-block; /* make the box shrink to content */
  outline: 2px solid Highlight;
    text-align: center; cursor: pointer; transition: background-color 0.2s; font-weight: bold; }
  outline-offset: 2px;
}


/* the dropdown list */
/* Center the li boxes in the sidebar, and add a hover effect */
#mw-settings-dropdown .mw-settings-list {
#mw-navigation ul { display: flex; flex-direction: column; align-items: center; padding: 0; list-style: none; }
  position: absolute;
#mw-navigation li:hover { background-color: #dcdcdc; }
  top: 100%;
  right: 0;
  min-width: 180px;
  margin: 6px 0 0 0;
  padding: 4px 0;
  list-style: none;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  background: var(--mw-ui-surface, #fff);
  z-index: 1200;
}


/* list items */
/* On medium screens and larger: use flex layout */
#mw-settings-dropdown .mw-settings-list li a {
@media (min-width: 768px) {
   display: block;
   .row { display: flex; flex-wrap: nowrap; } /* keep them side-by-side */
  padding: 8px 12px;
   .sidebar, .col-md-3 { flex: 0 0 auto; } /* shrink-to-fit, .sidebar keeps natural width */
   text-decoration: none;
  .col-12.col-md-9.col-xl-10.py-md-3.px-md-5 { flex: 1 1 auto !important; max-width: none !important; padding-left: 1rem !important; padding-right: 1rem !important; }
  color: inherit;
}
 
/* hover / focus */
#mw-settings-dropdown .mw-settings-list li a:hover,
#mw-settings-dropdown .mw-settings-list li a:focus {
  background: rgba(0,0,0,0.06);
}
 
/* small screens: hide (optional) */
@media (max-width: 640px) {
  #mw-settings-dropdown { display: none; }
}
}

Latest revision as of 08:52, 28 October 2025

/* CSS placed here will be applied to all skins */
/* Quote boxes */
blockquote { background-color: #e9ecef;padding: 5px;border-radius: 3px;font-style: italic;max-width: 860pt;word-wrap: break-word; }
blockquote cite { display: block;margin-top: 5px;font-size: 0.9em;color: #555;text-align: left; }

/* Disneyland fonts for the title bar; use larger font for desktop computers */
@font-face { font-family: 'Waltograph';src: url('/images/f/fb/Waltograph42.otf') format('opentype'); }
#p-logo a { font-family: 'Waltograph', sans-serif;font-size: 28px; }
@media (min-width: 768px) { #p-logo a { font-family: 'Waltograph', sans-serif;font-size: 42px; } }

/* Disable Discussion pages */
#ca-talk, .mw-indicator-talkpages { display: none !important; }

/* Hide DIVs where class="d-flex flex-row" or class="flex-row d-flex", which removes "Page / Action / Tools" dropdowns */
div[class="d-flex flex-row"], div[class="flex-row d-flex"] { display: none !important; }

/* Shrink top gap in main content page */
#content,.mw-body,.mw-body-content { margin-top: -20px !important; padding-top: 0px !important; line-height: 1.5 !important; }

/* Medik sidebar shrink */
body.skin-medik #mw-navigation { width: 270px; min-width: 270px; }    /* enforce minimum width */
body.skin-medik #mw-panel { max-width: 270px; }   /* ensure panel items don’t overflow */

/* Center sidebar items in Medik skin; Adjust individual links if needed */
#mw-navigation { display: flex; flex-direction: column; align-items: center; text-align: center; }
#mw-navigation li { width: 100%; /* let links fill the available width */ }

/* Make sidebar items centered and highlighted */
#mw-navigation li { background-color: #f0f0f0; border-radius: 2px; margin: 2px 0; padding: 2px 4px; display: inline-block;  /* make the box shrink to content */
    text-align: center; cursor: pointer; transition: background-color 0.2s; font-weight: bold; }

/* Center the li boxes in the sidebar, and add a hover effect */
#mw-navigation ul { display: flex; flex-direction: column; align-items: center; padding: 0; list-style: none; }
#mw-navigation li:hover { background-color: #dcdcdc; }

/* On medium screens and larger: use flex layout */
@media (min-width: 768px) {
  .row { display: flex; flex-wrap: nowrap; } /* keep them side-by-side */
  .sidebar, .col-md-3 { flex: 0 0 auto; } /* shrink-to-fit, .sidebar keeps natural width */
  .col-12.col-md-9.col-xl-10.py-md-3.px-md-5 { flex: 1 1 auto !important; max-width: none !important; padding-left: 1rem !important; padding-right: 1rem !important; }
}