frontpage/styles/Blog/Navigation.module.scss

57 lines
1.2 KiB
SCSS

.navigation {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: center;
max-width: 1000px;
/*min-width: 300px;*/
position: relative;
height: calc(1em + 40px);
margin: 0 auto;
padding: 20px;
font-size: 120%;
/* height / 2 */
border-radius: calc((1em + 40px) / 2);
border: 1px solid var(--blog_nav-border);
background: var(--blog_nav-background);
backdrop-filter: blur(var(--blog_content-blur));
box-shadow: 0px 2px 5px gray;
.imgContainer {
align-self: flex-start;
margin-top: -10px;
position: absolute;
cursor: pointer;
display: none;
}
.logo {
height: calc(1em + 40px - 20px);
}
.navLink {
transition: text-decoration 0.3s ease-in-out;
display: block;
margin: auto 5px;
cursor: pointer;
&:hover {
text-decoration: underline;
}
}
@media screen and (min-width: 300px) {
.imgContainer {
display: block;
}
.navLink:nth-of-type(1) {
margin-left: calc((501 / 204) * (1em + 40px - 20px) + 15px);
}
}
.spacer {
flex-grow: 2;
}
}