aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2017-05-27 17:37:25 -0700
committerMark Otto <[email protected]>2017-05-27 17:37:25 -0700
commit6bf63cbe67941ecd765f31a5c55fb2e3a2645077 (patch)
tree4330fe5ee460e0fd6e950c4098d5808290a4034f /docs
parent33b322e9b529ca9c72df649ac890b2bfe4758a0d (diff)
downloadbootstrap-6bf63cbe67941ecd765f31a5c55fb2e3a2645077.tar.xz
bootstrap-6bf63cbe67941ecd765f31a5c55fb2e3a2645077.zip
hack the headings for sticky header so shit doesn't overlap
Diffstat (limited to 'docs')
-rw-r--r--docs/assets/scss/_content.scss16
1 files changed, 15 insertions, 1 deletions
diff --git a/docs/assets/scss/_content.scss b/docs/assets/scss/_content.scss
index 5af79c689..0764f1034 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%;