mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Merge pull request #215 from agjohnson/fix-nav-scrollbar
Resolve scrollbar visibility on navbar on long content
This commit is contained in:
commit
2992ca2119
|
@ -24,6 +24,7 @@
|
||||||
padding: 0 $base-font-size
|
padding: 0 $base-font-size
|
||||||
|
|
||||||
.wy-menu-vertical
|
.wy-menu-vertical
|
||||||
|
width: $nav-desktop-width
|
||||||
header, p.caption
|
header, p.caption
|
||||||
height: $base-font-size * 2
|
height: $base-font-size * 2
|
||||||
display: inline-block
|
display: inline-block
|
||||||
|
@ -164,6 +165,10 @@
|
||||||
color: $menu-link-active
|
color: $menu-link-active
|
||||||
|
|
||||||
.wy-side-nav-search
|
.wy-side-nav-search
|
||||||
|
display: block
|
||||||
|
width: $nav-desktop-width
|
||||||
|
padding: $gutter / 2
|
||||||
|
margin-bottom: $gutter / 2
|
||||||
z-index: $z-index-popover
|
z-index: $z-index-popover
|
||||||
background-color: $nav-search-background-color
|
background-color: $nav-search-background-color
|
||||||
text-align: center
|
text-align: center
|
||||||
|
@ -259,11 +264,18 @@
|
||||||
padding-bottom: 2em
|
padding-bottom: 2em
|
||||||
width: $nav-desktop-width
|
width: $nav-desktop-width
|
||||||
overflow-x: hidden
|
overflow-x: hidden
|
||||||
overflow-y: scroll
|
overflow-y: hidden
|
||||||
min-height: 100%
|
min-height: 100%
|
||||||
background: $nav-background-color
|
background: $nav-background-color
|
||||||
z-index: $z-index-popover
|
z-index: $z-index-popover
|
||||||
|
|
||||||
|
.wy-side-scroll
|
||||||
|
width: $nav-desktop-width + 20px
|
||||||
|
position: relative
|
||||||
|
overflow-x: hidden
|
||||||
|
overflow-y: scroll
|
||||||
|
height: 100%
|
||||||
|
|
||||||
.wy-nav-top
|
.wy-nav-top
|
||||||
display: none
|
display: none
|
||||||
background: $link-color
|
background: $link-color
|
||||||
|
@ -355,6 +367,12 @@ footer
|
||||||
&.shift
|
&.shift
|
||||||
width: 85%
|
width: 85%
|
||||||
left: 0
|
left: 0
|
||||||
|
.wy-side-scroll
|
||||||
|
width: auto
|
||||||
|
.wy-side-nav-search
|
||||||
|
width: auto
|
||||||
|
.wy-menu.wy-menu-vertical
|
||||||
|
width: auto
|
||||||
.wy-nav-content-wrap
|
.wy-nav-content-wrap
|
||||||
margin-left: 0
|
margin-left: 0
|
||||||
.wy-nav-content
|
.wy-nav-content
|
||||||
|
|
|
@ -85,6 +85,7 @@
|
||||||
|
|
||||||
{# SIDE NAV, TOGGLES ON MOBILE #}
|
{# SIDE NAV, TOGGLES ON MOBILE #}
|
||||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||||
|
<div class="wy-side-scroll">
|
||||||
<div class="wy-side-nav-search">
|
<div class="wy-side-nav-search">
|
||||||
{% block sidebartitle %}
|
{% block sidebartitle %}
|
||||||
|
|
||||||
|
@ -128,7 +129,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -75,7 +75,7 @@ window.SphinxRtdTheme = (function (jquery) {
|
||||||
resize();
|
resize();
|
||||||
},
|
},
|
||||||
init = function () {
|
init = function () {
|
||||||
navBar = jquery('nav.wy-nav-side:first');
|
navBar = jquery('div.wy-side-scroll:first');
|
||||||
win = jquery(window);
|
win = jquery(window);
|
||||||
},
|
},
|
||||||
reset = function () {
|
reset = function () {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user