From ce2d59dfc617012a978fde300b72317c91519c29 Mon Sep 17 00:00:00 2001 From: Stefano Ottolenghi Date: Tue, 11 Apr 2023 08:03:39 +0200 Subject: [PATCH 1/4] Add line and padding to h3 --- src/css/doc.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/css/doc.css b/src/css/doc.css index c4388240..171af43c 100644 --- a/src/css/doc.css +++ b/src/css/doc.css @@ -81,7 +81,8 @@ body { padding: 0.5rem 1rem; } -.doc h2:not(.discrete) { +.doc h2:not(.discrete), +.doc h3:not(.discrete) { border-bottom: 1px solid var(--section-divider-color); /* margin-left: -1rem; margin-right: -1rem; */ From a1469e97863e42cee6a561690e91734632055943 Mon Sep 17 00:00:00 2001 From: Stefano Ottolenghi Date: Thu, 13 Apr 2023 10:56:09 +0200 Subject: [PATCH 2/4] up to h6 --- src/css/doc.css | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/src/css/doc.css b/src/css/doc.css index 171af43c..7c0aa2d3 100644 --- a/src/css/doc.css +++ b/src/css/doc.css @@ -33,6 +33,7 @@ body { hyphens: none; line-height: 1.3; margin: 2rem 0 1rem; + border-bottom: 1px solid var(--section-divider-color); } .doc h1 code, @@ -81,14 +82,20 @@ body { padding: 0.5rem 1rem; } -.doc h2:not(.discrete), -.doc h3:not(.discrete) { - border-bottom: 1px solid var(--section-divider-color); - /* margin-left: -1rem; - margin-right: -1rem; */ +.doc h2 { padding: 0.4rem 0 0.5rem; } +.doc h3, +.doc h4 { + padding: 0.3rem 0 0.4rem; +} + +.doc h5, +.doc h6 { + padding: 0.2rem 0 0.3rem; +} + .doc h3:not(.discrete) { font-weight: var(--alt-heading-font-weight); } From 1ee18c094de87771abf71f386fedc1a04665682d Mon Sep 17 00:00:00 2001 From: Stefano Ottolenghi Date: Thu, 13 Apr 2023 14:33:28 +0200 Subject: [PATCH 3/4] Update doc.css --- src/css/doc.css | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/css/doc.css b/src/css/doc.css index 7c0aa2d3..5d3de3bd 100644 --- a/src/css/doc.css +++ b/src/css/doc.css @@ -33,7 +33,6 @@ body { hyphens: none; line-height: 1.3; margin: 2rem 0 1rem; - border-bottom: 1px solid var(--section-divider-color); } .doc h1 code, @@ -84,16 +83,19 @@ body { .doc h2 { padding: 0.4rem 0 0.5rem; + border-bottom: 1px solid var(--section-divider-color); } .doc h3, .doc h4 { padding: 0.3rem 0 0.4rem; + border-bottom: 1px solid var(--section-divider-color); } .doc h5, .doc h6 { padding: 0.2rem 0 0.3rem; + border-bottom: 1px solid var(--section-divider-color); } .doc h3:not(.discrete) { From 8964b89ed84a0fd0cf83fbb72a7e8a0c89c25d05 Mon Sep 17 00:00:00 2001 From: Stefano Ottolenghi Date: Thu, 13 Apr 2023 14:35:15 +0200 Subject: [PATCH 4/4] no border on h3 cheat sheet --- src/css/cheat-sheet.css | 1 + 1 file changed, 1 insertion(+) diff --git a/src/css/cheat-sheet.css b/src/css/cheat-sheet.css index bc2f7c7f..7af6b427 100644 --- a/src/css/cheat-sheet.css +++ b/src/css/cheat-sheet.css @@ -264,6 +264,7 @@ body.cheat-sheet h3:not(.discrete) { flex: 0 0 60%; flex-grow: 1; padding-right: 0; + border: none; } body.cheat-sheet h3:not(.discrete) a {