2019-05-18 14:09:51 +02:00
|
|
|
body > header {
|
|
|
|
background: $gray;
|
2018-12-15 22:06:27 +01:00
|
|
|
|
|
|
|
#content {
|
|
|
|
display: flex;
|
2021-01-17 14:33:29 +01:00
|
|
|
align-content: center;
|
|
|
|
justify-content: space-between;
|
2018-12-15 22:06:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
nav#menu {
|
|
|
|
position: relative;
|
|
|
|
display: none;
|
2019-05-06 20:18:53 +02:00
|
|
|
appearance: none;
|
2018-12-15 22:06:27 +01:00
|
|
|
transform: skewX(-15deg);
|
|
|
|
left: -1em;
|
|
|
|
padding: 1em 1em 1em 2em;
|
2019-08-21 00:42:04 +02:00
|
|
|
background: $primary;
|
2018-12-15 22:06:27 +01:00
|
|
|
align-self: flex-start;
|
|
|
|
|
|
|
|
a {
|
|
|
|
transform: skewX(15deg);
|
2021-01-17 14:33:29 +01:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
width: 1.4em;
|
|
|
|
height: 1.4em;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
color: $gray;
|
|
|
|
font-size: 1.33em;
|
|
|
|
}
|
2018-12-15 22:06:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
nav {
|
|
|
|
display: flex;
|
2021-01-17 14:33:29 +01:00
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
|
2024-12-18 15:59:13 +01:00
|
|
|
&.right-nav {
|
|
|
|
overflow-x: hidden;
|
|
|
|
}
|
|
|
|
|
2021-01-17 14:33:29 +01:00
|
|
|
hr {
|
|
|
|
height: 100%;
|
|
|
|
width: 0.2em;
|
|
|
|
background: $primary;
|
|
|
|
border: none;
|
|
|
|
transform: skewX(-15deg);
|
2018-12-15 22:06:27 +01:00
|
|
|
}
|
|
|
|
a {
|
2021-01-17 14:33:29 +01:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
position: relative;
|
|
|
|
align-self: stretch;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0 2em;
|
|
|
|
font-size: 1em;
|
|
|
|
|
|
|
|
i { font-size: 1.2em; }
|
|
|
|
|
|
|
|
&.title {
|
|
|
|
margin: 0;
|
2018-12-15 22:06:27 +01:00
|
|
|
text-align: center;
|
|
|
|
padding: 0.5em 1em;
|
|
|
|
font-size: 1.75em;
|
|
|
|
|
|
|
|
img {
|
|
|
|
height: 1.75em;
|
|
|
|
width: 1.75em;
|
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
|
|
|
margin: 0;
|
|
|
|
padding-left: 0.5em;
|
|
|
|
}
|
2021-01-17 14:33:29 +01:00
|
|
|
}
|
2018-12-15 22:06:27 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-04-06 15:20:12 +02:00
|
|
|
.messages {
|
|
|
|
& > * {
|
2019-04-30 12:04:25 +02:00
|
|
|
padding: 1em 20%;
|
|
|
|
margin: 0;
|
|
|
|
max-width: initial;
|
|
|
|
font-weight: bold;
|
2019-04-06 15:20:12 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
p.error {
|
2019-04-30 12:04:25 +02:00
|
|
|
color: darken($red, 20%);
|
2019-04-06 15:20:12 +02:00
|
|
|
background: lighten($red, 40%);
|
|
|
|
margin: 0;
|
|
|
|
max-width: initial;
|
|
|
|
}
|
2019-04-30 12:04:25 +02:00
|
|
|
|
|
|
|
p.warning {
|
|
|
|
color: darken($yellow, 20%);
|
|
|
|
background: lighten($yellow, 40%);
|
|
|
|
}
|
|
|
|
|
|
|
|
p.success {
|
2019-08-21 00:42:04 +02:00
|
|
|
color: darken($success-color, 20%);
|
|
|
|
background: lighten($success-color, 40%);
|
2019-04-30 12:04:25 +02:00
|
|
|
}
|
2019-04-06 15:20:12 +02:00
|
|
|
}
|
|
|
|
|
2020-04-14 23:32:27 +02:00
|
|
|
/// Small screens
|
|
|
|
@media screen and (max-width: 600px) {
|
|
|
|
@keyframes menuOpening {
|
|
|
|
from {
|
|
|
|
transform: scaleX(0);
|
|
|
|
transform-origin: left;
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
to {
|
|
|
|
transform: scaleX(1);
|
|
|
|
transform-origin: left;
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2021-01-11 18:04:21 +01:00
|
|
|
}
|
2021-02-12 11:21:36 +01:00
|
|
|
@-webkit-keyframes menuOpening {
|
2021-01-11 17:48:39 +01:00
|
|
|
from {
|
|
|
|
-webkit-transform: scaleX(0);
|
|
|
|
transform-origin: left;
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
to {
|
|
|
|
-webkit-transform: scaleX(1);
|
|
|
|
transform-origin: left;
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2020-04-14 23:32:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
body > header {
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
nav#menu {
|
|
|
|
display: inline-flex;
|
|
|
|
z-index: 21;
|
|
|
|
}
|
|
|
|
|
|
|
|
#content {
|
|
|
|
display: none;
|
|
|
|
appearance: none;
|
|
|
|
text-align: center;
|
|
|
|
z-index: 20;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-02-12 10:18:45 +01:00
|
|
|
body > header:focus-within #content, .show + #content {
|
2020-04-14 23:32:27 +02:00
|
|
|
position: fixed;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
animation: 0.2s menuOpening;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
transform: skewX(-10deg);
|
|
|
|
top: 0;
|
|
|
|
left: -20%;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
z-index: -10;
|
|
|
|
|
|
|
|
background: $primary;
|
|
|
|
}
|
|
|
|
|
|
|
|
> nav {
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: flex-start;
|
|
|
|
|
|
|
|
a {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
margin: 0;
|
|
|
|
padding: 1rem 1.5rem;
|
|
|
|
color: $background;
|
|
|
|
font-size: 1.4em;
|
|
|
|
font-weight: 300;
|
|
|
|
|
|
|
|
&.title { font-size: 1.8em; }
|
|
|
|
|
|
|
|
> *:first-child { width: 3rem; }
|
|
|
|
> img:first-child { height: 3rem; }
|
|
|
|
> *:last-child { margin-left: 1rem; }
|
|
|
|
> nav hr {
|
|
|
|
display: block;
|
|
|
|
margin: 0;
|
|
|
|
width: 100%;
|
|
|
|
border: solid $background 0.1rem;
|
|
|
|
}
|
|
|
|
.mobile-label { display: initial; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-16 22:28:48 +01:00
|
|
|
/* Only enable label animations on large screens */
|
2019-04-08 22:48:15 +02:00
|
|
|
@media screen and (min-width: 600px) {
|
2021-01-17 14:33:29 +01:00
|
|
|
header nav a {
|
|
|
|
i {
|
|
|
|
transition: all 0.2s ease;
|
|
|
|
margin: 0;
|
2018-12-15 22:06:27 +01:00
|
|
|
}
|
2021-01-17 14:33:29 +01:00
|
|
|
|
|
|
|
.mobile-label {
|
|
|
|
transition: all 0.2s ease;
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
left: 50%;
|
|
|
|
transform: translateZ(0);
|
|
|
|
opacity: 0;
|
|
|
|
font-size: 0.9em;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
img + .mobile-label { display: none; }
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
i { margin-bottom: 0.75em; }
|
|
|
|
.mobile-label {
|
|
|
|
opacity: 1;
|
2021-02-12 11:21:36 +01:00
|
|
|
transform: translate(-50%, 80%);
|
|
|
|
}
|
2021-01-17 14:33:29 +01:00
|
|
|
}
|
|
|
|
}
|
2018-12-15 22:06:27 +01:00
|
|
|
}
|
2019-09-01 17:56:47 +02:00
|
|
|
|
2019-09-01 18:53:15 +02:00
|
|
|
// Small screens
|
2019-09-01 17:56:47 +02:00
|
|
|
@media screen and (max-width: 600px) {
|
|
|
|
@keyframes menuOpening {
|
|
|
|
from {
|
|
|
|
transform: scaleX(0);
|
|
|
|
transform-origin: left;
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
to {
|
|
|
|
transform: scaleX(1);
|
|
|
|
transform-origin: left;
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
2021-01-11 01:40:17 +01:00
|
|
|
@-webkit-keyframes menuOpening {
|
2021-02-12 11:21:36 +01:00
|
|
|
from {
|
|
|
|
-webkit-transform: scaleX(0);
|
|
|
|
transform-origin: left;
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
to {
|
2021-01-10 18:32:21 +01:00
|
|
|
-webkit-transform: scaleX(1);
|
2021-01-11 17:48:39 +01:00
|
|
|
transform-origin: left;
|
2021-01-10 18:32:21 +01:00
|
|
|
opacity: 1;
|
2021-02-12 11:21:36 +01:00
|
|
|
}
|
2021-01-10 18:32:21 +01:00
|
|
|
}
|
2019-09-01 17:56:47 +02:00
|
|
|
|
|
|
|
body > header {
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
nav#menu {
|
|
|
|
display: inline-flex;
|
|
|
|
z-index: 21;
|
|
|
|
}
|
|
|
|
|
|
|
|
#content {
|
|
|
|
display: none;
|
|
|
|
appearance: none;
|
|
|
|
text-align: center;
|
|
|
|
z-index: 20;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-02-12 10:18:45 +01:00
|
|
|
body > header:focus-within #content, .show + #content {
|
2019-09-01 17:56:47 +02:00
|
|
|
position: fixed;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
animation: 0.2s menuOpening;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
transform: skewX(-10deg);
|
|
|
|
top: 0;
|
|
|
|
left: -20%;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
z-index: -10;
|
|
|
|
|
|
|
|
background: $primary;
|
|
|
|
}
|
|
|
|
|
|
|
|
> nav {
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: flex-start;
|
|
|
|
|
|
|
|
a {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
margin: 0;
|
|
|
|
padding: 1rem 1.5rem;
|
|
|
|
color: $background;
|
|
|
|
font-size: 1.4em;
|
|
|
|
font-weight: 300;
|
|
|
|
|
|
|
|
&.title { font-size: 1.8em; }
|
|
|
|
|
|
|
|
> *:first-child { width: 3rem; }
|
|
|
|
> img:first-child { height: 3rem; }
|
|
|
|
> *:last-child { margin-left: 1rem; }
|
|
|
|
> nav hr {
|
|
|
|
display: block;
|
|
|
|
margin: 0;
|
|
|
|
width: 100%;
|
|
|
|
border: solid $background 0.1rem;
|
|
|
|
}
|
|
|
|
.mobile-label { display: initial; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|