www.iger.events/assets/style.scss

272 lines
4.3 KiB
SCSS
Raw Permalink Normal View History

2022-06-28 12:59:32 +02:00
@import 'breakpoints';
@import 'colors';
@import 'fonts';
2022-08-14 21:48:45 +02:00
@import 'schedule';
2022-07-10 22:56:41 +02:00
@import 'vars';
2022-06-28 12:59:32 +02:00
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
2022-12-01 19:40:54 +01:00
background: linear-gradient($color-background-0, $color-background-100);
2022-06-28 12:59:32 +02:00
color: $color-text;
display: flex;
flex-direction: column;
2022-12-01 20:51:07 +01:00
font-family: "Noto Sans", sans-serif;
2022-06-28 12:59:32 +02:00
margin: 0 auto;
2022-12-03 18:49:33 +01:00
min-height: unquote("max(100vh, #{$stars-height})");
2022-06-28 12:59:32 +02:00
max-width: $large;
main {
flex-grow: 1;
}
2022-12-01 19:40:54 +01:00
@media screen and (min-width: $small) {
&::before {
background: url(/stars.svg) repeat-x top;
clip-path: polygon(0 0, 100% 0, 100% 100%, calc(50% + #{$large * 0.5}) 100%, calc(50% + #{$large * 0.5}) $header-spacing, calc(50% - #{$large * 0.5}) $header-spacing, calc(50% - #{$large * 0.5}) 100%, 0 100%);
2022-12-01 19:40:54 +01:00
content: '';
display: block;
height: $stars-height;
left: 0;
position: absolute;
top: 0;
width: 100%;
z-index: -1;
}
}
2022-06-28 12:59:32 +02:00
}
header, footer {
padding: 0 1rem;
}
header {
2022-07-02 01:26:23 +02:00
align-items: center;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
margin-top: 1rem;
2022-06-28 12:59:32 +02:00
2022-07-02 01:26:23 +02:00
pre {
2022-12-01 19:40:54 +01:00
font-family: "OCR A", "Noto Sans Mono", monospace;
2022-07-02 01:26:23 +02:00
font-size: 0.8rem;
2022-07-09 01:04:44 +02:00
font-weight: bold;
2022-07-02 01:26:23 +02:00
line-height: 1;
user-select: none;
2022-07-08 23:47:19 +02:00
span {
color: $color-highlight;
}
2022-07-02 01:26:23 +02:00
}
2022-06-28 12:59:32 +02:00
nav {
font-size: 1.2rem;
}
2022-07-08 23:47:19 +02:00
.header-brand {
display: flex;
2023-03-17 20:03:57 +01:00
a {
// linkify the brand logo without changing its style
display: inherit;
color: inherit;
text-decoration: inherit;
}
2022-07-08 23:47:19 +02:00
img + pre {
margin-left: 0.5rem;
}
}
.header-logo {
height: 3.2rem;
width: auto;
}
2022-07-08 17:28:36 +02:00
.nav-burger {
margin-right: 0.5rem;
}
@media screen and (min-width: $small) {
2022-07-11 00:20:46 +02:00
margin-top: $header-spacing;
2022-07-10 02:08:29 +02:00
padding-top: 0.5rem;
&::before {
2022-07-11 00:20:46 +02:00
background: url(/#{$header-variant}.svg) 50% 0% / auto $header-height no-repeat;
2022-07-10 02:08:29 +02:00
content: '';
display: block;
2022-07-10 22:56:41 +02:00
height: $header-height;
2022-07-10 02:08:29 +02:00
left: 0;
position: absolute;
top: 0;
2022-07-10 17:49:56 +02:00
width: 100%;
2022-07-11 00:20:46 +02:00
z-index: -1;
2022-07-10 02:08:29 +02:00
}
}
2022-06-28 12:59:32 +02:00
}
main {
padding: 1rem;
2022-08-18 19:31:25 +02:00
2022-12-01 20:51:07 +01:00
.upcoming {
font-family: "OCR A", "Noto Sans Mono", monospace;
font-size: 3em;
text-align: center;
2022-12-01 20:52:45 +01:00
.uber {
2022-12-02 16:35:53 +01:00
background: url(/uber.svg) no-repeat 50% 69% / 92.5% 92.5%;
2022-12-01 20:51:07 +01:00
color: transparent;
}
2023-03-17 19:51:07 +01:00
.detail {
display: block;
font-size: 50%;
margin-top: 0.4em;
}
2022-08-18 19:31:25 +02:00
}
2022-06-28 12:59:32 +02:00
}
footer {
margin-bottom: 1rem;
2022-06-28 12:59:32 +02:00
nav {
align-items: end;
@media screen and (min-width: $small) {
align-items: normal;
justify-content: end;
}
}
@media screen and (min-width: $small) {
2022-12-01 19:40:54 +01:00
margin-bottom: 0;
&::before {
background: url(/footer.svg) bottom / auto $footer-height no-repeat;
content: '';
display: block;
height: $footer-height;
left: 0;
2023-03-02 23:30:34 +01:00
margin-top: calc(1.5rem + 1.5em + 1rem);
2022-12-01 19:40:54 +01:00
position: absolute;
width: 100%;
z-index: -1;
}
& > nav {
2023-03-02 23:30:34 +01:00
margin-bottom: unquote("calc(#{$footer-spacing} + 1rem)");
2022-12-01 19:40:54 +01:00
margin-top: 1.5rem;
}
}
2022-06-28 12:59:32 +02:00
}
nav {
display: flex;
flex-direction: column;
2022-07-02 01:26:23 +02:00
&.nav-toggleable {
flex-basis: 100%;
max-height: 0;
overflow-y: hidden;
transition: max-height 0.5s;
.nav-toggle:checked ~ & {
max-height: calc(var(--num-elements) * 2em);
}
}
2022-07-08 04:16:32 +02:00
&.pagination {
margin-top: 2.5em;
:first-child {
margin: 0;
}
}
a, span {
2022-07-02 01:26:23 +02:00
line-height: 1.5em;
margin: 0.5em 0 0 0;
2022-06-28 12:59:32 +02:00
}
@media screen and (min-width: $small) {
flex-direction: row;
2022-07-02 01:26:23 +02:00
&.nav-toggleable {
flex-basis: auto;
max-height: max-content;
}
2022-07-08 04:16:32 +02:00
a, span {
2022-07-02 01:26:23 +02:00
margin: 0 0 0 1em;
2022-06-28 12:59:32 +02:00
}
}
}
a {
2022-07-08 04:16:32 +02:00
color: $color-link;
2022-06-28 12:59:32 +02:00
text-decoration: none;
2022-07-08 04:16:32 +02:00
&:hover, &.is-active {
2022-06-28 12:59:32 +02:00
text-decoration: underline;
}
}
2022-07-02 01:43:04 +02:00
h1, h2, h3, h4, h5, h6 {
margin-bottom: 0.5em;
2022-06-28 12:59:32 +02:00
}
2022-07-02 01:43:04 +02:00
p {
margin-bottom: 1em;
2022-06-27 17:27:51 +02:00
}
2022-07-02 01:26:23 +02:00
2022-07-08 04:16:32 +02:00
ol, ul {
margin-bottom: 2em;
padding-left: 2em;
}
hr {
color: $color-text;
margin: 3em 0;
}
2022-07-02 01:26:23 +02:00
.nav-burger {
cursor: pointer;
display: flex;
flex-direction: column;
height: 1rem;
justify-content: space-between;
width: 1.2rem;
div {
2022-07-04 15:19:48 +02:00
background: $color-burger;
height: 2px;
transition: background 0.5s, transform 0.5s;
2022-07-02 01:26:23 +02:00
}
.nav-toggle:checked ~ & div {
2022-07-04 15:19:48 +02:00
background: transparent;
2022-07-02 01:26:23 +02:00
&:first-child {
2022-07-04 15:19:48 +02:00
background: $color-burger;
2022-07-02 01:26:23 +02:00
transform: translateY(0.5rem) translateY(-1px) rotate(45deg) scaleX(141%);
}
&:last-child {
2022-07-04 15:19:48 +02:00
background: $color-burger;
2022-07-02 01:26:23 +02:00
transform: translateY(-0.5rem) translateY(1px) rotate(-45deg) scaleX(141%);
}
}
@media screen and (min-width: $small) {
display: none;
}
}
.nav-toggle {
display: none;
}