File tree Expand file tree Collapse file tree 4 files changed +47
-0
lines changed Expand file tree Collapse file tree 4 files changed +47
-0
lines changed Original file line number Diff line number Diff line change 1
1
- title : About
2
2
url : /about/
3
+ sections :
4
+ - title : Charter
5
+ url : /charter/
6
+ - title : Roadmap
7
+ url : /roadmap/
3
8
- title : News
4
9
url : /news/
5
10
- title : Development
Original file line number Diff line number Diff line change 13
13
{% else %}
14
14
< a href ="{{ site.baseurl }}{{ nav.url }} "> {{ nav.title }}</ a >
15
15
{% endif %}
16
+ {% if nav.sections != null %}
17
+ < ul >
18
+ {% for section in nav.sections %}
19
+ < li >
20
+ {% if section.url contains 'http://' or section.url contains 'https://' %}
21
+ < a href ="{{ section.url }} "> {{ section.title }}</ a >
22
+ {% else %}
23
+ < a href ="{{ site.baseurl }}{{ section.url }} "> {{ section.title }}</ a >
24
+ {% endif %}
25
+ </ li >
26
+ {% endfor %}
27
+ </ ul >
28
+ {% endif %}
16
29
</ li >
17
30
{% endfor %}
18
31
</ ul >
File renamed without changes.
Original file line number Diff line number Diff line change @@ -126,7 +126,14 @@ pre {
126
126
float : right;
127
127
}
128
128
.site-nav ul {
129
+ position : relative;
129
130
list-style : none;
131
+ display : inline-table;
132
+ }
133
+ .site-nav ul : after {
134
+ content : "" ;
135
+ clear : both;
136
+ display : block;
130
137
}
131
138
.site-nav li {
132
139
display : inline-block;
@@ -136,6 +143,28 @@ pre {
136
143
font-family : 'Lato' , sans-serif;
137
144
position : relative;
138
145
}
146
+ .site-nav ul ul {
147
+ background : # 3C92D1 ;
148
+ font-size : 16px ;
149
+ display : none;
150
+ padding : 0 ;
151
+ position : absolute;
152
+ top : 100% ;
153
+ }
154
+ .site-nav ul li : hover > ul {
155
+ display : block;
156
+ }
157
+ .site-nav ul ul li {
158
+ margin : 0px ;
159
+ padding : 5px ;
160
+ width : 100% ;
161
+ }
162
+ .site-nav ul ul li : hover {
163
+ background : # 47ACF5 ;
164
+ }
165
+ .site-nav ul ul li a {
166
+ color : # FFF ;
167
+ }
139
168
.col-half {
140
169
display : table-cell;
141
170
width : 50% ;
You can’t perform that action at this time.
0 commit comments