diff --git a/docs/_static/instaloader.css b/docs/_static/instaloader.css index 0aad44d..82edd99 100644 --- a/docs/_static/instaloader.css +++ b/docs/_static/instaloader.css @@ -1,8 +1,13 @@ @import url(bootstrap-4.1.3.min.css); a { color: #008d06; } - a:hover { + a:hover, a.current, a.active { color: #f48400; } + a.current, a.active { + font-weight: 500; } + +.doc-sidebar a:hover, .modal-body a:hover { + text-decoration: none; } code { color: #212529; } @@ -20,9 +25,10 @@ code { color: #ff7efd; } .doc-content { - top: 4.0625em; - position: relative; - height: calc(100vh - 4.0625em); + padding-top: 0.5em; + top: 3.5625em; + position: fixed; + bottom: 0; overflow-y: auto; } .doc-sidebar { @@ -33,21 +39,13 @@ code { right: 0; overflow-y: auto; } .doc-sidebar ul { + list-style-type: none; padding-left: 1em; } .doc-sidebar ul.current { - list-style-type: none; padding-left: 0; } .doc-sidebar li { padding-top: 0.2em; padding-bottom: 0.2em; } - .doc-sidebar li a { - color: #008d06; } - .doc-sidebar li a.current, .doc-sidebar li a.active { - color: #f48400; - font-weight: 500; } - .doc-sidebar li a:hover { - color: #f48400; - text-decoration: none; } .admonition { border-radius: 0.3em; diff --git a/docs/_static/instaloader.scss b/docs/_static/instaloader.scss index 0dd660d..d0f9918 100644 --- a/docs/_static/instaloader.scss +++ b/docs/_static/instaloader.scss @@ -9,9 +9,19 @@ $color_light_bg: #f8f9fa; a { color: $color_instaloader_main; - &:hover { + &:hover, &.current, &.active { color: $color_instaloader_accent; } + + &.current, &.active { + font-weight: 500; + } +} + +.doc-sidebar, .modal-body { + a:hover { + text-decoration: none + } } code { @@ -40,9 +50,10 @@ code { } .doc-content { - top: 4.0625em; - position: relative; - height: calc(100vh - 4.0625em); + padding-top: 0.5em; + top: 3.5625em; + position: fixed; + bottom: 0; overflow-y: auto; } @@ -55,10 +66,10 @@ code { overflow-y: auto; ul { + list-style-type: none; padding-left: 1em; &.current { - list-style-type: none; padding-left: 0; } } @@ -67,19 +78,6 @@ code { padding-top: 0.2em; padding-bottom: 0.2em; - a { - color: $color_instaloader_main; - - &.current, &.active { - color: $color_instaloader_accent; - font-weight: 500; - } - - &:hover { - color: $color_instaloader_accent; - text-decoration: none; - } - } } } diff --git a/docs/_templates/layout.html b/docs/_templates/layout.html index e346e31..cb8f620 100644 --- a/docs/_templates/layout.html +++ b/docs/_templates/layout.html @@ -30,7 +30,7 @@ Instaloader
- - - -