MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(one more go for frozen tables) |
||
| Line 12: | Line 12: | ||
position: sticky; | position: sticky; | ||
left: 0; | left: 0; | ||
background: | background: #f8f9fa; | ||
z-index: 1; | z-index: 1; | ||
border: 1px solid #a2a9b1; | border: 1px solid #a2a9b1; | ||
} | |||
.frozen-table td:first-child { | |||
background: white; | |||
} | } | ||
.frozen-table th:first-child { | .frozen-table th:first-child { | ||
z-index: 2; | z-index: 2; | ||
border-left: 1px solid #a2a9b1; | |||
border-right: 1px solid #a2a9b1; | |||
} | } | ||
.frozen-table { | .frozen-table { | ||
table-layout: fixed; | table-layout: fixed; | ||
min-width: 100%; | min-width: 100%; | ||
border-collapse: separate; | |||
border-spacing: 0; | |||
} | |||
.frozen-table, | |||
.frozen-table th, | |||
.frozen-table td { | |||
border: 1px solid #a2a9b1; | |||
} | } | ||
Revision as of 15:24, 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: #f8f9fa;
z-index: 1;
border: 1px solid #a2a9b1;
}
.frozen-table td:first-child {
background: white;
}
.frozen-table th:first-child {
z-index: 2;
border-left: 1px solid #a2a9b1;
border-right: 1px solid #a2a9b1;
}
.frozen-table {
table-layout: fixed;
min-width: 100%;
border-collapse: separate;
border-spacing: 0;
}
.frozen-table,
.frozen-table th,
.frozen-table td {
border: 1px solid #a2a9b1;
}