File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 66# topbar-nav {
77 width : 100% ;
88 height : var (--navbar-height );
9- z-index : 10 ;
9+ z-index : 100 ;
1010 padding : 0 1rem ;
1111 position : sticky;
1212 display : flex;
6161 padding : 0 0.75rem ;
6262 line-height : var (--navbar-height );
6363 font-size : 16px ;
64+ font-weight : 400 ;
6465 display : inline-block;
6566 margin : 0 ;
6667}
7576}
7677
7778# topbar-nav .nav-expanded .dropdown-label {
78- text-decoration : underline ;
79+ text-decoration : none ;
7980}
8081
8182# topbar-nav .dropdown-label ::after {
@@ -108,6 +109,8 @@ html {
108109 position : absolute;
109110 display : none;
110111 width : 16rem ;
112+ margin-block-start : 0 ;
113+ margin-block-end : 0 ;
111114}
112115
113116# topbar-nav .nav-dropdown-container .nav-item : hover {
@@ -131,6 +134,7 @@ html {
131134}
132135
133136# topbar-nav a .nav-link {
137+ text-decoration-line : none;
134138 color : # ccc ;
135139}
136140
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ document.addEventListener("DOMContentLoaded", function() {
77 if ( match && match [ 1 ] ) {
88 name = match [ 1 ] ;
99 name = name . concat ( ".jl" ) ;
10+ } else {
11+ name = content
1012 }
1113 }
1214 var footerMessageElement = document . querySelector ( 'p.footer-message' ) ;
@@ -28,7 +30,7 @@ document.addEventListener("DOMContentLoaded", function() {
2830 var dropdownItems = packages . map ( function ( packageName ) {
2931 return `<a class="nav-link nav-item ${ name === packageName ? 'current' : '' } " href="https://juliaquantumcontrol.github.io/${ packageName } /${ suffix } ">${ packageName } </a>` ;
3032 } ) . 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 ' ) ) ;
3234 var navElement = document . createElement ( 'nav' ) ;
3335 navElement . id = "topbar-nav" ;
3436 navElement . innerHTML = `
@@ -44,7 +46,7 @@ document.addEventListener("DOMContentLoaded", function() {
4446 </div>
4547 <a class="nav-link nav-item ${ name === 'QuantumPropagators.jl' ? 'current' : '' } " href="${ name === 'QuantumPropagators.jl' ? '' : 'https://juliaquantumcontrol.github.io/QuantumPropagators.jl/' + suffix } ">QuantumPropagators.jl</a>
4648 <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>
4850 </div>
4951 <button id="multidoc-toggler">
5052 <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