Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

User:Ashling Solette/jsn-salt: Difference between revisions

From EVE University Wiki
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:
!style="padding-right: 1em; text-align: right;"|47,407,675,770
! 47,407,675,770
!style="padding-right: 1em; text-align: right;"| -71,705,978
! -71,705,978
!style="padding-right: 1em; text-align: right;"|1,441,207,585
! 1,441,207,585
!style="padding-right: 1em; text-align: right;"|0.32
! 0.32
!style="padding-right: 1em; text-align: right;"|< 0.01
! < 0.01
!style="padding-right: 1em; text-align: right;"|0.01
! 0.01
!style="text-align: center;"|0.32
! 0.32
!
!
|}
|}