Template:Static row numbers/styles.css: Difference between revisions

Jump to navigation Jump to search
Add exclusion for explicit background color for Minerva skin.
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: 0 0.5em;
   padding-right: 0.5em;
   text-align: right;
   text-align: right;
}
}
Line 16: Line 17:
   content: "";
   content: "";
}
}
body:not(.skin-minerva) .static-row-numbers.sortable tbody tr:not(.static-row-header):not(.static-row-numbers-norank)::before,
.static-row-numbers-skip {
body.skin-minerva .static-row-numbers tbody tr:not(:first-child):not(.static-row-header):not(.static-row-numbers-norank)::before,
  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 {
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu