1
0
Fork 0
mirror of https://github.com/GuerillaStudio/now-playing synced 2024-11-30 04:21:40 +00:00
now-playing/assets/scss/4-base/_07-navigation.scss
2024-11-09 03:56:32 +01:00

63 lines
1.3 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);
}
/* Mobile Menu
-------------------------------------------------------------- */
.navigation__mobileBtn,
.navigation__mobileOverlay {
display: none;
}