2021-04-22 17:00:13 +02:00
|
|
|
/* Base elements */
|
2021-04-21 23:55:54 +02:00
|
|
|
nav {
|
2021-04-30 13:29:25 +02:00
|
|
|
z-index: 10;
|
|
|
|
|
2021-04-21 23:55:54 +02:00
|
|
|
margin: 0;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
background-color: var(--fwdekker-theme-color);
|
2021-04-22 19:23:13 +02:00
|
|
|
border-bottom: 1px solid #cccccc;
|
2021-04-21 23:55:54 +02:00
|
|
|
font-size: 120%;
|
|
|
|
|
|
|
|
--padding: calc(2em / 3);
|
|
|
|
}
|
|
|
|
|
|
|
|
nav * {
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
2021-04-28 12:26:01 +02:00
|
|
|
nav a, nav a:link, nav a:visited, nav a:hover, nav a:active {
|
|
|
|
width: 100%; /* Ensures whole li is clickable */
|
|
|
|
}
|
|
|
|
|
2021-04-22 17:00:13 +02:00
|
|
|
nav a, nav a:link, nav a:visited, nav a:hover, nav a:active, nav #nav-hamburger-label {
|
2021-04-21 23:55:54 +02:00
|
|
|
display: inline-block;
|
|
|
|
margin: 0;
|
|
|
|
padding: calc(var(--padding)) calc(var(--padding));
|
2021-04-22 17:00:13 +02:00
|
|
|
height: 100%;
|
2021-04-21 23:55:54 +02:00
|
|
|
|
|
|
|
color: white;
|
|
|
|
}
|
|
|
|
|
2021-04-22 17:00:13 +02:00
|
|
|
nav #nav-hamburger-label {
|
|
|
|
float: right;
|
|
|
|
font-size: unset;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2021-04-21 23:55:54 +02:00
|
|
|
|
2021-04-22 17:00:13 +02:00
|
|
|
/* Logo */
|
2021-04-21 23:55:54 +02:00
|
|
|
nav .logo {
|
|
|
|
width: calc(1em + var(--padding));
|
|
|
|
height: calc(1em + var(--padding));
|
|
|
|
|
|
|
|
vertical-align: middle;
|
|
|
|
filter: brightness(0) invert(1);
|
|
|
|
}
|
2021-04-22 17:00:13 +02:00
|
|
|
|
2021-04-21 23:55:54 +02:00
|
|
|
nav div.logo {
|
|
|
|
display: inline-block;
|
|
|
|
margin-right: calc(1em / 3);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2021-04-22 17:00:13 +02:00
|
|
|
/* First level nesting */
|
2021-04-21 23:55:54 +02:00
|
|
|
nav ul {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
list-style: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
nav ul li {
|
|
|
|
display: inline-block;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
position: relative;
|
|
|
|
background-color: var(--fwdekker-theme-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
nav ul li:hover,
|
2021-04-22 17:00:13 +02:00
|
|
|
nav ul li:focus-within,
|
|
|
|
nav #nav-hamburger-label:hover,
|
|
|
|
nav #nav-hamburger-label:focus-within {
|
2021-04-21 23:55:54 +02:00
|
|
|
cursor: pointer;
|
|
|
|
background-color: var(--fwdekker-theme-color-very-dark);
|
|
|
|
}
|
|
|
|
|
|
|
|
nav li.currentPage {
|
|
|
|
background-color: var(--fwdekker-theme-color-dark);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2021-04-22 17:00:13 +02:00
|
|
|
/* Second level nesting */
|
2021-04-21 23:55:54 +02:00
|
|
|
nav ul li ul {
|
2021-04-30 13:29:25 +02:00
|
|
|
z-index: 11;
|
|
|
|
|
2021-04-21 23:55:54 +02:00
|
|
|
display: none;
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
nav ul li ul li ul {
|
|
|
|
left: 100%;
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
nav ul li:hover > ul,
|
|
|
|
nav ul li:focus-within > ul,
|
|
|
|
nav ul li ul:hover {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
nav ul li ul li {
|
|
|
|
min-width: 7em;
|
|
|
|
width: 100%;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
2021-04-22 17:00:13 +02:00
|
|
|
|
|
|
|
|
|
|
|
/* Hide hamburger-related elements */
|
|
|
|
nav input[type="checkbox"] {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: 600px) {
|
|
|
|
nav #nav-hamburger-label {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: 600px) {
|
|
|
|
nav input[type="checkbox"]:not(:checked) ~ ul li:not(:first-child) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|