MediaWiki:Common.css: Difference between revisions

mNo edit summary
mNo edit summary
Line 137: Line 137:
}
}


/* Scroll container */
.l1-compare-wrap {
.l1-compare-wrap {
  display: block;
   overflow-x: auto;
   overflow-x: auto;
   max-width: 100%;
   max-width: 100%;
Line 146: Line 145:
}
}


/* Keep cells from wrapping so horizontal scroll behaves predictably */
table.l1-compare {
table.l1-compare {
   white-space: nowrap;
   white-space: nowrap;
Line 154: Line 152:
}
}


/* Sticky header row */
table.l1-compare th {
table.l1-compare th {
   position: -webkit-sticky;
   position: -webkit-sticky;
   position: sticky;
   position: sticky;
   top: 0;
   top: 0;
   background: #f8f9fa; /* Vector/Minerva-friendly */
   background: #f8f9fa;
   color: #202122;
   color: #202122;
   z-index: 10;
   z-index: 10;
}
}


/* Sticky first column (including the top-left corner cell) */
table.l1-compare th:first-child,
table.l1-compare th:first-child,
table.l1-compare td:first-child {
table.l1-compare td:first-child {
Line 175: Line 171:
}
}


/* Ensure the top-left cell sits above both sticky layers */
table.l1-compare th:first-child {
table.l1-compare th:first-child {
   z-index: 11;
   z-index: 11;
   background: #f8f9fa;
   background: #f8f9fa;
}
}