You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by zr...@apache.org on 2020/04/07 10:41:23 UTC

[camel-website] branch master updated: Fix redirecting to anchor tags (#319)

This is an automated email from the ASF dual-hosted git repository.

zregvart pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 805edc0  Fix redirecting to anchor tags (#319)
805edc0 is described below

commit 805edc0fc206f87335a3e2ece702706de6ee0524
Author: Aashna Jena <32...@users.noreply.github.com>
AuthorDate: Tue Apr 7 16:11:16 2020 +0530

    Fix redirecting to anchor tags (#319)
---
 antora-ui-camel/src/css/base.css | 1 +
 antora-ui-camel/src/css/vars.css | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/antora-ui-camel/src/css/base.css b/antora-ui-camel/src/css/base.css
index f287d23..a4ac339 100644
--- a/antora-ui-camel/src/css/base.css
+++ b/antora-ui-camel/src/css/base.css
@@ -3,6 +3,7 @@ body {
   height: 100%;
   display: flex;
   flex-direction: column;
+  scroll-padding-top: var(--body-top);
 }
 
 *,
diff --git a/antora-ui-camel/src/css/vars.css b/antora-ui-camel/src/css/vars.css
index 61a6ce2..67529fd 100644
--- a/antora-ui-camel/src/css/vars.css
+++ b/antora-ui-camel/src/css/vars.css
@@ -125,8 +125,8 @@
   --navbar-height: calc(73 / var(--rem-base) * 1rem);
   --toolbar-height: calc(45 / var(--rem-base) * 1rem);
   --drawer-height: var(--toolbar-height);
-  --body-top: var(--navbar-height);
-  --body-min-height: calc(100vh - var(--body-top));
+  --body-top: calc(var(--navbar-height) + 1rem);
+  --body-min-height: calc(100vh - var(--navbar-height));
   --nav-height: calc(var(--body-min-height) - var(--toolbar-height));
   --nav-height--desktop: var(--body-min-height);
   --nav-panel-height: calc(var(--nav-height) - var(--drawer-height));