website/_src/assets/css/citrus/nav.css

75 lines
1.7 KiB
CSS
Raw Normal View History

2026-04-02 19:45:57 +03:00
.navbar {
2025-10-14 19:40:29 +03:00
color: var(--citrus-dark);
2026-04-02 19:45:57 +03:00
& section {
background: var(--details-bg);
box-shadow: var(--details-shine);
border: var(--details-border);
& h3 {
filter: drop-shadow(2px 0 var(--citrus-dark))
drop-shadow(-2px 0 var(--citrus-dark))
drop-shadow(0 2px var(--citrus-dark))
drop-shadow(0px -2px var(--citrus-dark));
color: var(--citrus-light);
}
2025-06-25 13:08:50 +03:00
}
& li :is(a, button) {
2025-10-14 19:40:29 +03:00
background: var(--button-bg);
box-shadow: var(--button-shine);
border: var(--button-border);
border-radius: var(--round);
color: inherit;
&[aria-current] {
background: var(--button-current-bg);
box-shadow: var(--button-current-shine);
border: var(--button-current-border);
color: var(--citrus-light);
}
&:is(:hover, :focus):not([aria-current]) {
2025-10-14 19:40:29 +03:00
background: var(--button-hover-bg);
box-shadow: var(--button-hover-shine);
border: var(--button-hover-border);
2026-04-02 19:45:57 +03:00
transition:
background-image var(--trans),
border-color var(--trans),
2025-10-14 19:40:29 +03:00
box-shadow var(--trans);
color: var(--citrus-mix-dark);
}
}
}
nav#default,
nav#floating,
header {
color: var(--citrus-dark);
2025-10-14 19:40:29 +03:00
background-attachment: fixed;
background-image: var(--nav-bg);
background-size: 6px;
}
nav#floating,
nav#default {
2026-04-02 19:45:57 +03:00
border-bottom-style: solid;
2025-10-14 19:40:29 +03:00
border-right-style: solid;
border-bottom-width: 4px;
2026-04-02 19:45:57 +03:00
border-right-width: 4px;
}
nav#default {
2026-04-02 19:45:57 +03:00
border-bottom-right-radius: var(--pad-l);
}
@media screen and (max-width: 916px) {
header {
background: none;
}
}
@media screen and (min-width: 916px) {
header {
display: flex;
width: var(--view);
border-right-width: 4px;
border-right-style: solid;
border-bottom-width: 4px;
border-bottom-style: solid;
border-bottom-right-radius: 100px;
margin-left: calc(var(--view) - 4px);
padding: var(--pad-m) 0;
}
}