More actions
Add proof of concept for CSS. |
|||
| Line 26: | Line 26: | ||
text-align: right; | text-align: right; | ||
} | } | ||
/* Start proof of concept */ | |||
.jsn-stats .sum th { | |||
background-color: var(--background-color-warning-subtle); | |||
text-align: end; | |||
padding-right: 1em; | |||
} | |||
.jsn-stats .sum th:first-of-type { | |||
text-align: start; /* As we don't want the first column to right align we need to overrule */ | |||
padding-right: calc(0.75*1rem); /* "reset"the right padding. Picked this up from the inspector as the setting for the wikitable class. I really wanted to use a var() but that broke the CSS for some reason. */ | |||
} | |||
.jsn-stats .sum th:nth-last-of-type(2) { | |||
text-align: center; /* As with the first column overrule the right align. */ | |||
padding-right: calc(0.75*1rem); | |||
} | |||
/* End proof of concept */ | |||
}} | }} | ||
{| class="wikitable sortable jsn-stats" style="margin-left: 1em;" | {| class="wikitable sortable jsn-stats" style="margin-left: 1em;" | ||
| Line 88: | Line 105: | ||
|2.7 | |2.7 | ||
|10.00014 | |10.00014 | ||
|- | |- class=sum | ||
!Sum Of All Warps: | ! Sum Of All Warps: | ||
! | ! 47,407,675,770 | ||
! | ! -71,705,978 | ||
! | ! 1,441,207,585 | ||
! | ! 0.32 | ||
! | ! < 0.01 | ||
! | ! 0.01 | ||
! | ! 0.32 | ||
! | ! | ||
|} | |} | ||