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

73 lines
1.1 KiB
SCSS
Raw Normal View History

.navigation {
2019-06-11 20:10:58 +02:00
width: var(--side-nav-width);
2019-07-21 23:31:22 +02:00
font-size: var(--font-body);
@media (max-width: 600px) {
display: none;
}
}
2019-07-21 23:31:22 +02:00
.navigation-links {
@extend .ul--no-style;
flex-direction: column;
align-items: flex-start;
position: relative;
2019-07-21 23:31:22 +02:00
list-style: none;
}
2019-07-21 23:31:22 +02:00
.navigation-links--small {
@extend .navigation-links;
font-size: var(--font-multiplier-small);
}
.navigation-link__wrapper {
margin: var(--spacing-miniscule) 0;
2019-03-28 17:53:13 +01:00
}
2019-07-21 23:31:22 +02:00
.navigation-link {
display: block;
position: relative;
text-align: left;
transition: color 0.2s;
2019-06-11 20:10:58 +02:00
overflow: hidden;
white-space: nowrap;
2019-06-11 20:10:58 +02:00
text-overflow: ellipsis;
color: lighten($lbry-black, 20%);
2019-07-21 23:31:22 +02:00
margin-top: var(--spacing-small);
2019-06-19 07:05:43 +02:00
2019-07-22 04:05:37 +02:00
.icon {
stroke: $lbry-gray-5;
}
2019-06-11 20:10:58 +02:00
&:hover {
color: $lbry-teal-4;
.icon {
color: $lbry-teal-4;
}
}
2019-07-21 23:31:22 +02:00
&.navigation-link--active {
2019-06-11 20:10:58 +02:00
color: $lbry-teal-5;
.icon {
color: $lbry-teal-4;
}
}
2019-06-11 20:10:58 +02:00
[data-mode='dark'] & {
2019-07-01 20:42:32 +02:00
color: var(--dm-color-01);
2019-06-11 20:10:58 +02:00
svg {
2019-07-22 04:05:37 +02:00
stroke: var(--dm-color-01);
2019-02-05 18:05:54 +01:00
}
2019-06-11 20:10:58 +02:00
&:hover,
2019-07-21 23:31:22 +02:00
&.navigation-link--active {
2019-06-11 20:10:58 +02:00
color: $lbry-teal-4;
2019-07-01 20:42:32 +02:00
2019-06-11 20:10:58 +02:00
.icon {
2019-07-22 04:05:37 +02:00
stroke: $lbry-teal-4;
2019-06-11 20:10:58 +02:00
}
}
}
}