You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2022/03/29 11:48:29 UTC
[libcloud-site] 01/08: Improve navigation to anchors (titles) inside the pages.
This is an automated email from the ASF dual-hosted git repository.
tomaz pushed a commit to branch asf-staging
in repository https://gitbox.apache.org/repos/asf/libcloud-site.git
commit 9519eefa4f2b25926b0fbb9b59195315805a69fa
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Tue Mar 29 13:10:45 2022 +0200
Improve navigation to anchors (titles) inside the pages.
---
source/_assets/css/main.css | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/source/_assets/css/main.css b/source/_assets/css/main.css
index ce3ccd1..be52230 100644
--- a/source/_assets/css/main.css
+++ b/source/_assets/css/main.css
@@ -12,6 +12,16 @@ h2 {
margin-top: 10px;
}
+/* Needed so when user click on a link which points to the anchor we end up slightly
+ * above the anchor and not below it. */
+h2:before {
+ display: block;
+ content: " ";
+ margin-top: -90px;
+ height: 90px;
+ visibility: hidden;
+}
+
.anchor {
padding-top: 80px;
margin-top: -70px;