MediaWiki:Common.css: Difference between revisions

Codex (talk | contribs)
Keep collapsed caption tables full width
Fix mobile collapse controls overlapping Minerva search
 
(3 intermediate revisions by one other user not shown)
Line 174: 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 193: Line 199:
   }
   }
}
}
/* Keep MediaWiki caption collapsible toggles inline with section headings. */
/* Keep MediaWiki caption collapsible toggles below section headings. */
.mw-parser-output table.mw-collapsible > caption > h1,
.mw-parser-output table.mw-collapsible > caption > h2,
.mw-parser-output table.mw-collapsible > caption > h3,
.mw-parser-output table.mw-collapsible > caption > h4,
.mw-parser-output table.mw-collapsible > caption > h5,
.mw-parser-output table.mw-collapsible > caption > h6 {
  display: inline;
}
 
.mw-parser-output table.mw-collapsible > caption > .mw-collapsible-toggle {
.mw-parser-output table.mw-collapsible > caption > .mw-collapsible-toggle {
   display: inline-block;
   display: block;
   float: none;
   float: none;
   margin-left: 0.55rem;
   width: max-content;
   vertical-align: baseline;
   margin: 0.15rem 0 0;
   white-space: nowrap;
   white-space: nowrap;
   font-size: 0.85em;
   font-size: 0.85em;
   font-weight: 600;
   font-weight: 600;
   line-height: 1;
   line-height: 1.2;
}
}