Difference between revisions of "User:SIGSTKFLT/exp/style.css"
From Geohashing
< User:SIGSTKFLT | exp
(use an en-dash instead of X) |
m (change counter name to something less generic) |
||
Line 1: | Line 1: | ||
.sig-exp-table { /* https://stackoverflow.com/questions/17012421/auto-number-table-rows */ | .sig-exp-table { /* https://stackoverflow.com/questions/17012421/auto-number-table-rows */ | ||
− | counter-reset: | + | counter-reset: sig_expedition_count; |
} | } | ||
.sig-exp-table .sig-exp-table-type-r { | .sig-exp-table .sig-exp-table-type-r { | ||
− | counter-increment: | + | counter-increment: sig_expedition_count; |
} | } | ||
.sig-exp-table tr td:first-child::before{ | .sig-exp-table tr td:first-child::before{ | ||
Line 9: | Line 9: | ||
} | } | ||
.sig-exp-table tr.sig-exp-table-type-r td:first-child::before { | .sig-exp-table tr.sig-exp-table-type-r td:first-child::before { | ||
− | content: counter( | + | content: counter(sig_expedition_count) "."; |
padding-right:3px; | padding-right:3px; | ||
} | } |
Latest revision as of 18:55, 7 March 2020
.sig-exp-table { /* https://stackoverflow.com/questions/17012421/auto-number-table-rows */ counter-reset: sig_expedition_count; } .sig-exp-table .sig-exp-table-type-r { counter-increment: sig_expedition_count; } .sig-exp-table tr td:first-child::before{ content: "–"; } .sig-exp-table tr.sig-exp-table-type-r td:first-child::before { content: counter(sig_expedition_count) "."; padding-right:3px; }