File tree Expand file tree Collapse file tree 3 files changed +17
-22
lines changed Expand file tree Collapse file tree 3 files changed +17
-22
lines changed Original file line number Diff line number Diff line change 10
10
versions :
11
11
- &latest_version_abc
12
12
url : ' #'
13
- version : ' 1.1'
14
- displayVersion : ' 1.1'
15
- - url : ' #'
16
- version : ' 1.0'
17
- displayVersion : ' 1.0'
13
+ version : current
14
+ displayVersion : current
18
15
latestVersion : *latest_version_abc
19
16
- &component
20
17
name : xyz
36
33
- url : ' #'
37
34
version : ' 5.0'
38
35
displayVersion : ' 5.0'
36
+ - url : ' #'
37
+ version : ' 4.5'
38
+ displayVersion : ' 4.5'
39
39
latestVersion : *latest_version_xyz
40
40
- name : ' 123'
41
41
title : Project 123
45
45
url : ' #'
46
46
version : ' 2.2'
47
47
displayVersion : ' 2.2'
48
- - url : ' #'
49
- version : ' 2.1'
50
- displayVersion : ' 2.1'
51
- - url : ' #'
52
- version : ' 2.0'
53
- displayVersion : ' 2.0'
54
48
latestVersion : *latest_version_123
55
49
page :
56
50
url : *home_url
Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ html.is-clipped--nav {
213
213
}
214
214
215
215
.nav-panel-explore .components {
216
- line-height : var ( --doc-line-height ) ;
216
+ line-height : 1.3 ;
217
217
flex-grow : 1 ;
218
218
box-shadow : inset 0 1px 5px var (--nav-panel-divider-color );
219
219
background : var (--nav-secondary-background );
@@ -229,7 +229,9 @@ html.is-clipped--nav {
229
229
}
230
230
231
231
.nav-panel-explore .component {
232
- display : block;
232
+ display : flex;
233
+ justify-content : space-between;
234
+ align-items : flex-start;
233
235
}
234
236
235
237
.nav-panel-explore .component + .component {
@@ -243,20 +245,23 @@ html.is-clipped--nav {
243
245
.nav-panel-explore .component .title {
244
246
font-weight : var (--body-font-weight-bold );
245
247
color : inherit;
248
+ max-width : 50% ;
249
+ margin-top : 0.25rem ;
250
+ flex : none;
246
251
}
247
252
248
253
.nav-panel-explore .versions {
249
254
display : flex;
255
+ justify-content : flex-end;
250
256
flex-wrap : wrap;
251
257
list-style : none;
252
258
padding-left : 0 ;
253
- margin-top : -0.25rem ;
254
259
line-height : 1 ;
255
260
}
256
261
257
262
.nav-panel-explore .component .version {
258
263
display : block;
259
- margin : 0.375 rem 0.375 rem 0 0 ;
264
+ margin : 0.25 rem 0 0 0.25 rem ;
260
265
}
261
266
262
267
.nav-panel-explore .component .version a {
@@ -274,9 +279,3 @@ html.is-clipped--nav {
274
279
opacity : 0.9 ;
275
280
font-weight : var (--body-font-weight-bold );
276
281
}
277
-
278
- /*
279
- .nav-panel-explore .component .is-latest a::after {
280
- content: " (latest)";
281
- }
282
- */
Original file line number Diff line number Diff line change 2
2
{{ #if page.component }}
3
3
<div class =" context" >
4
4
<span class =" title" >{{ page.component.title }} </span >
5
- <span class =" version" >{{ page.componentVersion.displayVersion }} </span >
5
+ <span class =" version" >{{ #unless ( eq page.componentVersion.displayVersion ' current ' ) }} {{ page.componentVersion.displayVersion }} {{ /unless }} </span >
6
6
</div >
7
7
{{ /if }}
8
8
<ul class =" components" >
9
9
{{ #each site.components }}
10
10
<li class =" component{{ #if (eq this @root.page.component )}} is-current{{ /if }} " >
11
11
<a class =" title" href =" {{{ relativize ./url }}} " >{{{ ./title }}} </a >
12
+ {{ #if (or ./versions .[1 ] (not (eq ./versions .[0 ].displayVersion ' current' )))}}
12
13
<ul class =" versions" >
13
14
{{ #each ./versions }}
14
15
<li class =" version
18
19
</li >
19
20
{{ /each }}
20
21
</ul >
22
+ {{ /if }}
21
23
</li >
22
24
{{ /each }}
23
25
</ul >
You can’t perform that action at this time.
0 commit comments