Jump to content

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

From Wikipedia, the free encyclopedia
Content deleted Content added
m suppress warnings
add static-row-tie class
Tag: Reverted
Line 17: Line 17:
}
}
body:not(.skin-minerva) .static-row-numbers.sortable tbody tr:not(.static-row-header)::before,
body:not(.skin-minerva) .static-row-numbers.sortable tbody tr:not(.static-row-header)::before,
body:not(.skin-minerva) .static-row-numbers.sortable tbody tr:not(.static-row-tie)::before,
body.skin-minerva .static-row-numbers tbody tr:not(:first-child):not(.static-row-header)::before,
body.skin-minerva .static-row-numbers tbody tr:not(:first-child):not(.static-row-header)::before,
table.static-row-numbers:not(.sortable) tbody tr:not(:first-child):not(.static-row-header)::before {
table.static-row-numbers:not(.sortable) tbody tr:not(:first-child):not(.static-row-header)::before {
Line 22: Line 23:
content: counter(rowNumber);
content: counter(rowNumber);
vertical-align: inherit;
vertical-align: inherit;
}

body:not(.skin-minerva) .static-row-numbers.sortable tbody tr.static-row-tie::before {
counter-increment: rowNumber;
border-top: none;
}
}



Revision as of 07:32, 30 July 2021

table.static-row-numbers {
  counter-reset: rowNumber;
}
body.skin-minerva .static-row-numbers2.sortable {
  counter-reset: rowNumber -1;
}
body.skin-minerva .static-row-numbers2.sortable.static-row-header-two {
  counter-reset: rowNumber -2;
} 
table.static-row-numbers tr::before {
  display: table-cell;
  padding: 0 0.5em;
  text-align: right;
}
table.static-row-numbers tr::before {
  content: "";
}
body:not(.skin-minerva) .static-row-numbers.sortable tbody tr:not(.static-row-header)::before,
body:not(.skin-minerva) .static-row-numbers.sortable tbody tr:not(.static-row-tie)::before,
body.skin-minerva .static-row-numbers tbody tr:not(:first-child):not(.static-row-header)::before,
table.static-row-numbers:not(.sortable) tbody tr:not(:first-child):not(.static-row-header)::before {
  counter-increment: rowNumber;
  content: counter(rowNumber);
  vertical-align: inherit;
}

body:not(.skin-minerva) .static-row-numbers.sortable tbody tr.static-row-tie::before {
  counter-increment: rowNumber;
  border-top: none;
}

/*
table.static-row-numbers.sortable thead tr::before,
table.static-row-numbers tr.static-row-header::before,
body.skin-minerva .static-row-numbers tbody tr:first-child::before,
table.static-row-numbers:not(.sortable) tbody tr:first-child::before,
body.skin-minerva .static-row-numbers.static-row-header-two tbody tr:nth-child(2)::before,
table.static-row-numbers.static-row-header-two:not(.sortable) tbody tr:nth-child(2)::before {
  content: "";
}*/

.static-row-header-hash thead tr::before {
  content: "#";
}
.static-row-header-row thead tr::before {
  content: "Row";
}
.static-row-numbers.wikitable tr::before {
  background-color: #eaecf0;
}
body:not(.skin-minerva) .static-row-numbers.mw-datatable:not(.wikitable) tr::before {
  background-color: #eaeeff;
}
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 {
  border:1px solid #a2a9b1;	
}
.static-row-numbers-period2 tbody tr::before {
  content: counter(rowNumber) ".";
}