lbry-desktop/src/renderer/scss/component/_header.scss

157 lines
2.6 KiB
SCSS
Raw Normal View History

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;
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;
html[data-theme='dark'] & {
background-color: rgba($lbry-black, 0.9);
color: $lbry-white;
}
2018-06-25 08:07:45 +02:00
}
.header__navigation {
2018-06-25 08:07:45 +02:00
display: flex;
2018-10-17 19:14:24 +02:00
&:first-of-type {
html[data-theme='dark'] & {
border-color: $lbry-gray-5;
}
// Main navigation collapses into a menu button
// at smaller screen widths
@media (min-width: 601px) {
width: 250px;
}
@media (max-width: 600px) {
width: calc(var(--header-height) * 3 + 1px);
}
}
&:last-of-type {
@media (min-width: 601px) {
width: 10rem;
}
@media (max-width: 600px) {
width: var(--header-height);
}
2018-10-17 19:14:24 +02:00
}
2018-06-25 08:07:45 +02:00
}
.header__navigation-item {
width: var(--header-height);
height: var(--header-height);
background-position: center;
background-repeat: no-repeat;
background-size: 50%;
2018-06-25 08:07:45 +02:00
&:not(:disabled):hover {
background-color: $lbry-gray-1;
html[data-theme='dark'] & {
background-color: $lbry-gray-5;
2018-06-25 08:07:45 +02:00
}
}
&:disabled {
opacity: 0.3;
}
}
.header__navigation-item--back {
html[data-theme='dark'] & {
svg {
stroke: $lbry-white;
}
}
}
.header__navigation-item--forward {
html[data-theme='dark'] & {
svg {
stroke: $lbry-white;
}
}
}
.header__navigation-item--home {
html[data-theme='dark'] & {
svg {
stroke: $lbry-white;
}
}
}
.header__navigation-item--menu {
html[data-theme='dark'] & {
svg {
stroke: $lbry-white;
}
}
// This menu button does not need to be seen
// at larger screen widths
@media (min-width: 601px) {
display: none;
}
}
.header__navigation-item--publish,
.header__navigation-item--wallet {
// Publish and Wallet links are collapsed
// into a menu at smaller screen widths
@media (max-width: 600px) {
display: none;
}
}
.header__navigation-item--publish {
2018-03-26 23:32:43 +02:00
display: flex;
justify-content: center;
position: relative;
width: 100%;
.btn__content {
display: flex;
}
.btn__label {
line-height: 1.8;
padding-left: 0.5rem;
}
html[data-theme='dark'] & {
svg {
stroke: $lbry-white;
}
}
}
.header__navigation-item--wallet {
border-right: 1px solid $lbry-gray-1;
width: calc(100% - (var(--header-height) * 3));
html[data-theme='dark'] & {
border-color: $lbry-gray-5;
}
.btn__content {
line-height: var(--header-height);
overflow: hidden;
text-align: center;
text-overflow: ellipsis;
width: 100%;
}
}