Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcia Ramos <virtua.creative@gmail.com>2017-12-01 18:32:47 +0300
committerMarcia Ramos <virtua.creative@gmail.com>2017-12-01 18:32:47 +0300
commit1444e0557e028b16303bd7fc2dfb24837a50d8b6 (patch)
tree301a3f5d892c3a9443590df94fff1d68bb8383d3
parentb29924604d0873e5224d9e2fe56b4d7ab7fb069c (diff)
parentbf74b4d6191996c4c1f6aca11ce31a7be225afb7 (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.js5
-rw-r--r--content/assets/stylesheets/stylesheet.scss2
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;