From: Mark Otto Date: Sun, 28 May 2017 00:37:25 +0000 (-0700) Subject: hack the headings for sticky header so shit doesn't overlap X-Git-Tag: v4.0.0-beta~187^2~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6bf63cbe67941ecd765f31a5c55fb2e3a2645077;p=thirdparty%2Fbootstrap.git hack the headings for sticky header so shit doesn't overlap --- diff --git a/docs/assets/scss/_content.scss b/docs/assets/scss/_content.scss index 5af79c6898..0764f1034f 100644 --- a/docs/assets/scss/_content.scss +++ b/docs/assets/scss/_content.scss @@ -1,4 +1,4 @@ -// scss-lint:disable IdSelector, NestingDepth, SelectorDepth +// scss-lint:disable IdSelector, NestingDepth, SelectorDepth, QualifyingElement // // Automatically style Markdown-based tables like a Bootstrap `.table`. @@ -24,6 +24,20 @@ } } + // Hack the sticky header + h2[id], + h3[id] { + &::before { + position: relative; + z-index: -1; + display: block; + height: 6rem; + margin-top: -6rem; + visibility: hidden; + content: ""; + } + } + > table { width: 100%; max-width: 100%;