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

185 lines
3.2 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-05-01 01:16:12 -04:00
background-color: $lbry-white;
border-bottom: 1px solid $lbry-gray-1;
2019-06-17 16:32:38 -04:00
box-shadow: var(--card-box-shadow) $lbry-gray-1;
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
2019-06-28 18:21:21 -04:00
[data-mode='dark'] & {
2019-07-01 13:42:32 -05:00
background-color: var(--dm-color-05);
color: var(--dm-color-01);
2019-05-01 01:16:12 -04:00
border-bottom: none;
2019-06-17 16:32:38 -04:00
box-shadow: var(--card-box-shadow) $lbry-black;
}
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-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;
margin: auto;
2019-07-23 04:05:51 -04:00
padding: 0 var(--spacing-large);
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;
2018-10-17 12:14:24 -05:00
2019-06-11 14:10:58 -04:00
&:last-of-type {
2019-07-23 04:05:51 -04:00
width: var(--side-nav-width);
2019-06-17 16:32:38 -04:00
@media (max-width: 600px) {
display: none;
}
}
2018-06-25 02:07:45 -04:00
}
2019-08-21 16:54:44 -04:00
.header__menu {
width: var(--side-nav-width);
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-08-21 16:54:44 -04:00
}
2019-09-26 12:07:11 -04:00
.header__menu--small {
width: auto;
}
.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 {
height: var(--header-height);
2019-03-29 10:23:32 -04:00
display: flex;
justify-content: center;
align-items: center;
2019-05-01 01:16:12 -04:00
border-radius: 0;
2018-06-25 02:07:45 -04:00
2019-05-01 01:16:12 -04:00
&:hover {
2019-06-11 14:10:58 -04:00
color: $lbry-teal-5;
svg {
stroke: $lbry-teal-5;
}
2019-05-01 01:16:12 -04:00
}
2019-05-01 01:16:12 -04:00
&.header__navigation-item--active {
&::after {
height: 0.2em;
bottom: 0;
width: 100%;
2019-06-11 14:10:58 -04:00
background-color: $lbry-teal-5;
2019-05-01 01:16:12 -04:00
content: '';
position: absolute;
2019-06-11 14:10:58 -04:00
2019-06-28 18:21:21 -04:00
[data-mode='dark'] & {
2019-06-11 14:10:58 -04:00
background-color: $lbry-teal-3;
}
2018-06-25 02:07:45 -04:00
}
}
2019-06-28 18:21:21 -04:00
[data-mode='dark'] & {
2019-05-01 01:16:12 -04:00
&:hover {
2019-06-11 14:10:58 -04:00
color: $lbry-teal-3;
svg {
stroke: $lbry-teal-3;
}
2019-05-01 01:16:12 -04:00
}
2019-03-28 12:53:13 -04:00
2019-05-01 01:16:12 -04:00
svg {
2019-07-01 13:42:32 -05:00
stroke: var(--dm-color-01);
2019-05-01 01:16:12 -04:00
}
2019-03-28 12:53:13 -04:00
}
}
2019-09-04 19:40:01 -04: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 12:53:13 -04:00
2019-03-29 10:23:32 -04:00
.header__navigation-item--back,
2019-06-11 14:10:58 -04:00
.header__navigation-item--forward {
width: 3rem;
}
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;
}
}
.header__navigation-item--right-action {
2019-06-17 16:32:38 -04:00
align-self: flex-end;
margin-left: auto;
padding: 0 var(--spacing-small);
}
2019-05-01 01:16:12 -04:00
.header__navigation-item--upgrade {
2019-06-17 16:32:38 -04:00
color: $lbry-teal-5;
2019-05-01 01:16:12 -04:00
svg {
2019-06-17 16:32:38 -04:00
stroke: $lbry-teal-5;
}
}
2019-03-29 10:23:32 -04:00
2019-05-01 01:16:12 -04:00
@media (max-width: 600px) {
2019-03-29 10:23:32 -04:00
.header__navigation-item--back,
.header__navigation-item--forward,
2019-05-01 01:16:12 -04:00
.header__navigation-item--right-action {
2019-03-29 10:23:32 -04:00
display: none;
}
}