quitsocialmedia.club/styles/parts/_nav.scss

144 lines
2.2 KiB
SCSS
Raw Permalink Normal View History

2023-04-12 21:58:52 +02:00
@use 'parts/root';
2022-06-01 10:26:43 +02:00
header {
2023-04-12 21:58:52 +02:00
height: root.$mega;
2020-12-31 20:03:57 +01:00
text-transform: uppercase;
* {
2023-04-12 21:58:52 +02:00
border-radius: root.$radius-m;
2022-01-05 20:29:51 +01:00
list-style-type: none !important;
font-weight: 700 !important;
z-index: 9;
2020-12-31 20:03:57 +01:00
}
}
#home {
2022-01-05 20:29:51 +01:00
position: fixed;
top: 1.5vw;
left: 5vw;
2023-04-12 21:58:52 +02:00
padding: 0 root.$regular-less;
line-height: root.$height;
font-size: root.$bigger;
box-shadow: var(--shadow);
color: #FFF;
background: var(--red);
border: 3px solid #FFF;
&:hover,
&:focus {
color: var(--primary);
background: var(--background);
border-color: var(--primary);
2020-12-31 20:03:57 +01:00
}
}
#nav {
position: fixed;
top: 1.5vw;
right: 6vw;
2020-12-31 20:03:57 +01:00
text-align: right;
2023-04-12 21:58:52 +02:00
padding: 0 root.$small;
2020-12-31 20:03:57 +01:00
box-shadow: var(--shadow);
background: var(--background);
2022-01-05 20:29:51 +01:00
* {
margin: 0 !important;
2020-12-31 20:03:57 +01:00
}
2022-09-18 10:24:33 +02:00
ul,
menu {
2020-12-31 20:03:57 +01:00
padding: 0;
li {
float: left;
2022-01-05 20:29:51 +01:00
a,
label {
2020-12-31 20:03:57 +01:00
display: block;
color: var(--text) !important;
2023-04-12 21:58:52 +02:00
line-height: root.$height;
height: root.$height;
padding: 0 root.$small;
font-size: root.$regular-more;
2021-01-01 01:48:06 +01:00
font-weight: 700;
&::after {
content: none;
}
2020-12-31 20:03:57 +01:00
&:hover,
&:focus{
transform: scale(1.1) rotate(3deg);
filter: none;
border-bottom: none;
2020-12-31 20:03:57 +01:00
}
&:active {
opacity: .6;
}
&::before {
content: none !important;
}
}
}
}
}
2023-04-12 21:58:52 +02:00
#nav-toggle-button {
2022-09-18 10:24:33 +02:00
display: none;
2020-12-31 20:03:57 +01:00
span {
top: 1.4rem;
2023-04-12 21:58:52 +02:00
left: root.$tiny;
2020-12-31 20:03:57 +01:00
}
span,
span::before,
span::after {
2023-04-12 21:58:52 +02:00
height: root.$tiny;
width: 1.7rem;
2020-12-31 20:03:57 +01:00
background: var(--text);
2023-04-12 21:58:52 +02:00
position: relative;
2020-12-31 20:03:57 +01:00
display: block;
2022-01-05 20:29:51 +01:00
content: '';
2020-12-31 20:03:57 +01:00
box-shadow: var(--little-shadow);
2023-04-12 21:58:52 +02:00
border-radius: root.$radius-s !important;
2020-12-31 20:03:57 +01:00
}
span::before {
2023-04-12 21:58:52 +02:00
bottom: .6rem;
2020-12-31 20:03:57 +01:00
}
span::after {
2023-04-12 21:58:52 +02:00
top: .6rem - root.$tiny;
2020-12-31 20:03:57 +01:00
}
}
2022-09-18 10:24:33 +02:00
2020-12-31 20:03:57 +01:00
@media only screen and (max-width: 950px) {
2022-01-05 20:29:51 +01:00
#home {
2023-04-12 21:58:52 +02:00
right: 5vw;
top: 2vh;
text-align: center;
2022-01-05 20:29:51 +01:00
}
2023-04-12 21:58:52 +02:00
header {
2022-01-05 20:29:51 +01:00
margin: 3vh;
}
2023-04-12 21:58:52 +02:00
#nav-toggle-button {
2020-12-31 20:03:57 +01:00
display: block;
}
2023-04-12 21:58:52 +02:00
menu {
2020-12-31 20:03:57 +01:00
position: fixed;
2023-04-12 21:58:52 +02:00
width: 13rem;
bottom: calc(3vh + 4.5rem);
right: -14rem;
2020-12-31 20:03:57 +01:00
background: var(--background);
box-shadow: var(--shadow);
2022-01-05 20:29:51 +01:00
z-index: 9;
2023-04-12 21:58:52 +02:00
border: 3px solid var(--text);
overflow: hidden;
2023-04-12 21:58:52 +02:00
}
#nav menu li,
#nav ul li {
float: none;
border-radius: 0 !important;
a,
label {
padding: 0 root.$regular-more;
}
2020-12-31 20:03:57 +01:00
}
}
2022-01-05 20:29:51 +01:00
#menutoggle:checked {
2022-09-18 10:24:33 +02:00
& ~ menu {
right: calc(4vw + .3rem);
}
2023-04-12 21:58:52 +02:00
}