MediaWiki:Common.css: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 1,238:
}
 
/* Row-label (first) column: single-line, readable minimum, frozen while
/* --- Fix wikitables --- */
scrolling, opaque background, with drawn left+right borders. */
 
.wikitable th:first-child,
.wikitable td:first-child { white-space: nowrap; }
.wikitable th:first-child,
.wikitable td:first-child {
.wikitable td:first-child { white-space: nowrap; }
min-width: 16em;
position: sticky;
left: 0;
background: inherit; /* so scrolled cells don't show through */
z-index: 1;
/* border-collapse drops a sticky cell's own borders, so paint the left and
right edges with box-shadow — it stays put with the sticky cell. */
box-shadow: inset 1px 0 0 #a2a9b1, /* left edge */
1px 0 0 #a2a9b1; /* right edge */
}
.wikitable td:first-child { background-color: #f8f9fa; } /* body cells */
.wikitable th:first-child { background-color: #eaecf0; } /* header cell */