frontpage/styles/Blog/Navigation.module.scss

89 lines
1.8 KiB
SCSS
Raw Permalink Normal View History

2022-10-03 01:19:43 +02:00
.navigation {
2022-10-16 00:05:44 +02:00
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: center;
2022-10-03 01:19:43 +02:00
max-width: 1000px;
2022-10-16 00:05:44 +02:00
/*min-width: 300px;*/
2022-10-15 23:08:49 +02:00
position: relative;
height: calc(1em + 40px);
2022-10-03 01:19:43 +02:00
margin: 0 auto;
padding: 20px;
2022-10-15 23:08:49 +02:00
2022-10-03 01:19:43 +02:00
font-size: 120%;
2022-10-15 23:08:49 +02:00
/* height / 2 */
2022-10-03 01:19:43 +02:00
border-radius: calc((1em + 40px) / 2);
2022-10-15 23:08:49 +02:00
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;
2022-10-03 01:19:43 +02:00
2022-10-16 00:05:44 +02:00
.imgContainer {
align-self: flex-start;
2022-10-15 23:08:49 +02:00
margin-top: -10px;
2022-10-27 15:33:42 +02:00
position: relative;
2022-10-15 23:08:49 +02:00
cursor: pointer;
2022-10-16 00:05:44 +02:00
display: none;
height: calc(1em + 40px - 20px);
2022-10-18 23:40:09 +02:00
width: calc((501 / 204) * (1em + 40px - 20px));
2022-10-15 23:08:49 +02:00
}
2022-10-03 01:19:43 +02:00
2022-10-15 23:08:49 +02:00
.navLink {
2022-10-16 00:05:44 +02:00
transition: text-decoration 0.3s ease-in-out;
display: block;
2022-10-18 17:09:03 +02:00
margin-right: 10px;
2022-10-15 23:08:49 +02:00
cursor: pointer;
2022-10-03 01:19:43 +02:00
2022-10-16 00:05:44 +02:00
&:hover {
text-decoration: underline;
}
}
.navIcon {
margin-right: 15px;
2022-10-18 17:09:03 +02:00
height: 1.8em;
display: block;
}
.navLink .linkIcon {
cursor: pointer;
2022-10-18 17:09:03 +02:00
height: 1.8em;
display: block;
}
2022-10-18 17:09:03 +02:00
.navLink {
.linkText {
display: none;
}
.linkIcon {
display: block;
}
}
@media screen and (min-width: 450px) {
2022-10-16 00:05:44 +02:00
.imgContainer {
display: block;
}
.navLink:nth-of-type(1) {
2022-10-27 15:33:42 +02:00
margin-left: 15px; /*calc((501 / 204) * (1em + 40px - 20px) + 15px);*/
2022-10-15 23:08:49 +02:00
}
2022-10-16 00:05:44 +02:00
}
2022-10-03 01:19:43 +02:00
2022-10-18 17:09:03 +02:00
@media screen and (min-width: 350px) {
.navLink {
.linkText {
display: inline;
}
.linkIcon {
display: none;
}
}
}
2022-10-16 00:05:44 +02:00
.spacer {
flex-grow: 2;
}
2022-10-03 01:19:43 +02:00
}