Skip to content

Commit 31d738e

Browse files
Alex Solovevgenbit
authored andcommitted
Fixes for menu & content width
Signed-off-by: Alex Solovev <alex.solovev.work@gmail.com>
1 parent 228eecc commit 31d738e

File tree

1 file changed

+17
-32
lines changed

1 file changed

+17
-32
lines changed

src/sass/_theme_layout.sass

Lines changed: 17 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ html
5151
white-space: pre-wrap
5252
height: auto
5353
min-height: $base-font-size * 2
54-
line-height: $base-font-size * 1.5
5554

5655
ul
5756
margin-bottom: 0
@@ -78,15 +77,15 @@ html
7877
padding-right: 0
7978
color: #FF3737
8079
// Expand links
81-
// span.toctree-expand
82-
// display: block
83-
// float: left
84-
// margin-left: -1.2em
85-
// @extend .fa
86-
// @extend .fa-plus-square-o
87-
// font-size: .8em
88-
// line-height: 1.6em
89-
// color: darken($menu-link-medium, 20%)
80+
span.toctree-expand
81+
display: block
82+
float: left
83+
margin-left: -1.2em
84+
@extend .fa
85+
@extend .fa-plus-square-o
86+
font-size: .8em
87+
line-height: 1.6em
88+
color: darken($menu-link-medium, 20%)
9089

9190
// On state for the first level
9291
li.on a, li.current > a
@@ -101,13 +100,13 @@ html
101100
background: transparent
102101
span.toctree-expand
103102
color: $menu-link-medium
104-
// span.toctree-expand
105-
// @extend .fa
106-
// @extend .fa-minus-square-o
107-
// display: block
108-
// font-size: .8em
109-
// line-height: 1.6em
110-
// color: darken($menu-link-medium, 30%)
103+
span.toctree-expand
104+
@extend .fa
105+
@extend .fa-minus-square-o
106+
display: block
107+
font-size: .8em
108+
line-height: 1.6em
109+
color: darken($menu-link-medium, 30%)
111110

112111
li.toctree-l1.current > a
113112
// border-bottom: solid 1px darken($menu-vertical-background-color, 20%)
@@ -134,18 +133,6 @@ html
134133
display: block
135134

136135
@for $toc_level from 1 through 10
137-
.toctree-l#{$toc_level} > ul
138-
position: relative
139-
&:before
140-
content: " "
141-
display: block
142-
position: absolute
143-
top: ($gutter / 4) + .2
144-
bottom: ($gutter / 4) + .2
145-
left: if($toc_level > 1, $gutter * ($toc_level), $gutter)
146-
width: 1px
147-
background-color: #d3d3d3
148-
149136
.toctree-l#{$toc_level}.current .toctree-l#{$toc_level + 1}
150137
@extend %hide_show_toctree_ul
151138
@if $toc_level > 1
@@ -361,7 +348,7 @@ html
361348
.wy-nav-content
362349
padding: $gutter $gutter * 2
363350
height: 100%
364-
max-width: 100%
351+
max-width: $nav-content-width
365352
margin: auto
366353

367354
.wy-body-mask
@@ -445,8 +432,6 @@ footer
445432
overflow: hidden
446433

447434
@media screen and (min-width: $nav-media-query)
448-
.wy-nav-content-wrap
449-
background: rgba(0,0,0,.05)
450435
.wy-nav-content
451436
margin: 0
452437
background: $section-background-color

0 commit comments

Comments
 (0)