1
0
Fork 0
mirror of https://github.com/GuerillaStudio/now-playing synced 2024-11-09 17:51:52 +00:00
now-playing/assets/scss/4-base/_07-navigation.scss
2019-11-27 18:06:26 +01:00

87 lines
1.8 KiB
SCSS

/* ----------------------------------------------------------- */
/* == navigation */
/* ----------------------------------------------------------- */
.navigation {
display: flex;
align-items: center;
margin-top: .5rem;
}
.navigation__item,
.navigation__item:link,
.navigation__item:visited {
position: relative;
margin-left: 4rem;
padding: 0;
border: none;
background-color: transparent;
color: rgba($color-light-text, .8);
text-decoration: none;
font-weight: 600;
cursor: pointer;
}
.navigation__item::after {
position: absolute;
top: calc(100% + .8rem);
left: calc(50% - .3rem);
width: .6rem;
height: .6rem;
border-radius: 4.2rem;
background-color: $color-secondary;
content: "";
opacity: 0;
transition: all .15s cubic-bezier(.68,-.55,.27,1.55);
transform: translateY(-2rem);
}
.navigation__item.active,
.navigation__item:hover,
.navigation__item:active,
.navigation__item:focus {
color: $color-light-text;
}
.navigation__item:active {
box-shadow: none;
}
.navigation__item.active::after,
.navigation__item:active::after,
.navigation__item:focus::after {
opacity: 1;
transform: translateY(0);
}
.navigation__item--admin:link,
.navigation__item--admin:visited {
padding: .3rem 1rem;
border: .1rem solid rgba(#fff, .8);
border-radius: .3rem;
}
.navigation__item--thin,
.navigation__item--thin:link,
.navigation__item--thin:visited,
.navigation__item--thin:hover,
.navigation__item--thin:active {
color: rgba($color-light-text, .8);
font-weight: normal;
font-size: 1em;
cursor: normal;
}
.navigation__item--near,
.navigation__item--near:link,
.navigation__item--near:visited {
margin-left: .5rem;
}
/* Mobile Menu
-------------------------------------------------------------- */
.navigation__mobileBtn,
.navigation__mobileOverlay {
display: none;
}