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:
authorPhil Hughes <me@iamphill.com>2017-12-01 17:26:15 +0300
committerPhil Hughes <me@iamphill.com>2017-12-01 17:26:15 +0300
commitbf74b4d6191996c4c1f6aca11ce31a7be225afb7 (patch)
treec35d9c0cf4142402bab4853e793d74e5a27ec55b
parent10779735449c257483239d0ca2b9cdcc8f503ad1 (diff)
Fix footnotes alignment
Closes #140
-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;