From 680a73bf9140b51edf51b40fdbbf3e0c70ce45bd Mon Sep 17 00:00:00 2001 From: David Date: Sat, 31 Dec 2022 15:52:52 +0800 Subject: [PATCH] Add Step ToC rules to manual.css --- www/css/manual.css | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/www/css/manual.css b/www/css/manual.css index 653fa087..30b7a4be 100644 --- a/www/css/manual.css +++ b/www/css/manual.css @@ -328,6 +328,32 @@ code.full .utf{ text-transform: uppercase; } +#step-toc{ + padding: 1.0em 0; + list-style-type: none; + counter-reset: css-counter 0; +} + +.step-by-step-guide summary{ + cursor: pointer; + /* fake H2 styling: */ + font-size: 1.4rem; + font-family: "League Spartan", Arial, sans-serif; + margin-top: 4rem; + line-height: 1.2; + letter-spacing: 1px; + text-transform: uppercase; + list-style-position: outside; +} + +#step-toc p{ + counter-increment: css-counter 1; +} + +#step-toc p:before{ + content: counter(css-counter) ". "; +} + .alert p.warning{ font-size: 2rem; font-weight: bold;