git: b68e44392b - main - Move heading anchors to the end and add improve rendering on mobile

From: Sergio Carlavilla Delgado <carlavilla_at_FreeBSD.org>
Date: Thu, 01 Sep 2022 19:17:36 UTC
The branch main has been updated by carlavilla:

URL: https://cgit.FreeBSD.org/doc/commit/?id=b68e44392bcd6420ec1b83e7fb63adac645db98f

commit b68e44392bcd6420ec1b83e7fb63adac645db98f
Author:     Sergio Carlavilla Delgado <carlavilla@FreeBSD.org>
AuthorDate: 2022-09-01 19:17:02 +0000
Commit:     Sergio Carlavilla Delgado <carlavilla@FreeBSD.org>
CommitDate: 2022-09-01 19:17:02 +0000

    Move heading anchors to the end and add improve rendering on mobile
---
 documentation/config/_default/config.toml              | 2 +-
 documentation/themes/beastie/assets/styles/global.scss | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/documentation/config/_default/config.toml b/documentation/config/_default/config.toml
index 770088c989..b14681a0c8 100644
--- a/documentation/config/_default/config.toml
+++ b/documentation/config/_default/config.toml
@@ -37,7 +37,7 @@ enableGitInfo = true
       env-beastie = true
       isOnline = true
       skip-front-matter = true
-      sectanchors = true
+      sectanchors = "after"
 
 [outputs]
 home = [ "HTML" ]
diff --git a/documentation/themes/beastie/assets/styles/global.scss b/documentation/themes/beastie/assets/styles/global.scss
index 765d81b672..77c1ece932 100644
--- a/documentation/themes/beastie/assets/styles/global.scss
+++ b/documentation/themes/beastie/assets/styles/global.scss
@@ -278,6 +278,7 @@ h4,
 h5,
 h6 {
   margin: 0;
+  padding-bottom: .3rem;
 }
 
 h1,
@@ -334,7 +335,7 @@ h4 > .anchor::before,
 h5 > .anchor::before,
 h6 > .anchor::before {
   visibility: hidden;
-  margin-right: .3rem;
+  margin-left: .3rem;
   content: "#";
   color: var(--global-font-color);
 }