lbry-desktop/ui/scss/component/_navigation.scss
2020-01-24 14:26:37 -05:00

62 lines
1.1 KiB
SCSS

.navigation {
width: var(--side-nav-width);
font-size: var(--font-body);
margin-left: var(--spacing-main-padding);
@media (max-width: $breakpoint-small) {
display: none;
margin-left: 0;
}
}
.navigation__secondary {
margin-top: var(--spacing-large);
}
.navigation-links {
@extend .ul--no-style;
flex-direction: column;
align-items: flex-start;
list-style: none;
}
.navigation-links--small {
@extend .navigation-links;
font-size: var(--font-small);
}
.navigation-links__inline {
margin-left: calc(var(--spacing-medium) + var(--spacing-small));
}
.navigation-link__wrapper {
margin: var(--spacing-miniscule) 0;
}
.navigation-link {
display: block;
position: relative;
text-align: left;
transition: color 0.2s;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
color: var(--color-navigation-link);
margin-top: var(--spacing-small);
.icon {
stroke: var(--color-link-icon);
}
&:hover,
&.navigation-link--active {
color: var(--color-link-active);
.icon {
stroke: var(--color-link-active);
}
}
&:focus {
box-shadow: none;
}
}