lbry-desktop/ui/scss/component/_navigation.scss

67 lines
1.2 KiB
SCSS
Raw Normal View History

.navigation {
2019-06-11 14:10:58 -04:00
width: var(--side-nav-width);
2019-07-21 17:31:22 -04:00
font-size: var(--font-body);
2020-01-06 13:32:35 -05:00
margin-left: var(--spacing-main-padding);
2019-12-18 00:27:08 -05:00
@media (max-width: $breakpoint-small) {
display: none;
2020-01-08 14:20:30 -05:00
margin-left: 0;
}
}
.navigation + .ads-wrapper {
margin-top: var(--spacing-large);
}
2020-01-02 11:30:27 -05:00
.navigation__secondary {
margin-top: var(--spacing-large);
}
2019-07-21 17:31:22 -04:00
.navigation-links {
@extend .ul--no-style;
flex-direction: column;
align-items: flex-start;
list-style: none;
}
2019-07-21 17:31:22 -04:00
.navigation-links--small {
@extend .navigation-links;
2019-11-22 16:13:00 -05:00
font-size: var(--font-small);
2019-07-21 17:31:22 -04:00
}
2019-09-27 14:56:15 -04:00
.navigation-links__inline {
2019-09-30 15:52:53 -04:00
margin-left: calc(var(--spacing-medium) + var(--spacing-small));
2019-09-27 14:56:15 -04:00
}
2019-07-21 17:31:22 -04:00
.navigation-link__wrapper {
margin: var(--spacing-miniscule) 0;
2019-03-28 12:53:13 -04:00
}
2019-07-21 17:31:22 -04:00
.navigation-link {
display: block;
position: relative;
text-align: left;
transition: color 0.2s;
2019-06-11 14:10:58 -04:00
overflow: hidden;
white-space: nowrap;
2019-06-11 14:10:58 -04:00
text-overflow: ellipsis;
2019-11-22 16:13:00 -05:00
color: var(--color-navigation-link);
2019-07-21 17:31:22 -04:00
margin-top: var(--spacing-small);
2019-06-19 01:05:43 -04:00
2019-07-21 22:05:37 -04:00
.icon {
2019-11-22 16:13:00 -05:00
stroke: var(--color-link-icon);
}
2019-11-22 16:13:00 -05:00
&:hover,
2019-07-21 17:31:22 -04:00
&.navigation-link--active {
2019-11-22 16:13:00 -05:00
color: var(--color-link-active);
2019-06-11 14:10:58 -04:00
.icon {
2019-11-22 16:13:00 -05:00
stroke: var(--color-link-active);
}
}
2019-11-22 16:13:00 -05:00
&:focus {
box-shadow: none;
}
}