Merge branch 'main' of ssh://github.com/OliveTin/OliveTin
This commit is contained in:
commit
86e876a9c9
|
|
@ -493,6 +493,17 @@ function showSectionView (selected) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const current = window.registeredPaths.get(window.currentPath)
|
||||||
|
|
||||||
|
for (const navLink of document.querySelector('nav').querySelectorAll('a')) {
|
||||||
|
console.log(navLink.title, current.section)
|
||||||
|
if (navLink.title === current.section) {
|
||||||
|
navLink.classList.add('selected')
|
||||||
|
} else {
|
||||||
|
navLink.classList.remove('selected')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
rebuildH1BreadcrumbNavigation(selected)
|
rebuildH1BreadcrumbNavigation(selected)
|
||||||
|
|
||||||
pushNewNavigationPath(window.currentPath)
|
pushNewNavigationPath(window.currentPath)
|
||||||
|
|
|
||||||
|
|
@ -65,6 +65,7 @@ nav ul li a {
|
||||||
padding: 0.5em 1em;
|
padding: 0.5em 1em;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
font-size: small;
|
||||||
}
|
}
|
||||||
|
|
||||||
a:focus {
|
a:focus {
|
||||||
|
|
@ -77,6 +78,14 @@ nav ul li a:hover {
|
||||||
background-color: #efefef;
|
background-color: #efefef;
|
||||||
color: black;
|
color: black;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
border: 0;
|
||||||
|
outline: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav ul li a.selected {
|
||||||
|
background-color: #c4cdd4;
|
||||||
|
color: black;
|
||||||
|
outline: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#sidebar-toggler-button {
|
#sidebar-toggler-button {
|
||||||
|
|
@ -489,6 +498,8 @@ span.annotation-value {
|
||||||
|
|
||||||
.box-shadow {
|
.box-shadow {
|
||||||
box-shadow: 0 0 5px 0 #444;
|
box-shadow: 0 0 5px 0 #444;
|
||||||
|
background-color: #fff;
|
||||||
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.box-shadow p {
|
.box-shadow p {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue