diff options
Diffstat (limited to 'public/css/extra.css')
-rw-r--r-- | public/css/extra.css | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/public/css/extra.css b/public/css/extra.css index 3954c046..d5945ba9 100644 --- a/public/css/extra.css +++ b/public/css/extra.css @@ -384,6 +384,24 @@ small .dropdown a:focus, small .dropdown a:hover { color: #eee; } + +/* Prevent linked heading from being hidden underneath navbar. + * Example: http://localhost:3000/features#Editor-Modes would open and + * hide the headline "Editor Modes" underneath the navbar without this CSS rule. + */ +.markdown-body h1[id]:before, +.markdown-body h2[id]:before, +.markdown-body h3[id]:before, +.markdown-body h4[id]:before, +.markdown-body h5[id]:before, +.markdown-body h6[id]:before { + display: block; + content: " "; + margin-top: -55px; + height: 55px; + visibility: hidden; +} + @media print { div, table, img, pre, blockquote { page-break-inside: avoid !important; |