2020-02-15 20:03:18 +01:00
|
|
|
header {
|
2019-08-24 13:32:41 +02:00
|
|
|
width: 100%;
|
2020-02-16 13:36:36 +01:00
|
|
|
z-index: 100;
|
2020-02-13 18:30:33 +01:00
|
|
|
background-color: $header-background-color;
|
2019-08-11 19:36:19 +02:00
|
|
|
|
2019-08-24 13:32:41 +02:00
|
|
|
.dark-theme & {
|
2020-02-13 18:30:33 +01:00
|
|
|
background-color: $header-background-color-dark;
|
2019-08-11 19:36:19 +02:00
|
|
|
}
|
2020-03-03 14:57:30 +01:00
|
|
|
|
|
|
|
.header-title {
|
2020-03-14 07:42:12 +01:00
|
|
|
font-size: 1.5rem;
|
2020-03-03 14:57:30 +01:00
|
|
|
font-weight: bold;
|
|
|
|
}
|
2020-03-03 17:41:14 +01:00
|
|
|
|
2020-03-14 07:42:12 +01:00
|
|
|
.menu .menu-item {
|
|
|
|
position: relative;
|
|
|
|
}
|
2020-03-03 17:41:14 +01:00
|
|
|
|
2020-03-14 07:42:12 +01:00
|
|
|
.language-select {
|
|
|
|
position: absolute;
|
|
|
|
opacity: 0;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2020-03-03 17:41:14 +01:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
2020-03-09 15:19:14 +01:00
|
|
|
|
|
|
|
.theme-switch i {
|
2020-03-15 09:31:16 +01:00
|
|
|
-webkit-transform: rotate(225deg);
|
|
|
|
-moz-transform: rotate(225deg);
|
|
|
|
-ms-transform: rotate(225deg);
|
|
|
|
-o-transform: rotate(225deg);
|
2020-03-09 15:19:14 +01:00
|
|
|
transform: rotate(225deg);
|
|
|
|
}
|
2020-02-15 20:03:18 +01:00
|
|
|
}
|
|
|
|
|
2020-02-16 09:42:14 +01:00
|
|
|
#header-desktop {
|
2020-02-15 20:03:18 +01:00
|
|
|
display: block;
|
2020-02-16 13:36:36 +01:00
|
|
|
position: $header-position-desktop;
|
|
|
|
height: $header-height-desktop;
|
|
|
|
line-height: $header-height-desktop;
|
2019-08-11 19:36:19 +02:00
|
|
|
|
2020-02-13 18:30:33 +01:00
|
|
|
.header-wrapper {
|
2019-08-24 13:32:41 +02:00
|
|
|
width: auto;
|
|
|
|
text-align: center;
|
2020-03-14 07:42:12 +01:00
|
|
|
padding: 0 3rem;
|
2019-08-24 13:32:41 +02:00
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
2019-08-11 19:36:19 +02:00
|
|
|
|
2020-03-14 07:42:12 +01:00
|
|
|
.menu {
|
|
|
|
.menu-item {
|
|
|
|
margin: 0 .5rem;
|
2019-08-11 19:36:19 +02:00
|
|
|
|
2020-03-14 07:42:12 +01:00
|
|
|
&.theme-switch {
|
|
|
|
margin: 0 .3rem;
|
|
|
|
}
|
2019-08-24 13:32:41 +02:00
|
|
|
}
|
|
|
|
|
2020-03-14 07:42:12 +01:00
|
|
|
a.active {
|
2019-08-24 13:32:41 +02:00
|
|
|
font-weight: 900;
|
2020-02-13 18:30:33 +01:00
|
|
|
color: $header-hover-color;
|
2019-08-24 13:32:41 +02:00
|
|
|
|
|
|
|
.dark-theme & {
|
2020-02-13 18:30:33 +01:00
|
|
|
color: $header-hover-color-dark;
|
2019-08-24 13:32:41 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-08-11 19:36:19 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-02-16 09:42:14 +01:00
|
|
|
#header-mobile {
|
2019-08-24 13:32:41 +02:00
|
|
|
display: none;
|
2020-02-16 13:36:36 +01:00
|
|
|
position: $header-position-mobile;
|
|
|
|
height: $header-height-mobile;
|
|
|
|
line-height: $header-height-mobile;
|
2019-08-24 13:32:41 +02:00
|
|
|
|
2020-02-13 18:30:33 +01:00
|
|
|
.header-wrapper {
|
2019-08-24 13:32:41 +02:00
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
2020-02-16 13:36:36 +01:00
|
|
|
transition: all 0.3s ease 0s;
|
2019-08-24 13:32:41 +02:00
|
|
|
|
2020-02-13 18:30:33 +01:00
|
|
|
.header-container {
|
2019-08-24 13:32:41 +02:00
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
width: 100%;
|
2020-02-13 18:30:33 +01:00
|
|
|
font-size: 1.125rem;
|
|
|
|
padding-right: 1rem;
|
|
|
|
padding-left: 1rem;
|
2019-08-24 13:32:41 +02:00
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
.menu-toggle {
|
|
|
|
cursor: pointer;
|
2020-02-14 18:42:31 +01:00
|
|
|
line-height: 4rem;
|
2019-08-24 13:32:41 +02:00
|
|
|
|
|
|
|
span {
|
|
|
|
display: block;
|
2020-02-14 18:42:31 +01:00
|
|
|
background: $global-font-color;
|
|
|
|
width: 1.5rem;
|
2019-08-24 13:32:41 +02:00
|
|
|
height: 2px;
|
|
|
|
-webkit-border-radius: 3px;
|
|
|
|
-moz-border-radius: 3px;
|
|
|
|
border-radius: 3px;
|
2020-02-15 20:03:18 +01:00
|
|
|
-webkit-transition: .1s margin .1s, .1s transform;
|
|
|
|
-moz-transition: .1s margin .1s, .1s transform;
|
2020-03-15 09:31:16 +01:00
|
|
|
-o-transition: .1s margin .1s, .1s transform;
|
2020-02-15 20:03:18 +01:00
|
|
|
transition: .1s margin .1s, .1s transform;
|
2019-08-24 13:32:41 +02:00
|
|
|
|
|
|
|
.dark-theme & {
|
|
|
|
background: $global-font-color-dark;
|
|
|
|
}
|
|
|
|
}
|
2019-08-11 19:36:19 +02:00
|
|
|
|
2019-08-24 13:32:41 +02:00
|
|
|
span:nth-child(1) {
|
2020-02-14 18:42:31 +01:00
|
|
|
margin-bottom: .5rem;
|
2019-08-24 13:32:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
span:nth-child(3) {
|
2020-02-14 18:42:31 +01:00
|
|
|
margin-top: .5rem;
|
2019-08-24 13:32:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
span {
|
2020-02-15 20:03:18 +01:00
|
|
|
-webkit-transition: .1s margin, .1s transform .1s;
|
|
|
|
-moz-transition: .1s margin, .1s transform .1s;
|
2020-03-15 09:31:16 +01:00
|
|
|
-o-transition: .1s margin, .1s transform .1s;
|
2020-02-15 20:03:18 +01:00
|
|
|
transition: .1s margin, .1s transform .1s;
|
2019-08-24 13:32:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
span:nth-child(1) {
|
2020-03-15 09:31:16 +01:00
|
|
|
-webkit-transform: rotate(45deg) translate(.4rem, .5rem);
|
2020-02-14 18:42:31 +01:00
|
|
|
-moz-transform: rotate(45deg) translate(.4rem, .5rem);
|
|
|
|
-ms-transform: rotate(45deg) translate(.4rem, .5rem);
|
2020-03-15 09:31:16 +01:00
|
|
|
-o-transform: rotate(45deg) translate(.4rem, .5rem);
|
2020-02-14 18:42:31 +01:00
|
|
|
transform: rotate(45deg) translate(.4rem, .5rem);
|
2019-08-24 13:32:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
span:nth-child(2) {
|
|
|
|
opacity: 0
|
|
|
|
}
|
|
|
|
|
|
|
|
span:nth-child(3) {
|
2020-02-14 18:42:31 +01:00
|
|
|
-moz-transform: rotate(-45deg) translate(.4rem, -.5rem);
|
|
|
|
-ms-transform: rotate(-45deg) translate(.4rem, -.5rem);
|
|
|
|
-webkit-transform: rotate(-45deg) translate(.4rem, -.5rem);
|
2020-03-15 09:31:16 +01:00
|
|
|
-o-transform: rotate(-45deg) translate(.4rem, -.5rem);
|
2020-02-14 18:42:31 +01:00
|
|
|
transform: rotate(-45deg) translate(.4rem, -.5rem);
|
2019-08-24 13:32:41 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-02-13 18:30:33 +01:00
|
|
|
.menu {
|
2019-08-24 13:32:41 +02:00
|
|
|
text-align: center;
|
|
|
|
background: $global-background-color;
|
|
|
|
border-top: 2px solid $global-font-color;
|
|
|
|
display: none;
|
|
|
|
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1), 0px 4px 8px rgba(0, 0, 0, 0.1);
|
|
|
|
|
|
|
|
a {
|
|
|
|
display: block;
|
2020-02-13 18:30:33 +01:00
|
|
|
line-height: 2.5rem;
|
2019-08-24 13:32:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dark-theme & {
|
|
|
|
background: $global-background-color-dark;
|
|
|
|
border-top: 2px solid $global-font-color-dark;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-08-11 19:36:19 +02:00
|
|
|
}
|