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

76 lines
1.3 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-08-21 22:54:44 +02:00
.navigation--placeholder {
@extend .navigation;
2019-09-26 18:07:11 +02:00
padding: 2rem 1.5rem;
2019-08-21 22:54:44 +02:00
border-radius: var(--card-radius);
2019-11-07 20:39:22 +01:00
font-weight: var(--font-weight-bold);
2019-11-22 22:13:00 +01:00
color: #fff;
2019-09-26 18:07:11 +02:00
position: relative;
2019-12-09 18:25:13 +01:00
background-color: black;
2019-09-26 18:07:11 +02:00
h2 {
font-size: 2rem;
2019-11-07 20:39:22 +01:00
font-weight: var(--font-weight-bold);
2019-09-26 18:07:11 +02:00
}
p {
2019-11-22 22:13:00 +01:00
font-size: 1.2rem;
2019-09-26 18:07:11 +02:00
}
2019-08-21 22:54:44 +02:00
}
2019-07-21 23:31:22 +02:00
.navigation-links {
@extend .ul--no-style;
flex-direction: column;
align-items: flex-start;
list-style: none;
}
2019-07-21 23:31:22 +02:00
.navigation-links--small {
@extend .navigation-links;
2019-11-22 22:13:00 +01:00
font-size: var(--font-small);
2019-07-21 23:31:22 +02:00
}
2019-09-27 20:56:15 +02:00
.navigation-links__inline {
2019-09-30 21:52:53 +02:00
margin-left: calc(var(--spacing-medium) + var(--spacing-small));
2019-09-27 20:56:15 +02:00
}
2019-07-21 23:31:22 +02:00
.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;
2019-11-22 22:13:00 +01:00
color: var(--color-navigation-link);
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 {
2019-11-22 22:13:00 +01:00
stroke: var(--color-link-icon);
}
2019-11-22 22:13:00 +01:00
&:hover,
2019-07-21 23:31:22 +02:00
&.navigation-link--active {
2019-11-22 22:13:00 +01:00
color: var(--color-link-active);
2019-06-11 20:10:58 +02:00
.icon {
2019-11-22 22:13:00 +01:00
stroke: var(--color-link-active);
}
}
2019-11-22 22:13:00 +01:00
&:focus {
box-shadow: none;
}
}