mirror of
https://github.com/lichess-org/lila.git
synced 2026-05-26 13:51:00 +00:00
148 lines
2.7 KiB
SCSS
148 lines
2.7 KiB
SCSS
@import 'topnav-hidden';
|
|
@import 'topnav-visible';
|
|
@import 'title';
|
|
@import 'buttons';
|
|
|
|
#top {
|
|
@include prevent-select;
|
|
|
|
height: $site-header-height;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
position: relative;
|
|
z-index: $z-site-header-106;
|
|
max-width: 1800px;
|
|
margin: 0 auto;
|
|
|
|
@include mq-sticky-header {
|
|
@include transition(transform border-color, $transition-duration, ease-in-out);
|
|
|
|
max-width: unset;
|
|
position: fixed;
|
|
top: 0;
|
|
width: 100%;
|
|
padding: 0 var(---site-header-sticky-padding);
|
|
border-bottom: 1px solid transparent;
|
|
|
|
&.scrolled {
|
|
background-image: linear-gradient(to bottom, $c-body-gradient, $m-body-gradient_bg-page--mix-50 60px);
|
|
border-color: black;
|
|
|
|
@include if-light {
|
|
border-color: hsl(0, 0%, 70%);
|
|
}
|
|
}
|
|
|
|
@include if-transp {
|
|
@include back-blur(6px);
|
|
|
|
border: none;
|
|
background: hsla(0, 0, 20%, 0.15);
|
|
}
|
|
|
|
.dropdown {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
pointer-events: auto;
|
|
transition:
|
|
opacity $transition-duration,
|
|
visibility 0s linear 0s;
|
|
}
|
|
|
|
&.hide {
|
|
transform: translateY(-100%);
|
|
|
|
#topnav,
|
|
.dropdown {
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
pointer-events: none;
|
|
transition:
|
|
opacity $transition-duration,
|
|
visibility 0s linear $transition-duration;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
body.zen {
|
|
@include topnav-unsticky;
|
|
|
|
header::before {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
#topnav .community-patron {
|
|
@extend %flex-center;
|
|
|
|
&::after {
|
|
@extend %data-icon;
|
|
@include margin-direction(0, 0, 0.08ch, 0.3ch);
|
|
|
|
content: $licon-Wings;
|
|
font-size: 1.3em;
|
|
color: $c-brag;
|
|
transform: scaleX(-1);
|
|
|
|
@include if-rtl {
|
|
transform: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
.site-title-nav {
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
|
|
&__donate {
|
|
@extend %nowrap-ellipsis;
|
|
|
|
padding: 16px 0;
|
|
max-width: 30vw;
|
|
|
|
span {
|
|
color: $c-brag;
|
|
text-transform: uppercase;
|
|
text-shadow: 0.5px 0.5px 0 $m-dimmer--fade-20;
|
|
border-radius: 20px;
|
|
line-height: 28px;
|
|
padding: 8px 1rem 8px 1.2rem;
|
|
|
|
&::before {
|
|
@extend %data-icon;
|
|
@include inline-end(4px);
|
|
|
|
position: relative;
|
|
top: -2px;
|
|
content: $licon-Wings;
|
|
font-size: 1em;
|
|
color: $c-brag;
|
|
}
|
|
}
|
|
|
|
&:hover span {
|
|
color: $c-brag;
|
|
background-color: $m-brag--fade-85;
|
|
}
|
|
|
|
&:focus-visible {
|
|
outline-offset: -2px;
|
|
}
|
|
|
|
@media (width <= $x-small) {
|
|
display: none;
|
|
}
|
|
|
|
@media (width <= $small) {
|
|
body.clinput & {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
html.transp body[data-board3d] #top::before {
|
|
display: none;
|
|
}
|