Skip to content

Commit d9a3262

Browse files
committed
display an icon to indicate there is a submenu
1 parent 1904b35 commit d9a3262

File tree

2 files changed

+60
-1
lines changed

2 files changed

+60
-1
lines changed

css/theme-fixes.css

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,63 @@
22
margin-bottom: 0;
33
}
44

5-
.wy-nav-side { overflow: inherit; }
5+
.wy-nav-side { overflow: inherit; }
6+
7+
/* Sub menu elements */
8+
.wy-menu-vertical li.on a span.toctree-expand, .wy-menu-vertical li.current > a span.toctree-expand {
9+
display: block;
10+
font-size: .8em;
11+
line-height: 1.6em;
12+
color:#333
13+
}
14+
15+
a .wy-menu-vertical li span.toctree-expand, .wy-menu-vertical li a span.toctree-expand, .wy-menu-vertical li.on a span.toctree-expand, .wy-menu-vertical li.current > a span.toctree-expand {
16+
display: inline-block;
17+
text-decoration:inherit
18+
}
19+
20+
.wy-menu-vertical li span.toctree-expand, .wy-menu-vertical li.on a span.toctree-expand, .wy-menu-vertical li.current > a span.toctree-expand {
21+
font-family:inherit
22+
}
23+
24+
.wy-menu-vertical li span.toctree-expand, .wy-menu-vertical li.on a span.toctree-expand, .wy-menu-vertical li.current > a span.toctree-expand {
25+
display: inline-block;
26+
font: normal normal normal 14px/1 FontAwesome;
27+
font-size: inherit;
28+
text-rendering: auto;
29+
-webkit-font-smoothing: antialiased;
30+
-moz-osx-font-smoothing:grayscale
31+
}
32+
33+
.wy-menu-vertical li span.toctree-expand {
34+
display: block;
35+
float: left;
36+
margin-left: -1.2em;
37+
font-size: .8em;
38+
line-height: 1.6em;
39+
color:#4d4d4d
40+
}
41+
42+
.wy-menu-vertical li.on a span.toctree-expand:before, .wy-menu-vertical li.current > a span.toctree-expand:before {
43+
content: ""
44+
}
45+
46+
.wy-menu-vertical li span.toctree-expand:before, .wy-menu-vertical li.on a span.toctree-expand:before, .wy-menu-vertical li.current > a span.toctree-expand:before {
47+
font-family: "FontAwesome";
48+
display: inline-block;
49+
font-style: normal;
50+
font-weight: normal;
51+
line-height: 1;
52+
text-decoration:inherit
53+
}
54+
55+
.wy-menu-vertical li span.toctree-expand:before, .wy-menu-vertical li.on a span.toctree-expand:before, .wy-menu-vertical li.current > a span.toctree-expand:before {
56+
-webkit-font-smoothing:antialiased
57+
}
58+
59+
.wy-menu-vertical li span.toctree-expand:before {
60+
content: ""
61+
}
662

763
/* Code blocks */
864
pre > code {

default.twig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
<li class="toctree-l1 {{ activeMenu ? 'current' }}">
2929
<a class="reference internal {{ activeMenu ? 'current' }}"
3030
href="{{ item.absoluteUrl|default(baseUrl ~ '/' ~ item.relativeUrl) }}">
31+
{% if not activeMenu and item.items is defined %}
32+
<span class="toctree-expand"></span>
33+
{% endif %}
3134
{{ item.text|raw }}
3235
</a>
3336

0 commit comments

Comments
 (0)