php-gallery/css/nav.css

60 lines
986 B
CSS

/*
-=-=-= NAV =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
*/
nav {
margin: 0 0 2rem; padding: 0.5rem;
width: calc(100vh - 2rem)); height: 2.5rem;
position: sticky; z-index: 99;
top: 1rem;
align-items: center;
vertical-align: middle;
background-color: var(--bg); color: var(--fg);
backdrop-filter: blur(8px);
border: 0.2rem solid var(--green);
outline: 0.5rem solid var(--bg);
border-radius: var(--rad);
box-shadow: var(--shadow);
}
nav p {
margin: 0;
vertical-align: middle;
}
nav hr {
margin: 0.5rem 0.2rem; padding: 0;
opacity: 0;
}
.nav-name p, .nav-name {
display: block;
}
.nav-links {
width: auto;
justify-content: space-between;
}
@media (max-width: 800px) {
.nav-name p, .nav-name hr, .nav-name {
display: none;
}
.nav-links {
width: 100%;
justify-content: space-around;
}
}
@media (max-width: 550px) {
.nav-hide {
display: none;
}
.nav-links a .svg {
margin: 0;
}
}