ids theme: tabular figures for table digits (vertical alignment of numeric columns)
Change-Id: I108491093898f081659d1555584bb4d1a9f556b5
diff --git a/inst/reveal.js-5.2.1/css/theme/source/ids.scss b/inst/reveal.js-5.2.1/css/theme/source/ids.scss
index c1068ac..9fd8e45 100644
--- a/inst/reveal.js-5.2.1/css/theme/source/ids.scss
+++ b/inst/reveal.js-5.2.1/css/theme/source/ids.scss
@@ -739,6 +739,10 @@
font-family: 'Fira Sans Condensed', sans-serif;
font-weight: 400;
font-size: 16px;
+ // Fira Sans Condensed ships proportional figures by default, so the digits
+ // in neighbouring rows do not line up; tabular numbers (tnum) fix the digit
+ // widths and align numeric table columns vertically.
+ font-variant-numeric: tabular-nums;
}
.reveal table.dataTable {
diff --git a/inst/reveal.js-5.2.1/dist/theme/ids.css b/inst/reveal.js-5.2.1/dist/theme/ids.css
index 52f3cb7..8be1e80 100644
--- a/inst/reveal.js-5.2.1/dist/theme/ids.css
+++ b/inst/reveal.js-5.2.1/dist/theme/ids.css
@@ -823,6 +823,7 @@
font-family: "Fira Sans Condensed", sans-serif;
font-weight: 400;
font-size: 16px;
+ font-variant-numeric: tabular-nums;
}
.reveal table.dataTable {