MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
| (12 intermediate revisions by the same user not shown) | |||
| Line 10: | Line 10: | ||
/*freezes first column of table, used on live compilation analysis tables*/ | /*freezes first column of table, used on live compilation analysis tables*/ | ||
.frozen-table th:first-child, | /* override default */ | ||
.frozen-table td:first-child { | .wikitable.frozen-table { | ||
border-top: 1px solid #a2a9b1; | |||
border-left: 0; | |||
border-bottom: 0; | |||
border-right: 0; | |||
} | |||
.wikitable.frozen-table > * > tr > th, | |||
.wikitable.frozen-table > * > tr > td { | |||
border: none; | |||
border-bottom: 1px solid #a2a9b1; | |||
border-right: 1px solid #a2a9b1; | |||
} | |||
.wikitable.frozen-table > * > tr > th:first-child, | |||
.wikitable.frozen-table > * > tr > td:first-child { | |||
position: sticky; | position: sticky; | ||
left: 0; | left: 0; | ||
border-left: 1px solid #a2a9b1; | |||
z-index: 1; | z-index: 1; | ||
white-space: nowrap; | |||
min-width: 100%; | |||
} | } | ||
.frozen-table th:first-child { | .frozen-table th:first-child { | ||
z-index: 2; | z-index: 2; | ||
background: #eaecf0; | background: #eaecf0; | ||
margin-right: -1px; | margin-right: -1px; | ||
} | } | ||
.frozen-table td:first-child { | .frozen-table td:first-child { | ||
background: #f8f9fa; | background: #f8f9fa; | ||
margin-right: -1px; | margin-right: -1px; | ||
} | } | ||
| Line 30: | Line 46: | ||
.frozen-table td:nth-child(2) { | .frozen-table td:nth-child(2) { | ||
border-left: none; | border-left: none; | ||
} | } | ||
.frozen-table { | .frozen-table { | ||
| Line 41: | Line 52: | ||
border-spacing: 0; | border-spacing: 0; | ||
border: 0.5px solid #a2a9b1; | border: 0.5px solid #a2a9b1; | ||
} | } | ||
Latest revision as of 17:49, 14 November 2025
/* CSS placed here will be applied to all skins */
/*fits tables*/
.noresize {
overflow-x: scroll;
overflow-y: visible;
width: 100%;
max-width: 100vw;
display: block;
}
/*freezes first column of table, used on live compilation analysis tables*/
/* override default */
.wikitable.frozen-table {
border-top: 1px solid #a2a9b1;
border-left: 0;
border-bottom: 0;
border-right: 0;
}
.wikitable.frozen-table > * > tr > th,
.wikitable.frozen-table > * > tr > td {
border: none;
border-bottom: 1px solid #a2a9b1;
border-right: 1px solid #a2a9b1;
}
.wikitable.frozen-table > * > tr > th:first-child,
.wikitable.frozen-table > * > tr > td:first-child {
position: sticky;
left: 0;
border-left: 1px solid #a2a9b1;
z-index: 1;
white-space: nowrap;
min-width: 100%;
}
.frozen-table th:first-child {
z-index: 2;
background: #eaecf0;
margin-right: -1px;
}
.frozen-table td:first-child {
background: #f8f9fa;
margin-right: -1px;
}
.frozen-table th:nth-child(2),
.frozen-table td:nth-child(2) {
border-left: none;
}
.frozen-table {
table-layout: fixed;
border-collapse: separate;
border-spacing: 0;
border: 0.5px solid #a2a9b1;
}