File tree 2 files changed +10
-4
lines changed
2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 6
6
# topbar-nav {
7
7
width : 100% ;
8
8
height : var (--navbar-height );
9
- z-index : 10 ;
9
+ z-index : 100 ;
10
10
padding : 0 1rem ;
11
11
position : sticky;
12
12
display : flex;
61
61
padding : 0 0.75rem ;
62
62
line-height : var (--navbar-height );
63
63
font-size : 16px ;
64
+ font-weight : 400 ;
64
65
display : inline-block;
65
66
margin : 0 ;
66
67
}
75
76
}
76
77
77
78
# topbar-nav .nav-expanded .dropdown-label {
78
- text-decoration : underline ;
79
+ text-decoration : none ;
79
80
}
80
81
81
82
# topbar-nav .dropdown-label ::after {
@@ -108,6 +109,8 @@ html {
108
109
position : absolute;
109
110
display : none;
110
111
width : 16rem ;
112
+ margin-block-start : 0 ;
113
+ margin-block-end : 0 ;
111
114
}
112
115
113
116
# topbar-nav .nav-dropdown-container .nav-item : hover {
@@ -131,6 +134,7 @@ html {
131
134
}
132
135
133
136
# topbar-nav a .nav-link {
137
+ text-decoration-line : none;
134
138
color : # ccc ;
135
139
}
136
140
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ document.addEventListener("DOMContentLoaded", function() {
7
7
if ( match && match [ 1 ] ) {
8
8
name = match [ 1 ] ;
9
9
name = name . concat ( ".jl" ) ;
10
+ } else {
11
+ name = content
10
12
}
11
13
}
12
14
var footerMessageElement = document . querySelector ( 'p.footer-message' ) ;
@@ -28,7 +30,7 @@ document.addEventListener("DOMContentLoaded", function() {
28
30
var dropdownItems = packages . map ( function ( packageName ) {
29
31
return `<a class="nav-link nav-item ${ name === packageName ? 'current' : '' } " href="https://juliaquantumcontrol.github.io/${ packageName } /${ suffix } ">${ packageName } </a>` ;
30
32
} ) . join ( '' ) ;
31
- var isSecondaryPackage = ! ( name === "QuantumControl.jl" || name === "QuantumPropagators.jl" || name . includes ( 'Examples ' ) ) ;
33
+ var isSecondaryPackage = ! ( name === "QuantumControl.jl" || name === "QuantumPropagators.jl" || name . includes ( 'Tutorials ' ) ) ;
32
34
var navElement = document . createElement ( 'nav' ) ;
33
35
navElement . id = "topbar-nav" ;
34
36
navElement . innerHTML = `
@@ -44,7 +46,7 @@ document.addEventListener("DOMContentLoaded", function() {
44
46
</div>
45
47
<a class="nav-link nav-item ${ name === 'QuantumPropagators.jl' ? 'current' : '' } " href="${ name === 'QuantumPropagators.jl' ? '' : 'https://juliaquantumcontrol.github.io/QuantumPropagators.jl/' + suffix } ">QuantumPropagators.jl</a>
46
48
<a class="nav-link nav-item ${ name === 'QuantumControl.jl' ? 'current' : '' } " href="${ name === 'QuantumControl.jl' ? '' : 'https://juliaquantumcontrol.github.io/QuantumControl.jl/' + suffix } ">QuantumControl.jl</a>
47
- <a class="nav-link nav-item ${ name . includes ( 'Examples ' ) ? 'current' : '' } " href="${ name . includes ( 'Examples ' ) ? '' : 'https://juliaquantumcontrol.github.io/QuantumControlExamples.jl/' + suffix } ">Examples </a>
49
+ <a class="nav-link nav-item ${ name . includes ( 'Tutorials ' ) ? 'current' : '' } " href="${ name . includes ( 'Tutorials ' ) ? '' : 'https://juliaquantumcontrol.github.io/Tutorials/' } ">Tutorials </a>
48
50
</div>
49
51
<button id="multidoc-toggler">
50
52
<svg viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
You can’t perform that action at this time.
0 commit comments