2022-01-26 21:14:36 -05:00
|
|
|
@import '../init/vars';
|
|
|
|
@import '../init/mixins';
|
|
|
|
|
2018-03-26 14:32:43 -07:00
|
|
|
.header {
|
2020-04-30 11:01:11 -04:00
|
|
|
z-index: 3; // Main content uses z-index: 1, other content uses z-index: 2, this ensures it always scrolls under the header
|
2019-04-18 12:51:15 -04:00
|
|
|
position: fixed;
|
2019-06-11 14:10:58 -04:00
|
|
|
top: 0;
|
2018-06-25 02:07:45 -04:00
|
|
|
width: 100%;
|
2019-11-22 16:13:00 -05:00
|
|
|
background-color: var(--color-header-background);
|
2020-01-22 09:26:39 -05:00
|
|
|
box-shadow: var(--card-box-shadow);
|
2019-07-21 17:31:22 -04:00
|
|
|
font-size: var(--font-body);
|
2022-01-26 21:14:36 -05:00
|
|
|
user-select: none;
|
2019-10-09 12:34:18 -04:00
|
|
|
-webkit-user-select: none;
|
|
|
|
-webkit-app-region: drag;
|
2019-06-28 03:33:07 -04:00
|
|
|
|
2021-07-14 22:08:30 -05:00
|
|
|
.skip-button {
|
|
|
|
opacity: 0;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
overflow: hidden;
|
2021-07-15 15:14:21 -05:00
|
|
|
margin-right: var(--spacing-l);
|
|
|
|
|
2021-07-14 22:08:30 -05:00
|
|
|
&:focus {
|
|
|
|
opacity: 1;
|
|
|
|
position: relative;
|
|
|
|
overflow: unset;
|
2022-01-26 21:14:36 -05:00
|
|
|
width: unset;
|
|
|
|
height: unset;
|
2021-07-14 22:08:30 -05:00
|
|
|
}
|
|
|
|
}
|
2018-06-25 02:07:45 -04:00
|
|
|
}
|
|
|
|
|
2019-08-27 10:43:42 -04:00
|
|
|
.header--minimal {
|
|
|
|
box-shadow: none;
|
2021-04-26 15:19:17 -04:00
|
|
|
background-color: var(--color-background);
|
2019-08-27 10:43:42 -04:00
|
|
|
border-bottom: none;
|
|
|
|
|
2022-01-26 21:14:36 -05:00
|
|
|
.header__navigation {
|
2022-01-29 18:25:40 -05:00
|
|
|
padding: var(--spacing-xs) 0;
|
2022-01-26 21:14:36 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.header__navigationItem--logo {
|
|
|
|
height: 3rem;
|
|
|
|
}
|
2019-10-09 12:34:18 -04:00
|
|
|
}
|
|
|
|
|
2019-06-11 14:10:58 -04:00
|
|
|
.header__contents {
|
|
|
|
display: flex;
|
2019-12-18 00:27:08 -05:00
|
|
|
align-items: center;
|
2022-01-26 21:14:36 -05:00
|
|
|
flex: 1;
|
|
|
|
height: var(--header-height);
|
|
|
|
padding: var(--spacing-s) var(--spacing-m);
|
2019-12-18 00:27:08 -05:00
|
|
|
|
|
|
|
@media (max-width: $breakpoint-small) {
|
2020-08-18 10:17:45 -04:00
|
|
|
padding: var(--spacing-xs);
|
2019-12-18 00:27:08 -05:00
|
|
|
}
|
2019-06-11 14:10:58 -04:00
|
|
|
}
|
|
|
|
|
2018-12-19 00:44:53 -05:00
|
|
|
.header__navigation {
|
2018-06-25 02:07:45 -04:00
|
|
|
display: flex;
|
2019-11-22 16:13:00 -05:00
|
|
|
align-items: center;
|
2022-01-26 21:14:36 -05:00
|
|
|
justify-content: space-between;
|
|
|
|
flex: 1;
|
|
|
|
height: var(--header-height);
|
2022-01-29 18:25:40 -05:00
|
|
|
padding: var(--spacing-s) 0;
|
2022-01-26 21:14:36 -05:00
|
|
|
flex-wrap: nowrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
.card__actions--between {
|
|
|
|
.header__menu--left {
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
max-width: 3rem;
|
|
|
|
}
|
|
|
|
}
|
2018-06-25 02:07:45 -04:00
|
|
|
}
|
|
|
|
|
2019-08-21 16:54:44 -04:00
|
|
|
.header__menu {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2019-12-18 00:27:08 -05:00
|
|
|
}
|
|
|
|
|
2022-01-26 21:14:36 -05:00
|
|
|
.header__menu--left {
|
|
|
|
@extend .header__menu;
|
|
|
|
justify-content: flex-start;
|
|
|
|
}
|
|
|
|
|
|
|
|
.header__menu--right {
|
|
|
|
@extend .header__menu;
|
|
|
|
justify-content: flex-end;
|
|
|
|
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
max-width: 4rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-10 16:47:39 -04:00
|
|
|
.header__buttons {
|
2019-04-18 12:51:15 -04:00
|
|
|
display: flex;
|
2019-03-31 19:04:01 -04:00
|
|
|
}
|
|
|
|
|
2021-07-30 12:07:32 -04:00
|
|
|
.header__navigation-logo {
|
|
|
|
height: var(--height-button);
|
2021-08-01 13:11:17 -05:00
|
|
|
max-width: -webkit-fit-content;
|
|
|
|
max-width: -moz-fit-content;
|
2021-07-30 12:07:32 -04:00
|
|
|
max-width: fit-content;
|
|
|
|
}
|
|
|
|
|
2022-01-26 21:14:36 -05:00
|
|
|
.header__navigationItem {
|
2019-11-22 16:13:00 -05:00
|
|
|
height: var(--height-button);
|
2019-03-29 10:23:32 -04:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2019-11-22 16:13:00 -05:00
|
|
|
border-radius: var(--border-radius);
|
2020-07-23 10:22:57 -04:00
|
|
|
position: relative;
|
2020-08-10 16:47:39 -04:00
|
|
|
font-weight: var(--font-weight-bold);
|
2018-06-25 02:07:45 -04:00
|
|
|
|
2019-11-22 16:13:00 -05:00
|
|
|
svg {
|
|
|
|
stroke: var(--color-text);
|
2018-06-25 02:07:45 -04:00
|
|
|
}
|
2022-01-26 21:14:36 -05:00
|
|
|
|
|
|
|
&[aria-expanded='true'] {
|
|
|
|
background-color: var(--color-header-button-active);
|
|
|
|
}
|
2019-03-28 12:53:13 -04:00
|
|
|
}
|
|
|
|
|
2019-03-29 10:23:32 -04:00
|
|
|
.header__navigation-item--back,
|
2019-11-22 16:13:00 -05:00
|
|
|
.header__navigation-item--forward,
|
2022-01-26 21:14:36 -05:00
|
|
|
.header__navigationItem--icon {
|
|
|
|
@extend .header__navigationItem;
|
2020-01-02 11:30:27 -05:00
|
|
|
width: var(--height-button);
|
|
|
|
background-color: var(--color-header-button);
|
|
|
|
border-radius: 1.5rem;
|
2020-08-10 16:47:39 -04:00
|
|
|
margin-right: var(--spacing-s);
|
2020-01-02 11:30:27 -05:00
|
|
|
|
|
|
|
&:hover {
|
2021-04-30 11:42:18 -04:00
|
|
|
background-color: var(--color-header-button-hover);
|
2020-01-02 11:30:27 -05:00
|
|
|
}
|
2020-01-02 15:36:03 -05:00
|
|
|
|
2020-05-11 10:21:00 -04:00
|
|
|
@media (min-width: $breakpoint-small) {
|
|
|
|
&:focus {
|
|
|
|
@include focus;
|
|
|
|
}
|
2020-01-02 15:36:03 -05:00
|
|
|
}
|
2020-01-30 15:55:45 -05:00
|
|
|
|
2022-01-26 21:14:36 -05:00
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
2020-01-30 15:55:45 -05:00
|
|
|
span {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
}
|
2018-12-19 00:44:53 -05:00
|
|
|
}
|
|
|
|
|
2022-01-26 21:14:36 -05:00
|
|
|
.header__navigationItem--profilePic {
|
2020-10-05 14:04:31 -04:00
|
|
|
.channel-thumbnail {
|
|
|
|
height: var(--height-button);
|
|
|
|
width: var(--height-button);
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
opacity: 0.7;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-26 21:14:36 -05:00
|
|
|
.header__navigationItem--balance {
|
|
|
|
@extend .header__navigationItem;
|
2021-03-04 01:03:58 -05:00
|
|
|
margin: 0 var(--spacing-s);
|
|
|
|
color: var(--color-text);
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: var(--color-text);
|
|
|
|
}
|
2020-08-26 16:28:33 -04:00
|
|
|
}
|
|
|
|
|
2022-01-26 21:14:36 -05:00
|
|
|
.header__navigationItem--logo {
|
|
|
|
@extend .header__navigationItem;
|
2021-04-26 15:19:17 -04:00
|
|
|
height: 4rem;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
margin-left: var(--spacing-m);
|
|
|
|
margin-right: var(--spacing-m);
|
2021-07-25 18:40:53 -04:00
|
|
|
color: var(--color-text);
|
2021-04-26 22:43:06 -04:00
|
|
|
// move to lbry theme?
|
|
|
|
.lbry-icon {
|
|
|
|
height: var(--height-button);
|
|
|
|
width: var(--height-button);
|
|
|
|
}
|
2021-04-26 15:19:17 -04:00
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
margin-right: var(--spacing-m);
|
|
|
|
height: 5rem;
|
|
|
|
|
|
|
|
.button__label {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-26 21:14:36 -05:00
|
|
|
.header__authButtons {
|
2020-04-13 15:16:07 -04:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
font-weight: var(--font-weight-bold);
|
|
|
|
|
|
|
|
& > *:not(:last-child) {
|
2020-06-01 13:03:19 -04:00
|
|
|
margin: 0 var(--spacing-m);
|
2020-04-13 15:16:07 -04:00
|
|
|
}
|
2022-01-26 21:14:36 -05:00
|
|
|
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
.button--link {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.button--primary {
|
|
|
|
padding: var(--spacing-xxs);
|
|
|
|
}
|
|
|
|
}
|
2020-04-13 15:16:07 -04:00
|
|
|
}
|
2020-08-10 16:47:39 -04:00
|
|
|
|
|
|
|
.header__center {
|
|
|
|
display: flex;
|
2022-01-26 21:14:36 -05:00
|
|
|
justify-content: center;
|
2020-08-10 16:47:39 -04:00
|
|
|
width: 100%;
|
2022-01-26 21:14:36 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.header__authTitle {
|
|
|
|
@extend .header__center;
|
|
|
|
justify-content: center;
|
2020-12-11 13:33:27 -05:00
|
|
|
|
|
|
|
@media (min-width: $breakpoint-small) {
|
2022-01-26 21:14:36 -05:00
|
|
|
font-size: var(--font-large);
|
2020-12-11 13:33:27 -05:00
|
|
|
}
|
2020-08-10 16:47:39 -04:00
|
|
|
}
|
2020-09-03 16:05:38 -04:00
|
|
|
|
2022-01-26 21:14:36 -05:00
|
|
|
.ReactModal__Overlay {
|
|
|
|
.button--close {
|
|
|
|
margin: 0;
|
|
|
|
margin-top: var(--spacing-xxs);
|
2020-09-03 16:05:38 -04:00
|
|
|
}
|
|
|
|
}
|