diff options
author | David Tolnay <dtolnay@gmail.com> | 2015-10-12 19:58:48 -0700 |
---|---|---|
committer | David Tolnay <dtolnay@gmail.com> | 2015-10-12 22:12:37 -0700 |
commit | 73b8413d10751c7be3e54d83ea338b3e895bdda3 (patch) | |
tree | 9608b6eab2fa6279e9ce71fa6a97d5efe79b468a /docs | |
parent | 664b8e26f0e0122a5d263e22cee30aaf485ea6c6 (diff) |
Adjust spacing of section headers to account for nav bar (fix #986)
Diffstat (limited to 'docs')
-rw-r--r-- | docs/public/css/base.scss | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/docs/public/css/base.scss b/docs/public/css/base.scss index 0752bec1..c89257ac 100644 --- a/docs/public/css/base.scss +++ b/docs/public/css/base.scss @@ -72,15 +72,25 @@ body { /* manual.liquid ******************************************/ -section { - padding-top: 24px; -} - h3 code { border: 0; font-size: 20px; } +section { + /* Adjust spacing so that anchors are not hidden behind nav bar */ + position: relative; + top: -50px; + padding-top: 50px; + margin-bottom: -50px; + h2 { + margin-top: 50px; + } + h3 { + margin-top: 32px; + } +} + @media(max-width: 991px){ #navcolumn { /* Put nav column above manual content */ |