classic-ui/assets/styles/components/_header.scss
Danil Kovtonyuk 44f31f8b9f
init
2022-04-22 13:14:19 +10:00

137 lines
2.1 KiB
SCSS

.header {
padding-top: 20px;
padding-left: 0.75rem;
padding-right: 0.75rem;
@include tablet {
padding-left: 1.5rem;
padding-right: 1.5rem;
}
@media (min-width: 769px) and (max-width: 900px) {
> .container {
flex-direction: column;
.navbar-brand {
align-self: center;
}
}
}
@include desktop {
> .container {
.navbar-brand {
margin-left: 0;
.navbar-item {
padding-left: 0;
}
}
}
}
@media print {
padding-top: 0;
}
.navbar-brand {
align-items: center;
}
.logo {
height: 40px;
@media print {
path {
fill: #000;
}
}
}
.navbar-end {
@include tablet {
display: flex;
align-items: center;
justify-content: center;
}
}
.navbar-item {
&.has-tag {
display: flex;
align-items: center;
}
&--tag {
margin-left: 0.05rem;
margin-top: -0.55rem;
width: 4px;
height: 4px;
background-color: $primary;
border-radius: 100%;
box-shadow: 0 0 1px 1px $primary;
}
}
.navbar-link {
&:not(.is-arrowless) {
padding-right: 2rem;
&::after {
right: 0.714rem;
}
}
}
@include mobile {
.navbar-dropdown.is-boxed {
visibility: visible;
}
}
@include tablet {
.navbar-dropdown {
padding: 0;
overflow: hidden;
a.navbar-item.is-active:not(:focus):not(:hover) {
background-color: $dropdown-item-active-background-color;
}
}
}
@include tablet-only {
.buttons > .button:not(.network-button) {
span:first-child:not(:last-child) {
margin-right: 0;
}
span:not(.icon) {
display: none;
}
}
}
.buttons {
.b-tooltip {
margin-right: 0.714rem;
.tooltip-content {
text-align: center;
top: 100%;
display: block !important;
pointer-events: none;
opacity: 0;
transition: opacity $speed-slow $easing;
}
&:hover {
.tooltip-content {
opacity: 1;
pointer-events: all;
}
}
}
}
}