2018-03-26 23:32:43 +02:00
|
|
|
.header {
|
2018-06-25 08:07:45 +02:00
|
|
|
width: 100%;
|
2018-10-17 19:14:24 +02:00
|
|
|
height: var(--header-height);
|
|
|
|
|
|
|
|
align-items: center;
|
|
|
|
background-color: $lbry-white;
|
2017-04-27 05:54:53 +02:00
|
|
|
display: flex;
|
2018-03-26 23:32:43 +02:00
|
|
|
justify-content: space-between;
|
2018-10-17 19:14:24 +02:00
|
|
|
position: fixed;
|
|
|
|
z-index: 1;
|
2018-07-25 02:50:04 +02:00
|
|
|
|
2019-02-13 17:27:20 +01:00
|
|
|
html[data-mode='dark'] & {
|
2018-12-19 06:44:53 +01:00
|
|
|
background-color: rgba($lbry-black, 0.9);
|
|
|
|
color: $lbry-white;
|
2018-07-25 02:50:04 +02:00
|
|
|
}
|
2018-06-25 08:07:45 +02:00
|
|
|
}
|
|
|
|
|
2018-12-19 06:44:53 +01:00
|
|
|
.header__navigation {
|
2018-06-25 08:07:45 +02:00
|
|
|
display: flex;
|
2018-10-17 19:14:24 +02:00
|
|
|
|
2018-12-19 06:44:53 +01:00
|
|
|
&:first-of-type {
|
|
|
|
// Main navigation collapses into a menu button
|
|
|
|
// at smaller screen widths
|
|
|
|
@media (min-width: 601px) {
|
2019-03-29 16:23:45 +01:00
|
|
|
width: 170px;
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: 600px) {
|
|
|
|
width: calc(var(--header-height) * 3 + 1px);
|
|
|
|
}
|
|
|
|
}
|
2018-06-25 08:07:45 +02:00
|
|
|
}
|
|
|
|
|
2019-04-01 01:04:01 +02:00
|
|
|
.header__navigation-app {
|
|
|
|
flex: 1;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
|
|
// LBRY logo in the top left corner
|
|
|
|
.lbry-icon {
|
|
|
|
height: 1rem;
|
|
|
|
width: 1rem;
|
|
|
|
padding-left: 3.5rem;
|
|
|
|
padding-top: 1.5rem;
|
|
|
|
margin-right: 3.6rem;
|
|
|
|
overflow: visible;
|
|
|
|
}
|
|
|
|
|
|
|
|
.header__navigation-arrows {
|
|
|
|
flex: 1;
|
|
|
|
display: flex;
|
|
|
|
justify-content: flex-end;
|
|
|
|
border-left: 1px solid $lbry-gray-1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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;
|
2018-06-25 08:07:45 +02:00
|
|
|
|
2018-12-19 06:44:53 +01:00
|
|
|
&:not(:disabled):hover {
|
|
|
|
background-color: $lbry-gray-1;
|
|
|
|
|
2019-02-13 17:27:20 +01:00
|
|
|
html[data-mode='dark'] & {
|
2018-12-19 06:44:53 +01:00
|
|
|
background-color: $lbry-gray-5;
|
2018-06-25 08:07:45 +02:00
|
|
|
}
|
|
|
|
}
|
2018-12-19 06:44:53 +01:00
|
|
|
|
|
|
|
&:disabled {
|
|
|
|
opacity: 0.3;
|
|
|
|
}
|
2019-03-28 17:53:13 +01:00
|
|
|
|
|
|
|
.button__content {
|
|
|
|
line-height: var(--header-height);
|
|
|
|
overflow: hidden;
|
|
|
|
text-align: center;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-04-03 06:17:00 +02:00
|
|
|
.header__navigation-item--active {
|
|
|
|
background-image: linear-gradient(
|
|
|
|
to bottom,
|
|
|
|
transparent 0%,
|
|
|
|
mix(transparent, $lbry-teal-3, 70%) 90%
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2019-03-29 15:23:32 +01:00
|
|
|
.header__navigation-item--back,
|
|
|
|
.header__navigation-item--forward,
|
|
|
|
.header__navigation-item--home,
|
|
|
|
.header__navigation-item--menu {
|
|
|
|
width: var(--header-height);
|
2019-04-01 01:04:01 +02:00
|
|
|
|
2019-03-29 15:23:32 +01:00
|
|
|
svg {
|
|
|
|
&:only-child {
|
|
|
|
// Header icons are a little different because they are larger
|
|
|
|
top: 0.25rem;
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
|
|
|
|
2019-03-29 15:23:32 +01:00
|
|
|
html[data-mode='dark'] & {
|
2018-12-19 06:44:53 +01:00
|
|
|
stroke: $lbry-white;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-03-29 15:23:32 +01:00
|
|
|
.header__navigation-item--lbry {
|
|
|
|
flex: 1;
|
|
|
|
font-weight: 800;
|
|
|
|
font-size: 1.2rem;
|
2019-03-29 16:23:45 +01:00
|
|
|
margin-left: -1.25rem; // Needed because the lbry icon overflows it's parent so the centering is off
|
2018-12-19 06:44:53 +01:00
|
|
|
|
2019-03-29 16:23:45 +01:00
|
|
|
svg {
|
|
|
|
overflow: visible;
|
|
|
|
color: $lbry-white;
|
|
|
|
opacity: 1;
|
2019-04-01 01:04:01 +02:00
|
|
|
top: -0.8rem;
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
|
|
|
}
|
2019-01-14 19:40:06 +01:00
|
|
|
|
2019-02-20 06:20:29 +01:00
|
|
|
// Publish button
|
2019-01-14 19:40:06 +01:00
|
|
|
.header__navigation-item--right-action {
|
2018-12-19 06:44:53 +01:00
|
|
|
position: relative;
|
|
|
|
|
2019-02-13 17:27:20 +01:00
|
|
|
.button__content {
|
2018-12-19 06:44:53 +01:00
|
|
|
display: flex;
|
2019-01-14 19:40:06 +01:00
|
|
|
padding: 0 var(--spacing-vertical-large);
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
|
|
|
|
2019-02-13 17:27:20 +01:00
|
|
|
.button__label {
|
2019-01-11 17:34:36 +01:00
|
|
|
line-height: 1.4;
|
2018-12-19 06:44:53 +01:00
|
|
|
padding-left: 0.5rem;
|
|
|
|
}
|
|
|
|
|
2019-01-14 19:40:06 +01:00
|
|
|
svg {
|
2019-02-20 06:20:29 +01:00
|
|
|
top: 0.1em;
|
2019-01-14 19:40:06 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
&:not(:last-child) {
|
|
|
|
border-right: 1px solid $lbry-gray-1;
|
|
|
|
}
|
|
|
|
|
2019-02-13 17:27:20 +01:00
|
|
|
html[data-mode='dark'] & {
|
2018-12-19 06:44:53 +01:00
|
|
|
svg {
|
|
|
|
stroke: $lbry-white;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.header__navigation-item--wallet {
|
|
|
|
border-right: 1px solid $lbry-gray-1;
|
2019-04-01 01:04:01 +02:00
|
|
|
width: 10rem;
|
2018-12-19 06:44:53 +01:00
|
|
|
|
2019-02-13 17:27:20 +01:00
|
|
|
html[data-mode='dark'] & {
|
2018-12-19 06:44:53 +01:00
|
|
|
border-color: $lbry-gray-5;
|
|
|
|
}
|
2017-04-27 05:54:53 +02:00
|
|
|
}
|
2019-03-29 15:23:32 +01:00
|
|
|
|
|
|
|
.header__navigation-item--menu {
|
|
|
|
@media (min-width: 601px) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Hide links that will live in the menu bar
|
|
|
|
@media (max-width: 601px) {
|
|
|
|
.header__navigation-item--back,
|
|
|
|
.header__navigation-item--forward,
|
|
|
|
.header__navigation-item--home,
|
|
|
|
.header__navigation-item--right-action {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.header__navigation:first-child {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|