Skip to content

Commit 1aeb78c

Browse files
SvenDowideitArnaud Porterie
authored andcommitted
Simplfy the sidebar html and css, and then allow the text to wrap
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
1 parent 331d37f commit 1aeb78c

File tree

3 files changed

+36
-23
lines changed

3 files changed

+36
-23
lines changed

docs/theme/mkdocs/css/docs.css

Lines changed: 28 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,39 @@
2222

2323
#leftnav {
2424
height: 100%;
25+
overflow: hidden;
2526
}
2627

27-
#leftnav h3 {
28-
font-size: 10px;
29-
font-weight: 700;
30-
color: #394d54;
28+
#leftnav .nav ul {
3129
line-height: 1;
32-
margin: 10px 0 10px 0;
33-
padding-left: 20px;
34-
white-space: nowrap;
35-
overflow: hidden;
36-
text-overflow: ellipsis;
30+
margin: 10px 10px 0px 16px;
31+
padding: 0;
32+
list-style: none;
33+
}
34+
#leftnav .nav li ul a,
35+
#leftnav .nav li ul a:hover {
36+
margin: 0 !important;
37+
padding: 0 !important;
38+
font-size: 13px;
39+
font-weight: 400;
40+
color: #394d54;
41+
}
42+
#leftnav .nav li ul a:hover {
43+
color: #24b8eb;
3744
}
3845

39-
#leftnav li.active {
40-
margin-bottom: 10px;
46+
#leftnav .nav.nav-tabs li a,
47+
#leftnav .nav.nav-tabs li li {
48+
line-height: 1.1 !important;
49+
}
50+
51+
#leftnav li {
52+
margin-top: 20px;
53+
text-indent: -16px;
54+
padding-left: 16px;
55+
}
56+
#leftnav .nav-tabs.nav ul li {
57+
margin-top: 5px;
4158
}
4259

4360
.content-body {
@@ -322,13 +339,6 @@ pre {
322339
font-weight: bold;
323340
}
324341

325-
#leftnav .nav.nav-tabs li a {
326-
line-height: 20px !important;
327-
padding-top: 15px !important;
328-
padding-right: 8px;
329-
padding-bottom: 15px !important;
330-
}
331-
332342
/* Logged-in/out header */
333343
.topmostnav_loggedin {
334344
display: none;

docs/theme/mkdocs/css/main.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ div + .form-inline {
991991
#leftnav .nav.nav-tabs.nav-stacked > li > a {
992992
border: 0;
993993
}
994-
#leftnav .nav.nav-tabs li.active a {
994+
Killwithfire #leftnav .nav.nav-tabs li.active a {
995995
font-size: 16px;
996996
font-weight: 500;
997997
color: #394d54;
@@ -1001,14 +1001,14 @@ div + .form-inline {
10011001
border-left: 10px solid #ade5f9;
10021002
padding-left: 9px;
10031003
}
1004-
#leftnav .nav.nav-tabs li.active a:hover {
1004+
Killwithfire #leftnav .nav.nav-tabs li.active a:hover {
10051005
font-size: 16px;
10061006
font-weight: 500;
10071007
color: #24b8eb;
10081008
text-decoration: none;
10091009
cursor: pointer;
10101010
}
1011-
#leftnav .nav.nav-tabs li.active a:focus {
1011+
Killwithfire #leftnav .nav.nav-tabs li.active a:focus {
10121012
outline: none;
10131013
}
10141014
#leftnav .nav.nav-tabs > li > a {

docs/theme/mkdocs/toc.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{% for toc_item in toc %}
22
{% for toc_h2_item in toc_item.children %}
3-
<li class=""><a href="{{ toc_h2_item.url }}">{{ toc_h2_item.title }}</a></li>
3+
<li class=""><a href="{{ toc_h2_item.url }}">{{ toc_h2_item.title }}</a>
4+
<ul>
45
{% for toc_h3_item in toc_h2_item.children %}
5-
<h3><a href="{{ toc_h3_item.url }}">{{ toc_h3_item.title }}</a></h3>
6+
<li><a href="{{ toc_h3_item.url }}">{{ toc_h3_item.title }}</a></li>
67
{% endfor %}
8+
</ul>
9+
</li>
710
{% endfor %}
811
{% endfor %}

0 commit comments

Comments
 (0)