2018-12-19 06:44:53 +01:00
|
|
|
.navigation {
|
|
|
|
background-color: $lbry-white;
|
|
|
|
border-right: 1px solid rgba($lbry-gray-1, 0.9);
|
|
|
|
font-size: 1.25rem;
|
|
|
|
padding-top: var(--spacing-vertical-large);
|
2019-01-14 19:40:06 +01:00
|
|
|
padding-right: var(--spacing-vertical-small);
|
2018-12-19 06:44:53 +01:00
|
|
|
position: relative;
|
|
|
|
|
|
|
|
html[data-theme='dark'] & {
|
|
|
|
background-color: $lbry-black;
|
|
|
|
border-right: 1px solid $lbry-black;
|
|
|
|
}
|
|
|
|
|
|
|
|
// The navigation does not need to be visible
|
|
|
|
// on smaller screen widths
|
|
|
|
|
|
|
|
@media (min-width: 601px) {
|
2019-01-14 19:40:06 +01:00
|
|
|
min-width: 171px; // 1px is for the border
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: 600px) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
bottom: 0;
|
|
|
|
right: 0;
|
|
|
|
|
|
|
|
// TODO: Make this gradient "to bottom" on mobile view
|
|
|
|
background-image: linear-gradient(
|
|
|
|
to right,
|
|
|
|
transparent,
|
|
|
|
rgba(mix($lbry-blue-3, $lbry-gray-4, 15%), 0.2) 100%
|
|
|
|
);
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
z-index: 0;
|
|
|
|
|
|
|
|
html[data-theme='dark'] & {
|
|
|
|
background-image: linear-gradient(
|
|
|
|
to bottom right,
|
|
|
|
transparent,
|
|
|
|
rgba(mix($lbry-blue-3, $lbry-gray-4, 15%), 0.2) 100%
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.navigation__links {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.navigation__link {
|
|
|
|
display: block;
|
|
|
|
line-height: 1.75;
|
|
|
|
padding-left: var(--spacing-vertical-large);
|
|
|
|
position: relative;
|
|
|
|
text-align: left;
|
|
|
|
transition: color 0.2s;
|
|
|
|
white-space: nowrap;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
|
|
|
|
background-color: $lbry-teal-3;
|
|
|
|
content: '';
|
|
|
|
height: 100%;
|
|
|
|
position: absolute;
|
|
|
|
transition: width 0.2s;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(.navigation__link--active):not(.navigation__link--title) {
|
|
|
|
color: $lbry-gray-5;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
width: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(.navigation__link--title):hover,
|
|
|
|
&.navigation__link--active {
|
|
|
|
color: $lbry-black;
|
|
|
|
|
|
|
|
html[data-theme='dark'] & {
|
|
|
|
color: $lbry-gray-1;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
width: 0.5rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.navigation__link--title {
|
|
|
|
margin-bottom: var(--spacing-vertical-small);
|
|
|
|
padding-top: var(--spacing-vertical-medium);
|
|
|
|
|
|
|
|
color: $lbry-gray-5;
|
|
|
|
cursor: default;
|
2019-01-14 19:40:06 +01:00
|
|
|
font-size: 1.15rem;
|
2018-12-19 06:44:53 +01:00
|
|
|
font-weight: 700;
|
|
|
|
letter-spacing: 0.1rem;
|
|
|
|
text-transform: uppercase;
|
|
|
|
}
|
|
|
|
|
|
|
|
.navigation__link-items {
|
|
|
|
font-size: 1.15rem;
|
|
|
|
padding-left: var(--spacing-vertical-large);
|
|
|
|
}
|
|
|
|
|
|
|
|
.navigation__link-item {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
width: 0.25rem;
|
|
|
|
height: 0.25rem;
|
|
|
|
top: 44%;
|
|
|
|
left: -1rem;
|
|
|
|
|
|
|
|
border-radius: 50%;
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
transition: background-color 0.2s;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(.navigation__link-item--active) {
|
|
|
|
color: $lbry-gray-5;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
.navigation__link-item--active {
|
|
|
|
&::before {
|
|
|
|
background-color: $lbry-black;
|
|
|
|
|
|
|
|
html[data-theme='dark'] & {
|
|
|
|
color: $lbry-gray-1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|