ids theme: rework the references slide layout and auto-fit it
Address four points of criticism on the bibliography slide:
- "Authors (Year):" no longer sits bold on its own line but runs
inline in a medium weight -- it was overemphasized for text that is
already darker than the entry, and looked blurred at small sizes.
- Entries get breathing room below the title bar (padding, so the
vertical-centering wrapper's first-child margin reset cannot eat it).
- Authors running inline saves a line per entry.
- The slide auto-fits: decreasing font sizes are tried and, when even
the smallest would overflow, trailing entries move onto
automatically created "References (cont.)" slides (Reveal.sync()
registers them, so navigation, menu and numbering keep working).
In print/PDF the scroll box is disabled so long bibliographies flow
across pages instead of being clipped.
Change-Id: I59897723d9eabe824f7f5ed794cf75c0082e031b
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 8d56808..1489184 100644
--- a/inst/reveal.js-5.2.1/dist/theme/ids.css
+++ b/inst/reveal.js-5.2.1/dist/theme/ids.css
@@ -969,7 +969,9 @@
font-family: "Fira Sans Condensed", sans-serif;
font-size: 16px;
text-align: left;
- margin-top: 10px;
+ /* breathing room below the title bar; padding instead of margin, because
+ the vertical-centering wrapper zeroes its first child's margin */
+ padding-top: 18px;
max-height: 510px;
font-weight: 400;
color: #253b43;
@@ -983,13 +985,22 @@
.references .csl-entry {
color: #888888;
- margin-bottom: 0.5em;
+ /* the hanging indent visually separates entries; no extra margin needed */
+ margin-bottom: 0;
}
.csl-entry .csl-authors-year {
- display: block;
- font-weight: bold;
- color: #4d616b;
+ font-weight: 400;
+ color: #253b43;
+}
+
+/* in print/PDF, let long bibliographies flow onto continuation pages
+ instead of being clipped by the on-screen scroll box */
+@media print {
+ .reveal .references {
+ max-height: none !important;
+ overflow: visible !important;
+ }
}
.reveal code.sourceCode:last-child + pre {