website/assets/import/nav.scss
2020-11-09 18:49:14 +01:00

117 lines
2.3 KiB
SCSS

nav {
background: $bg60;
overflow-x: auto;
overflow-y: hidden;
position: sticky;
top: 0;
white-space: nowrap;
z-index: 20;
.container {
align-items: center;
display: flex;
height: 64px;
.website-name {
a {
color: $white;
display: block;
padding: 20px 30px;
text-decoration: none;
transition: background .2s;
&:hover {
background: $bg50;
}
&.active {
border-bottom: 2px solid $white-dark;
border-top: 2px solid transparent;
padding: 16px 30px;
}
}
}
.seperator {
cursor: default;
display: block;
padding: 20px;
}
.website-mainmenu {
ul {
display: flex;
margin: 0;
padding: 0;
li {
list-style-type: none;
&.active a {
border-bottom: 2px solid $white-dark;
border-top: 4px solid transparent;
padding: 16px 30px;
}
a {
color: $white;
display: block;
text-decoration: none;
transition: background .2s;
padding: 20px 30px;
&:hover {
background: $bg50;
}
}
}
}
}
.website-externallinks {
margin-left: auto;
ul {
display: flex;
margin: 0;
padding: 0;
li {
list-style-type: none;
a {
color: $white;
display: block;
text-decoration: none;
transition: background .2s;
padding: 20px 30px;
&:hover {
background: $bg50;
}
}
.seperator {
display: block;
padding: 20px 10px;
}
}
}
}
}
}
@media (max-width: 1140px) {
nav {
.container {
margin: 0;
width: 100%;
}
}
}
@media (max-width: 800px) {
nav {
.container {
.website-externallinks {
ul {
li {
a {
background: $bg50;
color: $white-dark;
&:hover {
background: $bg40;
}
}
.seperator {
display: block;
padding: 20px 10px;
}
}
}
}
}
}
}