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

133 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-06-17 22:32:38 +02:00
box-shadow: var(--card-box-shadow) $lbry-gray-1;
padding-left: var(--spacing-large);
padding-right: var(--spacing-large);
2019-06-28 09:33:07 +02:00
2019-06-29 00:21:21 +02:00
[data-mode='dark'] & {
2019-07-01 20:42:32 +02:00
background-color: var(--dm-color-05);
color: var(--dm-color-01);
2019-05-01 07:16:12 +02:00
border-bottom: none;
2019-06-17 22:32:38 +02:00
box-shadow: var(--card-box-shadow) $lbry-black;
}
2019-06-28 09:33:07 +02:00
& > * {
user-select: 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);
display: flex;
justify-content: space-between;
margin: auto;
}
.header__navigation {
2018-06-25 08:07:45 +02:00
display: flex;
2019-06-17 22:32:38 +02:00
justify-content: space-between;
2018-10-17 19:14:24 +02:00
2019-06-11 20:10:58 +02:00
&:last-of-type {
2019-06-17 22:32:38 +02:00
width: calc(var(--side-nav-width) + var(--spacing-medium));
@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
&: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
2019-06-29 00:21:21 +02:00
[data-mode='dark'] & {
2019-06-11 20:10:58 +02:00
background-color: $lbry-teal-3;
}
2018-06-25 08:07:45 +02:00
}
}
2019-06-11 20:10:58 +02:00
// TODO: dark
2019-06-29 00:21:21 +02:00
[data-mode='dark'] & {
2019-05-01 07:16:12 +02:00
&: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 {
2019-07-01 20:42:32 +02:00
stroke: var(--dm-color-01);
2019-05-01 07:16:12 +02:00
}
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-17 22:32:38 +02:00
align-self: flex-end;
margin-left: auto;
padding: 0 var(--spacing-small);
}
2019-05-01 07:16:12 +02:00
.header__navigation-item--upgrade {
2019-06-17 22:32:38 +02:00
color: $lbry-teal-5;
2019-05-01 07:16:12 +02:00
svg {
2019-06-17 22:32:38 +02:00
stroke: $lbry-teal-5;
}
}
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;
}
}