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
|
2019-04-18 18:51:15 +02:00
|
|
|
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;
|
2019-07-21 23:31:22 +02:00
|
|
|
font-size: var(--font-body);
|
2019-10-09 18:34:18 +02:00
|
|
|
-webkit-user-select: none;
|
|
|
|
-webkit-app-region: drag;
|
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;
|
2018-07-25 02:50:04 +02:00
|
|
|
}
|
2019-06-28 09:33:07 +02:00
|
|
|
|
|
|
|
& > * {
|
|
|
|
user-select: none;
|
|
|
|
}
|
2018-06-25 08:07:45 +02:00
|
|
|
}
|
|
|
|
|
2019-08-27 16:43:42 +02:00
|
|
|
.header--minimal {
|
|
|
|
box-shadow: none;
|
|
|
|
background-color: transparent;
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
|
|
|
|
2019-10-09 18:34:18 +02:00
|
|
|
.header--mac {
|
|
|
|
padding-top: var(--mac-titlebar-height);
|
|
|
|
}
|
|
|
|
|
2019-06-11 20:10:58 +02:00
|
|
|
.header__contents {
|
|
|
|
max-width: var(--page-max-width);
|
2019-07-21 23:31:22 +02:00
|
|
|
height: calc(var(--header-height) - 1px);
|
2019-06-11 20:10:58 +02:00
|
|
|
display: flex;
|
|
|
|
margin: auto;
|
2019-07-23 10:05:51 +02:00
|
|
|
padding: 0 var(--spacing-large);
|
2019-06-11 20:10:58 +02:00
|
|
|
}
|
|
|
|
|
2018-12-19 06:44:53 +01:00
|
|
|
.header__navigation {
|
2019-08-21 22:54:44 +02:00
|
|
|
flex: 1;
|
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 {
|
2019-07-23 10:05:51 +02:00
|
|
|
width: var(--side-nav-width);
|
|
|
|
|
2019-06-17 22:32:38 +02:00
|
|
|
@media (max-width: 600px) {
|
|
|
|
display: none;
|
|
|
|
}
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
2018-06-25 08:07:45 +02:00
|
|
|
}
|
|
|
|
|
2019-08-21 22:54:44 +02:00
|
|
|
.header__menu {
|
|
|
|
width: var(--side-nav-width);
|
|
|
|
margin-left: auto;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
2019-08-27 16:43:42 +02:00
|
|
|
|
2019-09-26 18:07:11 +02:00
|
|
|
> .button:only-child {
|
2019-08-27 16:43:42 +02:00
|
|
|
margin-left: auto;
|
|
|
|
}
|
2019-08-21 22:54:44 +02:00
|
|
|
}
|
|
|
|
|
2019-09-26 18:07:11 +02:00
|
|
|
.header__menu--small {
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
|
2019-04-18 18:51:15 +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
|
|
|
}
|
|
|
|
|
2018-12-19 06:44:53 +01: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
|
|
|
}
|
2018-12-19 06:44:53 +01: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
|
|
|
}
|
|
|
|
}
|
2018-12-19 06:44:53 +01:00
|
|
|
|
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-09-05 01:40:01 +02:00
|
|
|
.header__banner-background {
|
|
|
|
display: flex;
|
|
|
|
background-color: $lbry-teal-4;
|
|
|
|
[data-mode='dark'] & {
|
|
|
|
background-color: $lbry-teal-5;
|
|
|
|
color: $lbry-white;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.header__banner-contents {
|
|
|
|
display: flex;
|
|
|
|
max-width: var(--page-max-width);
|
|
|
|
width: 100%;
|
|
|
|
margin: auto;
|
|
|
|
padding: 0 var(--spacing-large);
|
|
|
|
justify-content: space-between;
|
|
|
|
background-color: $lbry-teal-4;
|
|
|
|
color: $lbry-white;
|
|
|
|
|
|
|
|
svg {
|
|
|
|
stroke: $lbry-white;
|
|
|
|
}
|
|
|
|
|
|
|
|
[data-mode='dark'] & {
|
|
|
|
background-color: $lbry-teal-5;
|
|
|
|
color: $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;
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
|
|
|
|
2019-03-29 15:23:32 +01:00
|
|
|
.header__navigation-item--lbry {
|
|
|
|
font-weight: 800;
|
2019-06-11 21:02:13 +02:00
|
|
|
margin-right: var(--spacing-medium);
|
2018-12-19 06:44:53 +01:00
|
|
|
|
2019-04-18 18:51:15 +02:00
|
|
|
.lbry-icon {
|
|
|
|
height: 2rem;
|
|
|
|
width: 2rem;
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
|
|
|
}
|
2019-01-14 19:40:06 +01:00
|
|
|
|
|
|
|
.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);
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
|
|
|
|
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;
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
2017-04-27 05:54:53 +02:00
|
|
|
}
|
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;
|
|
|
|
}
|
|
|
|
}
|