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

144 lines
2.4 KiB
SCSS
Raw Normal View History

2018-03-26 23:32:43 +02:00
.header {
2019-06-11 20:10:58 +02:00
z-index: 2; // Main content uses z-index: 1, this ensures it always scrolls under the header
position: fixed;
2019-06-11 20:10:58 +02:00
top: 0;
2018-06-25 08:07:45 +02:00
width: 100%;
2019-05-01 07:16:12 +02:00
background-color: $lbry-white;
border-bottom: 1px solid $lbry-gray-1;
2019-02-13 17:27:20 +01:00
html[data-mode='dark'] & {
background-color: mix($lbry-black, $lbry-gray-3, 90%);
color: $lbry-white;
2019-05-01 07:16:12 +02:00
border-bottom: none;
}
2018-06-25 08:07:45 +02:00
}
2019-06-11 20:10:58 +02:00
.header__contents {
width: 100%;
height: calc(var(--header-height) - 1px);
max-width: var(--page-max-width);
padding-left: var(--spacing-medium);
display: flex;
justify-content: space-between;
margin: auto;
}
.header__navigation {
2018-06-25 08:07:45 +02:00
display: flex;
2018-10-17 19:14:24 +02:00
2019-06-11 20:10:58 +02:00
&:last-of-type {
padding-left: var(--spacing-small);
width: var(--side-nav-width);
}
@media (max-width: 600px) {
display: none;
}
2018-06-25 08:07:45 +02:00
}
.header__navigation-arrows {
display: flex;
2019-06-11 21:02:13 +02:00
margin-right: var(--spacing-small);
2019-04-01 01:04:01 +02:00
}
.header__navigation-item {
height: var(--header-height);
2019-03-29 15:23:32 +01:00
display: flex;
justify-content: center;
align-items: center;
2019-05-01 07:16:12 +02:00
border-radius: 0;
2018-06-25 08:07:45 +02:00
2019-05-01 07:16:12 +02:00
svg {
stroke: $lbry-black;
}
&:hover {
2019-06-11 20:10:58 +02:00
color: $lbry-teal-5;
svg {
stroke: $lbry-teal-5;
}
2019-05-01 07:16:12 +02:00
}
2019-05-01 07:16:12 +02:00
&.header__navigation-item--active {
&::after {
height: 0.2em;
bottom: 0;
width: 100%;
2019-06-11 20:10:58 +02:00
background-color: $lbry-teal-5;
2019-05-01 07:16:12 +02:00
content: '';
position: absolute;
2019-06-11 20:10:58 +02:00
html[data-mode='dark'] & {
background-color: $lbry-teal-3;
}
2018-06-25 08:07:45 +02:00
}
}
2019-06-11 20:10:58 +02:00
// TODO: dark
2019-05-01 07:16:12 +02:00
html[data-mode='dark'] & {
&:hover {
2019-06-11 20:10:58 +02:00
color: $lbry-teal-3;
svg {
stroke: $lbry-teal-3;
}
2019-05-01 07:16:12 +02:00
}
2019-03-28 17:53:13 +01:00
2019-05-01 07:16:12 +02:00
svg {
stroke: $lbry-white;
}
2019-03-28 17:53:13 +01:00
}
}
2019-03-29 15:23:32 +01:00
.header__navigation-item--back,
2019-06-11 20:10:58 +02:00
.header__navigation-item--forward {
width: 3rem;
}
2019-03-29 15:23:32 +01:00
.header__navigation-item--lbry {
flex: 1;
font-weight: 800;
font-size: 1.2rem;
2019-06-11 21:02:13 +02:00
margin-right: var(--spacing-medium);
.lbry-icon {
height: 2rem;
width: 2rem;
}
}
.header__navigation-item--right-action {
2019-06-11 20:10:58 +02:00
&:first-of-type {
margin-right: auto;
}
2019-06-11 20:10:58 +02:00
&:not(:first-of-type) {
padding: 0 var(--spacing-medium);
}
2019-06-11 20:10:58 +02:00
&:last-of-type {
margin-right: 0;
}
}
2019-05-01 07:16:12 +02:00
.header__navigation-item--upgrade {
background-color: $lbry-teal-5;
color: $lbry-white;
svg {
stroke: $lbry-white;
}
2019-05-01 07:16:12 +02:00
&:hover {
background-color: $lbry-teal-4;
}
}
2019-03-29 15:23:32 +01:00
2019-05-01 07:16:12 +02:00
@media (max-width: 600px) {
2019-03-29 15:23:32 +01:00
.header__navigation-item--back,
.header__navigation-item--forward,
2019-05-01 07:16:12 +02:00
.header__navigation-item--right-action {
2019-03-29 15:23:32 +01:00
display: none;
}
}