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

184 lines
3.3 KiB
SCSS
Raw Normal View History

2018-03-26 14:32:43 -07:00
.header {
2019-06-11 14:10:58 -04:00
z-index: 2; // Main content uses z-index: 1, this ensures it always scrolls under the header
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);
2019-10-09 12:34:18 -04:00
-webkit-user-select: none;
-webkit-app-region: drag;
2019-06-28 03:33:07 -04:00
& > * {
user-select: none;
}
2018-06-25 02:07:45 -04:00
}
2019-08-27 10:43:42 -04:00
.header--minimal {
box-shadow: none;
background-color: transparent;
border-bottom: none;
}
2019-10-09 12:34:18 -04:00
.header--mac {
padding-top: var(--mac-titlebar-height);
}
2019-11-22 16:13:00 -05:00
.header--noauth-web {
.header__navigation-item--icon {
margin: 0 10px;
}
}
2019-06-11 14:10:58 -04:00
.header__contents {
max-width: var(--page-max-width);
2019-07-21 17:31:22 -04:00
height: calc(var(--header-height) - 1px);
2019-06-11 14:10:58 -04:00
display: flex;
2019-12-18 00:27:08 -05:00
align-items: center;
2019-06-11 14:10:58 -04:00
margin: auto;
2019-07-23 04:05:51 -04:00
padding: 0 var(--spacing-large);
2019-12-18 00:27:08 -05:00
@media (max-width: $breakpoint-small) {
padding: var(--spacing-small);
}
2019-06-11 14:10:58 -04:00
}
.header__navigation {
2019-08-21 16:54:44 -04:00
flex: 1;
2018-06-25 02:07:45 -04:00
display: flex;
2019-11-22 16:13:00 -05:00
align-items: center;
2020-01-02 11:30:27 -05:00
height: var(--height-input);
2018-06-25 02:07:45 -04:00
}
2019-08-21 16:54:44 -04:00
.header__menu {
margin-left: auto;
display: flex;
justify-content: space-between;
align-items: center;
2019-08-27 10:43:42 -04:00
2019-09-26 12:07:11 -04:00
> .button:only-child {
2019-08-27 10:43:42 -04:00
margin-left: auto;
}
2019-12-18 00:27:08 -05:00
@media (max-width: $breakpoint-small) {
display: none;
}
}
.header__menu--mobile {
display: none;
@media (max-width: $breakpoint-small) {
display: block;
margin-left: var(--spacing-medium);
svg {
stroke: var(--color-text);
}
}
2019-08-21 16:54:44 -04:00
}
2019-11-22 16:13:00 -05:00
.header__menu--with-balance {
button:first-child {
margin-left: var(--spacing-large);
margin-right: var(--spacing-medium);
}
2019-09-26 12:07:11 -04:00
}
.header__navigation-arrows {
display: flex;
2019-06-11 15:02:13 -04:00
margin-right: var(--spacing-small);
2019-03-31 19:04:01 -04:00
}
.header__navigation-item {
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);
color: var(--color-text);
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
}
2019-11-22 16:13:00 -05:00
&:hover {
color: var(--color-link-active);
2019-03-28 12:53:13 -04:00
2019-05-01 01:16:12 -04:00
svg {
2019-11-22 16:13:00 -05:00
stroke: var(--color-link-active);
2019-05-01 01:16:12 -04:00
}
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,
.header__navigation-item--icon {
2020-01-02 11:30:27 -05:00
width: var(--height-button);
background-color: var(--color-header-button);
border-radius: 1.5rem;
margin-left: var(--spacing-small);
&:hover {
background-color: var(--color-primary-alt);
}
2020-01-02 15:36:03 -05:00
&:focus {
@include focus;
}
2020-01-30 15:55:45 -05:00
span {
display: flex;
justify-content: center;
align-items: center;
}
}
2019-03-29 10:23:32 -04:00
.header__navigation-item--lbry {
2019-11-07 14:39:22 -05:00
font-weight: var(--font-weight-bold);
2019-06-11 15:02:13 -04:00
margin-right: var(--spacing-medium);
.lbry-icon {
height: 2rem;
width: 2rem;
}
}
2020-01-02 11:30:27 -05:00
2020-02-28 00:18:37 -05:00
.header__navigation-item--button-mobile {
@media (max-width: $breakpoint-small) {
.button__label {
display: none;
}
}
}
2020-01-02 11:30:27 -05:00
.header__navigation-item--balance {
margin: 0 var(--spacing-medium);
}
2020-02-12 19:48:28 -06:00
.header__navigation-dropdown {
@extend .menu__list--header;
padding: 0;
position: absolute;
list-style-type: none;
background-color: var(--color-header-background);
2020-02-12 19:48:28 -06:00
}
2020-02-12 19:48:28 -06:00
.header__navigation-button {
margin: 0;
padding: var(--spacing-miniscule) var(--spacing-medium);
display: flex;
align-items: center;
2020-02-12 19:48:28 -06:00
&:hover {
cursor: pointer;
background-color: var(--color-menu-background--active);
}
}
2020-02-12 19:48:28 -06:00
.header__navigation-button-help {
@extend .help;
margin-top: 0;
margin-left: var(--spacing-small);
}