From 52f24b0203bb037daffea2118e1d61cf774d9eaf Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Tue, 21 Nov 2017 10:40:58 -0800 Subject: [PATCH] Embolden Racket Guide and Racket Reference links on TOC MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A special CSS selector, so they don’t have to be bold everywhere --- scribble-lib/scribble/manual-style.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scribble-lib/scribble/manual-style.css b/scribble-lib/scribble/manual-style.css index 608d2fb7..7d2b7520 100644 --- a/scribble-lib/scribble/manual-style.css +++ b/scribble-lib/scribble/manual-style.css @@ -31,6 +31,15 @@ font-size: 1rem; } +/* embolden the "Racket Guide" and "Racket Reference" links on the TOC */ +/* there isn't an obvious tag in the markup that designates the top TOC page, which is called "start.scrbl" */ +/* nor a tag that designates these two links as special */ +/* so we'll use this slightly tortured sibling selector that hooks onto the h2 tag */ +h2[x-source-module='(lib "scribblings/main/start.scrbl")'] ~ table a[href="guide/index.html"], +h2[x-source-module='(lib "scribblings/main/start.scrbl")'] ~ table a[href="reference/index.html"] { + font-weight: bold; +} + .stt { font-weight: 500; }