diff options
author | Marcia Ramos <virtua.creative@gmail.com> | 2017-12-01 18:32:47 +0300 |
---|---|---|
committer | Marcia Ramos <virtua.creative@gmail.com> | 2017-12-01 18:32:47 +0300 |
commit | 1444e0557e028b16303bd7fc2dfb24837a50d8b6 (patch) | |
tree | 301a3f5d892c3a9443590df94fff1d68bb8383d3 | |
parent | b29924604d0873e5224d9e2fe56b4d7ab7fb069c (diff) | |
parent | bf74b4d6191996c4c1f6aca11ce31a7be225afb7 (diff) |
Merge branch 'footnotes-fix' into 'master'
Fix footnotes alignment
Closes #140
See merge request gitlab-com/gitlab-docs!166
-rw-r--r-- | content/assets/javascripts/docs.js | 5 | ||||
-rw-r--r-- | content/assets/stylesheets/stylesheet.scss | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/content/assets/javascripts/docs.js b/content/assets/javascripts/docs.js index dad14481..e9070f2b 100644 --- a/content/assets/javascripts/docs.js +++ b/content/assets/javascripts/docs.js @@ -26,6 +26,11 @@ function toggleNavigation() { // if there is a nested ul after the first anchor if(nav[0].children[0].children.length > 1) { var menu = nav[0].children[0].children[1]; + var footnotes = menu.querySelector('.footnotes'); + + if (footnotes) { + footnotes.remove(); + } // grab the h1's li anchor text var title = document.createElement('h4'); diff --git a/content/assets/stylesheets/stylesheet.scss b/content/assets/stylesheets/stylesheet.scss index 03a1c92a..f39c8bc5 100644 --- a/content/assets/stylesheets/stylesheet.scss +++ b/content/assets/stylesheets/stylesheet.scss @@ -543,7 +543,7 @@ h6 { } // https://gitlab.com/gitlab-com/gitlab-docs/issues/107#note_36655246 -*[id]::before { +*[id]:not(sup)::before { display: block; content: " "; margin-top: -75px; |