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

Sergio Carlavilla Delgado <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
The branch main has been updated by carlavilla:

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

commit b68e44392bcd6420ec1b83e7fb63adac645db98f
Author:     Sergio Carlavilla Delgado <[email protected]>
AuthorDate: 2022-09-01 19:17:02 +0000
Commit:     Sergio Carlavilla Delgado <[email protected]>
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);
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.