MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
(noresize test, might revert) |
(second experiment, frozen first column, might revert) |
||
| Line 6: | Line 6: | ||
max-width: 100vw; | max-width: 100vw; | ||
display: block; | display: block; | ||
} | |||
.frozen-table th:first-child, | |||
.frozen-table td:first-child { | |||
position: sticky; | |||
left: 0; | |||
background: white; | |||
z-index: 1; | |||
} | |||
.frozen-table th:first-child { | |||
background: #f8f9fa; | |||
z-index: 2; | |||
} | |||
.frozen-table { | |||
table-layout: fixed; | |||
min-width: 100%; | |||
} | } | ||
Revision as of 15:09, 14 November 2025
/* CSS placed here will be applied to all skins */
.noresize {
overflow-x: scroll;
overflow-y: visible;
width: 100%;
max-width: 100vw;
display: block;
}
.frozen-table th:first-child,
.frozen-table td:first-child {
position: sticky;
left: 0;
background: white;
z-index: 1;
}
.frozen-table th:first-child {
background: #f8f9fa;
z-index: 2;
}
.frozen-table {
table-layout: fixed;
min-width: 100%;
}