File tree Expand file tree Collapse file tree 5 files changed +33
-21
lines changed Expand file tree Collapse file tree 5 files changed +33
-21
lines changed Original file line number Diff line number Diff line change 11
11
}
12
12
13
13
.page-versions .version-menu-toggle {
14
- color : inherit ;
14
+ color : var ( --color-white ) ;
15
15
background : url(../ img/chevron.svg) no-repeat;
16
16
background-position : right 0.5rem top 50% ;
17
17
background-size : auto 0.75em ;
18
18
border : none;
19
19
outline : none;
20
20
line-height : inherit;
21
- padding : 0.5 rem 1.5rem 0.5 rem 0.5 rem ;
21
+ padding : 7 px 1.5rem 7 px 30 px ;
22
22
position : relative;
23
- z-index : var (--z-index-page-version-menu );
23
+ z-index : var (--z-index-page-version-menu-button );
24
+ font-size : 16px ;
25
+ opacity : 0.8 ;
26
+ }
27
+
28
+ .page-versions .version-menu-toggle : hover {
29
+ opacity : 1 ;
30
+ text-decoration : none;
24
31
}
25
32
26
33
.page-versions .version-menu {
34
41
top : 0 ;
35
42
right : 0 ;
36
43
white-space : nowrap;
44
+ z-index : var (--z-index-page-version-menu );
45
+ color : var (--color-white );
46
+ font-size : 16px ;
37
47
}
38
48
39
49
.page-versions : not (.is-active ) .version-menu {
40
50
display : none;
41
51
}
42
52
43
53
.page-versions .version {
54
+ color : var (--color-white );
44
55
display : block;
45
56
padding-top : 0.5rem ;
46
57
}
47
58
48
59
.page-versions .version .is-current {
60
+ color : var (--color-white );
49
61
display : none;
50
62
}
51
63
Original file line number Diff line number Diff line change 58
58
--toolbar-border-color : var (--panel-border-color );
59
59
--toolbar-font-color : var (--color-jet-30 );
60
60
--toolbar-muted-color : var (--color-gray-30 );
61
- --page-version-menu-background : var (--color-smoke -70 );
61
+ --page-version-menu-background : var (--color-jet -70 );
62
62
--page-version-missing-font-color : var (--color-gray-30 );
63
63
/* admonitions */
64
64
--caution-color : # a0439c ;
140
140
--z-index-nav : 1 ;
141
141
--z-index-toolbar : 2 ;
142
142
--z-index-page-version-menu : 3 ;
143
- --z-index-navbar : 4 ;
143
+ --z-index-page-version-menu-button : 4 ;
144
+ --z-index-navbar : 5 ;
144
145
}
Original file line number Diff line number Diff line change 18
18
</button >
19
19
<a href =" https://www.stackable.tech/en/contact/" class =" button pull-right" >Contact Us</a >
20
20
</div >
21
- <div id =" topbar-nav" class =" navbar-menu" >
22
- </div >
21
+ <div id =" topbar-nav" class =" navbar-menu" >
22
+ </div >
23
23
</div >
24
24
</nav >
25
25
<nav id =" navbar-sub" class =" navbar-sub" >
35
35
</div >
36
36
</div >
37
37
{{ /navbar }}
38
-
38
+ {{ #with @root.page.versions }}
39
+ <div class =" page-versions" >
40
+ <button class =" version-menu-toggle" title =" Show other versions of page" >{{ @root.page.componentVersion.displayVersion }} </button >
41
+ <div class =" version-menu" >
42
+ {{ #each this }}
43
+ <a class =" version
44
+ {{ ~#if (eq ./version @root.page.version )}} is-current{{ /if ~}}
45
+ {{ ~#if ./missing }} is-missing{{ /if }} " href =" {{{ relativize ./url }}} " >{{ ./displayVersion }} </a >
46
+ {{ /each }}
47
+ </div >
48
+ </div >
49
+ {{ /with }}
39
50
<a class =" arrow" href =" javascript:document.querySelector('.navbar-sub').classList.toggle('open')" >
40
51
<svg aria-hidden =" true" focusable =" false" data-prefix =" fas" data-icon =" arrow-right" role =" img" xmlns =" http://www.w3.org/2000/svg" viewBox =" 0 0 448 512" data-fa-i2svg =" " ><path fill =" currentColor" d =" M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z" ></path ></svg >
41
52
</a >
Original file line number Diff line number Diff line change 5
5
{{ #with @root.page.componentVersion }}
6
6
<h3 class =" title" ><a href =" {{{ relativize ./url }}} " >{{ ./title }} </a ></h3 >
7
7
{{ /with }}
8
- {{ #with @root.page.versions }}
9
- <div class =" page-versions" >
10
- <button class =" version-menu-toggle" title =" Show other versions of page" >{{ @root.page.componentVersion.displayVersion }} </button >
11
- <div class =" version-menu" >
12
- {{ #each this }}
13
- <a class =" version
14
- {{ ~#if (eq ./version @root.page.version )}} is-current{{ /if ~}}
15
- {{ ~#if ./missing }} is-missing{{ /if }} " href =" {{{ relativize ./url }}} " >{{ ./displayVersion }} </a >
16
- {{ /each }}
17
- </div >
18
- </div >
19
- {{ /with }}
20
8
</div >
21
9
{{> nav-tree navigation =this }}
22
10
</nav >
You can’t perform that action at this time.
0 commit comments