Anonymous user
Template:Static row numbers/styles.css: Difference between revisions
Template:Static row numbers/styles.css (view source)
Revision as of 15:51, 16 December 2022
, 1 year agoAdd exclusion for explicit background color for Minerva skin.
Richardpruen (talk | contribs) m (1 revision imported) |
imported>Dmitry Brant (Add exclusion for explicit background color for Minerva skin.) |
||
Line 1: | Line 1: | ||
/* {{pp-template}} */ | |||
table.static-row-numbers { | table.static-row-numbers { | ||
counter-reset: rowNumber; | counter-reset: rowNumber; | ||
Line 10: | Line 11: | ||
table.static-row-numbers tr::before { | table.static-row-numbers tr::before { | ||
display: table-cell; | display: table-cell; | ||
padding: | padding-right: 0.5em; | ||
text-align: right; | text-align: right; | ||
} | } | ||
Line 16: | Line 17: | ||
content: ""; | content: ""; | ||
} | } | ||
.static-row-numbers-skip { | |||
counter-increment: rowNumber; | |||
} | |||
table.static-row-numbers.sortable tbody tr:not(.static-row-header):not(.static-row-numbers-norank)::before, | |||
table.static-row-numbers:not(.sortable) tbody tr:not(:first-child):not(.static-row-header):not(.static-row-numbers-norank)::before { | table.static-row-numbers:not(.sortable) tbody tr:not(:first-child):not(.static-row-header):not(.static-row-numbers-norank)::before { | ||
counter-increment: rowNumber; | counter-increment: rowNumber; | ||
content: counter(rowNumber); | content: counter(rowNumber); | ||
padding-right: 0.5em; | |||
padding-left: 0.5em; | |||
vertical-align: inherit; | vertical-align: inherit; | ||
} | } | ||
Line 34: | Line 39: | ||
}*/ | }*/ | ||
.static-row-header-text thead tr::before { | |||
content: "No."; | |||
padding-right: 0.5em; | |||
padding-left: 0.5em; | |||
font-weight: bold; | |||
} | |||
.static-row-header-hash thead tr::before { | .static-row-header-hash thead tr::before { | ||
content: "#"; | content: "#"; | ||
padding-right: 0.5em; | |||
padding-left: 0.5em; | |||
font-weight: bold; | |||
} | } | ||
.static-row-header-row thead tr::before { | .static-row-header-row thead tr::before { | ||
content: "Row"; | content: "Row"; | ||
padding-right: 0.5em; | |||
padding-left: 0.5em; | |||
font-weight: bold; | |||
} | } | ||
.static-row-numbers.wikitable tr::before { | body:not(.skin-minerva) .static-row-numbers.wikitable tr::before { | ||
background-color: #eaecf0; | background-color: #eaecf0; | ||
vertical-align: middle; | |||
} | } | ||
body:not(.skin-minerva) .static-row-numbers.mw-datatable:not(.wikitable) tr::before { | body:not(.skin-minerva) .static-row-numbers.mw-datatable:not(.wikitable) tr::before { | ||
Line 48: | Line 66: | ||
table.static-row-numbers.wikitable tbody tr:not(.static-row-header)::before , | table.static-row-numbers.wikitable tbody tr:not(.static-row-header)::before , | ||
body:not(.skin-minerva) .static-row-numbers.mw-datatable:not(.wikitable) tbody tr::before { | body:not(.skin-minerva) .static-row-numbers.mw-datatable:not(.wikitable) tbody tr::before { | ||
border:1px solid #a2a9b1; | border: 1px solid #a2a9b1; | ||
} | } | ||
.static-row-numbers-period2 tbody tr::before { | .static-row-numbers-period2 tbody tr::before { |