2023-05-08 00:50:14 +00:00
|
|
|
:root {
|
|
|
|
--nav-bg-color: black;
|
|
|
|
--nav-text-color: white;
|
|
|
|
--nav-header-bg-color: #0f0;
|
|
|
|
--nav-header-text-color: black;
|
|
|
|
--nav-link-hover-color: var(--main-bg-color, #404040);
|
|
|
|
}
|
|
|
|
|
2023-04-25 21:35:50 +00:00
|
|
|
nav {
|
|
|
|
overflow: hidden;
|
2023-05-08 00:50:14 +00:00
|
|
|
background-color: var(--nav-bg-color);
|
|
|
|
color: var(--nav-text-color);
|
2023-04-25 21:35:50 +00:00
|
|
|
font-size: larger;
|
|
|
|
}
|
|
|
|
|
2023-05-08 00:50:14 +00:00
|
|
|
nav h1 {
|
|
|
|
font-size: 18px;
|
|
|
|
margin: 0px;
|
|
|
|
background-color: var(--nav-header-bg-color);
|
|
|
|
color: var(--nav-header-text-color);
|
|
|
|
}
|
|
|
|
|
2023-04-25 21:35:50 +00:00
|
|
|
nav a, nav h1, nav label {
|
|
|
|
text-align: left;
|
2023-05-07 04:15:22 +00:00
|
|
|
padding: 8px 10px;
|
2023-04-25 21:35:50 +00:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
#hamnav label, #hamburger {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (min-width: 600px){
|
2023-05-03 21:39:26 +00:00
|
|
|
#hamitems a:hover, #hamitems a[aria-current="true"], #hamitems:hover a[aria-current="true"]:hover {
|
2023-05-08 00:50:14 +00:00
|
|
|
background-color: var(--nav-link-hover-color);
|
2023-05-03 21:39:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#hamitems:hover a[aria-current="true"] {
|
2023-05-08 00:50:14 +00:00
|
|
|
background-color: var(--nav-bg-color);
|
2023-05-03 21:39:26 +00:00
|
|
|
}
|
|
|
|
|
2023-04-25 21:35:50 +00:00
|
|
|
nav {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
#hamitems {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (max-width: 600px){
|
|
|
|
nav {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 1fr auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
#hamitems {
|
|
|
|
display: block;
|
2023-05-03 21:39:26 +00:00
|
|
|
position: absolute;
|
2023-05-08 02:27:14 +00:00
|
|
|
top: 43px;
|
2023-05-03 21:39:26 +00:00
|
|
|
right: 0;
|
2023-05-08 02:27:14 +00:00
|
|
|
background-color: var(--nav-bg-color);
|
2023-04-25 21:35:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#hamitems a {
|
|
|
|
box-sizing: border-box;
|
|
|
|
display: block;
|
|
|
|
text-align: center;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
#hamnav label {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
2023-05-03 22:08:00 +00:00
|
|
|
#hamburger ~ #hamitems a {
|
|
|
|
height: 0;
|
|
|
|
padding: 0 0.5em;
|
|
|
|
border: 0;
|
|
|
|
transition: height 250ms cubic-bezier(0.23, 1, 0.32, 1);
|
2023-05-08 02:27:14 +00:00
|
|
|
visibility: hidden;
|
2023-04-25 21:35:50 +00:00
|
|
|
}
|
|
|
|
|
2023-05-03 22:08:00 +00:00
|
|
|
#hamburger:checked ~ #hamitems a {
|
|
|
|
height: 2.5em;
|
|
|
|
padding: 0.5em;
|
|
|
|
transition: height 250ms cubic-bezier(0.23, 1, 0.32, 1);
|
2023-05-08 02:27:14 +00:00
|
|
|
visibility: visible;
|
2023-04-25 21:35:50 +00:00
|
|
|
}
|
|
|
|
}
|