MediaWiki:Common.css: Difference between revisions

m Keep expand controls above floating contents
m Prevent floating page tool overlap
Line 41: Line 41:
}
}


.muhro-floating-toc,
.muhro-floating-tools {
.muhro-collapse-controls {
   position: fixed;
   position: fixed;
  top: 4.5rem;
   right: 1rem;
   right: 1rem;
  z-index: 1002;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
   max-width: min(22rem, calc(100vw - 2rem));
   max-width: min(22rem, calc(100vw - 2rem));
}
}


.muhro-collapse-controls {
.muhro-collapse-controls {
  top: 4.5rem;
  z-index: 1002;
   display: flex;
   display: flex;
   flex-wrap: wrap;
   flex-wrap: wrap;
Line 63: Line 66:


.muhro-floating-toc {
.muhro-floating-toc {
   top: 7.2rem;
   max-width: min(22rem, calc(100vw - 2rem));
  z-index: 1000;
}
}


Line 194: Line 196:


@media (max-width: 720px) {
@media (max-width: 720px) {
   .muhro-floating-toc,
   .muhro-floating-tools {
  .muhro-collapse-controls {
    top: 0.5rem;
     right: 0.5rem;
     right: 0.5rem;
     max-width: calc(100vw - 1rem);
     max-width: calc(100vw - 1rem);
   }
   }


   .muhro-collapse-controls {
   .muhro-floating-toc,
    top: 0.5rem;
   .muhro-floating-toc-panel {
  }
     width: calc(100vw - 1rem);
 
    max-width: calc(100vw - 1rem);
   .muhro-floating-toc {
     top: 3.2rem;
   }
   }


   .muhro-floating-toc-panel {
   .muhro-floating-toc-panel {
    width: calc(100vw - 1rem);
    max-width: calc(100vw - 1rem);
     max-height: 55vh;
     max-height: 55vh;
   }
   }