pidgin/nest

Hide extra bullet points in ToC's.

2019-08-20, Elliott Sales de Andrade
473b7ce548fc
Parents 4fbdcc71646d
Children cd63b87c08cc
Hide extra bullet points in ToC's.

This is a 'clever hack' that removes the bullet point for list items
with no siblings, thus making the bullet point for pages that have no H1
(or even H2) headers go away.
--- a/hugo/static/css/custom.css Tue Jun 25 22:54:54 2019 -0400
+++ b/hugo/static/css/custom.css Tue Aug 20 03:24:59 2019 -0400
@@ -41,6 +41,12 @@
margin-block-end: 0.3rem;
}
+nav#TableOfContents ul li:first-child:nth-last-child(1) {
+ /* Hide bullets for list items without siblings, aka, the H1 item when
+ * all headings are all H2 (or lower). */
+ list-style-type: none;
+}
+
nav#TableOfContents code {
/* Make titles with code snippets look nicer */
white-space: nowrap;