Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions assets/js/contentNavigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ const initAside = () => {
asideContent.removeAttribute("role");
asideContent.setAttribute("aria-hidden", "true");
handleBtn.setAttribute("aria-expanded", "false");
overlay.classList.remove("overlay--show");
overlay.classList.remove("overlay--show", "overlay--content");
};

const openSheet = () => {
isClosed = false;
aside.classList.add("o-aside--open");
overlay.classList.add("overlay--show");
overlay.classList.add("overlay--show", "overlay--content");
asideContent.setAttribute("role", "dialog");
asideContent.setAttribute("aria-hidden", "false");
handleBtn.setAttribute("aria-expanded", "true");
Expand Down
4 changes: 2 additions & 2 deletions assets/js/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ const initSearch = () => {

const closeSearch = () => {
search.querySelector(".pagefind-ui__search-clear").click();
overlay.classList.remove("overlay--show", "overlay--show-lv5");
overlay.classList.remove("overlay--show", "overlay--search");
search.classList.remove("o-search--show");
updateSearchButtonLabels(false);
};

const openSearch = () => {
overlay.classList.add("overlay--show", "overlay--show-lv5");
overlay.classList.add("overlay--show", "overlay--search");
search.classList.add("o-search--show");
searchElement.focus();
search.scrollIntoView({ behavior: "smooth", block: "start" });
Expand Down
2 changes: 1 addition & 1 deletion assets/sass/anchorlink.scss
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
align-self: flex-start;
margin: 1rem;
text-wrap: balance;
z-index: 1000;
z-index: 22;
}

.a-snackbar--show {
Expand Down
2 changes: 1 addition & 1 deletion assets/sass/contentNavigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
font-size: 1.4rem;
line-height: 1.5;
margin-right: 0;
z-index: 3;
z-index: 8;
display: flex;
flex-direction: column;
gap: 1.5rem;
Expand Down
1 change: 0 additions & 1 deletion assets/sass/dropdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
margin-bottom: 0;
padding-left: 0;
box-shadow: var(--box-shadow);
z-index: 200;
border: var(--border);

&--above {
Expand Down
1 change: 0 additions & 1 deletion assets/sass/interactiveMap.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
display: flex;
flex-direction: column;
gap: 0.5rem;
z-index: 3;

@media print {
display: none;
Expand Down
8 changes: 4 additions & 4 deletions assets/sass/navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
top: 0;
box-shadow: 0 0.4rem 1rem 0 rgba(0, 0, 0, 0.1);
background-color: var(--bg-default);
z-index: 7;
z-index: 14;
height: 6rem;
padding-left: calc((100vw - 100%) / 2);
border-bottom: var(--border);
Expand All @@ -30,7 +30,7 @@
background-color: rgba(0, 0, 0, 0.8);
inset: 0;
position: fixed;
z-index: 2;
z-index: 18;
}

.o-header__nav {
Expand Down Expand Up @@ -108,7 +108,7 @@ menu > li > menu {
background-color: var(--bg-neutral);
border-radius: var(--border-radius-s);
color: var(--bg-default);
z-index: 100;
z-index: 16;

&:focus {
opacity: 1;
Expand Down Expand Up @@ -251,7 +251,7 @@ menu > li > menu {
right: 0;
width: 70%;
height: 100%;
z-index: 4;
z-index: 20;
background-color: var(--bg-default);
padding: 1rem;
overflow-y: scroll;
Expand Down
12 changes: 7 additions & 5 deletions assets/sass/search.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
$search-z-index: 12;

#search {
width: 100%;
display: flex;
z-index: 6;
z-index: $search-z-index;

@media print {
display: none;
Expand Down Expand Up @@ -33,7 +35,7 @@
}

input.pagefind-ui__search-input {
z-index: 6;
z-index: $search-z-index;
outline: 0.2rem solid transparent;
border: var(--border);
box-shadow: var(--box-shadow);
Expand Down Expand Up @@ -65,7 +67,7 @@
}

.pagefind-ui__form::before {
z-index: 7;
z-index: $search-z-index + 1;
}

.pagefind-ui__drawer {
Expand All @@ -75,7 +77,7 @@
overflow: hidden;
position: absolute;
width: 100%;
z-index: 6;
z-index: $search-z-index;
border: var(--border);
border-radius: 0 0 var(--border-radius-l) var(--border-radius-l);
}
Expand Down Expand Up @@ -156,6 +158,6 @@
display: block;
opacity: 1;
visibility: visible;
z-index: 6;
z-index: $search-z-index;
}
}
9 changes: 6 additions & 3 deletions assets/sass/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -389,15 +389,18 @@ details > summary {
background-color: rgba(0, 0, 0, 0.6);
position: fixed;
inset: 0;
z-index: 3;

@media print {
display: none;
}
}

.overlay--show-lv5 {
z-index: 5;
.overlay--content {
z-index: 6;
}

.overlay--search {
z-index: 10;
}

body:has(.overlay--show) {
Expand Down
Loading