diff options
author | Sarah German <sgerman@gitlab.com> | 2022-07-15 23:00:08 +0300 |
---|---|---|
committer | Suzanne Selhorn <sselhorn@gitlab.com> | 2022-07-15 23:00:08 +0300 |
commit | 3c5f1e49b296a05c34199303066b7b97eba955a6 (patch) | |
tree | 3a3407e1924f6af10c7ca339775c839ea96e8ed0 | |
parent | b3f13cc29373981c2a5ebb17b396a891e7cb4e31 (diff) |
Resolves "H1's are hidden when you access them with an anchor"
-rw-r--r-- | content/assets/stylesheets/_typography.scss | 12 | ||||
-rw-r--r-- | content/assets/stylesheets/toc.scss | 2 |
2 files changed, 6 insertions, 8 deletions
diff --git a/content/assets/stylesheets/_typography.scss b/content/assets/stylesheets/_typography.scss index b2379526..e87cb921 100644 --- a/content/assets/stylesheets/_typography.scss +++ b/content/assets/stylesheets/_typography.scss @@ -387,7 +387,10 @@ version: 12 font-size: 2rem; line-height: 1; margin-bottom: 1.5rem; - margin-top: 3.3rem; + margin-top: -3.3rem; + padding-top: 6.6rem; + z-index: 0; + position: relative; } @media screen and (min-width: $bp-sm) { h1 { @@ -403,13 +406,6 @@ version: 12 margin-bottom: 1.5rem; } } - @media screen and (min-width: $bp-lg) { - h1 { - font-size: 2.5rem; - line-height: 1; - margin-bottom: 1.5rem; - } - } h2 { color: $theme-indigo-900; font-weight: 600; diff --git a/content/assets/stylesheets/toc.scss b/content/assets/stylesheets/toc.scss index 1cf1df32..38a48f7d 100644 --- a/content/assets/stylesheets/toc.scss +++ b/content/assets/stylesheets/toc.scss @@ -127,6 +127,8 @@ $nav-link-font-size: 0.875rem; .doc-nav { margin-left: -20px; margin-top: -55px; + position: relative; + z-index: 1; } .table-of-contents { |