MediaWiki:Common.css: Difference between revisions

m Prevent floating page tool overlap
Fix mobile collapse controls overlapping Minerva search
 
(9 intermediate revisions by one other user not shown)
Line 17: Line 17:
#ca-viewsource { display: none !important; }
#ca-viewsource { display: none !important; }
#footer-places-disclaimer { display: none; }
#footer-places-disclaimer { display: none; }
.muhro-early-collapsed > tbody > tr:not(:first-child),
.muhro-early-collapsed > thead + tbody,
.muhro-early-collapsed > tr:not(:first-child),
.muhro-early-collapsed > .mw-collapsible-content {
  display: none;
}
.muhro-early-toggle {
  float: right;
  margin-left: 0.75rem;
  border: 0;
  background: transparent;
  color: #36c;
  cursor: pointer;
  font: inherit;
  padding: 0;
}
.muhro-early-toggle:hover,
.muhro-early-toggle:focus {
  text-decoration: underline;
}


.muhro-floating-tools {
.muhro-floating-tools {
Line 197: Line 174:
@media (max-width: 720px) {
@media (max-width: 720px) {
   .muhro-floating-tools {
   .muhro-floating-tools {
     top: 0.5rem;
    /* Keep the controls below Minerva's 54px mobile header. */
     top: calc(3.375rem + 0.5rem);
     right: 0.5rem;
     right: 0.5rem;
     max-width: calc(100vw - 1rem);
     max-width: calc(100vw - 1rem);
  }
  /* Do not cover Minerva overlays such as the mobile search interface. */
  html.overlay-enabled .muhro-floating-tools {
    display: none;
   }
   }


Line 215: Line 198:
     padding: 0.2rem 0.55rem;
     padding: 0.2rem 0.55rem;
   }
   }
}
/* Keep MediaWiki caption collapsible toggles below section headings. */
.mw-parser-output table.mw-collapsible > caption > .mw-collapsible-toggle {
  display: block;
  float: none;
  width: max-content;
  margin: 0.15rem 0 0;
  white-space: nowrap;
  font-size: 0.85em;
  font-weight: 600;
  line-height: 1.2;
}
.mw-parser-output table.mw-collapsible.mw-collapsed:has(> caption) {
  width: 100%;
  min-width: min(100%, 32rem);
}
}