www.franconian.net/assets/style.scss

390 lines
5.7 KiB
SCSS
Raw Normal View History

@import 'animations';
2020-11-24 21:44:16 +01:00
@import 'breakpoints';
2021-12-21 00:37:37 +01:00
@import 'variables';
2020-11-24 21:44:16 +01:00
@import 'fonts';
2020-11-24 19:31:03 +01:00
@import 'mixins';
2020-11-23 02:06:40 +01:00
2021-12-26 01:08:28 +01:00
:root {
--aberration-offset: 0.1em;
}
2021-12-21 00:37:37 +01:00
html {
font-family: 'Space Mono', sans-serif;
2020-11-15 00:32:58 +01:00
box-sizing: border-box;
margin: 0;
padding: 0;
}
2021-12-21 00:37:37 +01:00
*, *::before, *::after {
box-sizing: inherit;
}
2020-11-15 00:32:58 +01:00
body {
2021-12-21 00:37:37 +01:00
background: $color-background;
background-image:
url('layout/bg_pixels.gif'),
url('layout/grid.png'),
linear-gradient(-45deg, $color-gradient-community-start, $color-gradient-community-end),
url('layout/background_mobile_01.jpg');
background-blend-mode:
normal,
normal,
multiply,
normal;
background-attachment:
scroll,
fixed,
scroll,
fixed;
background-size:
2021-12-23 22:59:19 +01:00
auto,
2021-12-21 00:37:37 +01:00
cover,
100% 100%,
cover;
2021-12-23 22:59:19 +01:00
background-repeat:
repeat-y,
no-repeat,
no-repeat,
no-repeat;
background-position:
2021-12-23 23:08:42 +01:00
50% calc(50% + 1px * 0.5 * var(--scrollTop, 0)),
2021-12-23 22:59:19 +01:00
50% 50%,
50% 50%,
50% 50%;
2021-12-21 00:37:37 +01:00
color: $color-text;
2020-11-24 17:58:00 +01:00
display: flex;
flex-direction: column;
min-height: 100vh;
2021-12-21 00:37:37 +01:00
align-items: center;
margin: 0;
2020-11-23 02:56:53 +01:00
2021-12-21 00:37:37 +01:00
&::after {
content: '';
display: block;
position: fixed;
top: 0;
left: 0;
height: 100%;
width: 100%;
pointer-events: none;
background-image:
url('layout/vcr_overlay.png'),
radial-gradient(transparent, transparent, rgba(0, 0, 0, 0.5));
}
2021-12-23 22:59:19 +01:00
&::before {
content: '';
display: block;
position: fixed;
opacity: 0.3;
top: 0;
left: 0;
height: 100%;
width: 100%;
pointer-events: none;
background-image: url('layout/fg_pixels.gif');
background-repeat: repeat-y;
background-position: 50% calc(50% + -1.4px * var(--scrollTop, 0));
2021-12-23 22:59:19 +01:00
}
2021-12-21 00:37:37 +01:00
@media (min-width: $small) {
background-image:
url('layout/bg_pixels.gif'),
url('layout/grid.png'),
2021-12-25 02:26:44 +01:00
linear-gradient(-45deg, $color-gradient-community-start, $color-gradient-community-end),
2021-12-21 00:37:37 +01:00
url('layout/background_desktop_01.jpg');
}
}
2021-12-21 00:37:37 +01:00
h1, h2, h3, h4, h5, h6, p, ul {
margin-bottom: 1em;
margin-top: 1em;
}
2020-11-23 02:06:40 +01:00
h1, h2, h3, h4, h5, h6 {
2020-11-24 19:31:03 +01:00
@include heading;
2020-11-23 02:56:53 +01:00
}
2021-12-21 00:37:37 +01:00
h1 {
font-size: 3em;
text-align: center;
2020-11-23 02:56:53 +01:00
}
2021-12-21 00:37:37 +01:00
a {
text-decoration: underline;
color: inherit;
transition: filter 0.2s ease 0s;
2020-12-18 19:54:33 +01:00
&:hover, &:focus {
2021-12-21 00:37:37 +01:00
@include aberration(0.05em, 0.001em)
2020-12-17 20:33:07 +01:00
}
}
2021-12-21 00:37:37 +01:00
.block-link {
display: block;
}
.read-more-link {
font-size: 1.2em;
font-weight: bold;
text-transform: lowercase;
}
header {
2020-12-18 20:38:35 +01:00
width: 100%;
2021-12-21 00:37:37 +01:00
padding: $gap-vertical $gap-horizontal;
2020-12-18 20:38:35 +01:00
max-width: $large;
2021-12-21 00:37:37 +01:00
}
2020-12-18 20:38:35 +01:00
2021-12-21 00:37:37 +01:00
main {
width: 100%;
padding: $gap-vertical $gap-horizontal;
max-width: $large;
2020-12-18 20:38:35 +01:00
flex-grow: 1;
}
footer {
font-size: 0.9em;
width: 100%;
max-width: $large;
2021-12-21 00:37:37 +01:00
padding: $gap-vertical $gap-horizontal;
2020-12-18 20:38:35 +01:00
display: flex;
align-items: center;
flex-direction: column;
@media screen and (min-width: $small) {
flex-direction: row;
& > :first-child {
margin-left: auto;
}
}
}
2020-12-17 20:33:07 +01:00
2020-11-23 18:56:53 +01:00
figure {
margin: 1rem 0;
2020-11-24 01:09:31 +01:00
2020-12-01 23:07:04 +01:00
img, video {
2020-11-23 19:20:05 +01:00
max-width: 100%;
2020-11-23 18:56:53 +01:00
display: block;
margin: 0 auto;
&.invert {
filter: invert(100%);
}
2021-01-06 21:32:01 +01:00
&.cclogo {
2021-12-21 00:37:37 +01:00
width: 200px;
height: 48px;
2021-01-06 21:32:01 +01:00
}
&.fill {
2021-12-21 00:37:37 +01:00
background: $color-fill;
padding: 0.5em;
}
2020-11-23 18:56:53 +01:00
}
figcaption {
display: none;
}
}
2020-12-18 00:04:37 +01:00
ul, ol {
2020-11-26 19:01:47 +01:00
padding-left: 1.5em;
2020-12-18 00:04:37 +01:00
li {
padding: 0.2em 0;
}
2020-11-26 19:01:47 +01:00
}
2020-12-01 17:55:09 +01:00
iframe {
border: none;
width: 100%;
height: 100vh;
2020-12-01 17:55:09 +01:00
display: block;
margin: 1rem 0;
&.aspect-178 {
height: 56.25vw;
max-height: $large * 0.5625;
}
2020-12-01 17:55:09 +01:00
}
2020-12-26 21:18:45 +01:00
table {
border-collapse: collapse;
margin: 1rem 0;
thead th {
@include heading;
font-weight: bold;
2020-12-27 14:50:59 +01:00
white-space: nowrap;
}
thead tr, {
2020-12-26 21:18:45 +01:00
}
2020-12-27 14:50:59 +01:00
tr:not(:last-child) {
2021-12-21 00:37:37 +01:00
border-bottom: 1px solid currentColor;
2020-12-26 21:18:45 +01:00
}
td, th {
padding: 0.2em 0.5em;
text-align: left;
}
}
2020-11-23 02:56:53 +01:00
.nav {
display: flex;
flex-flow: column wrap;
justify-content: flex-end;
2020-11-23 02:56:53 +01:00
2020-11-24 13:09:45 +01:00
hr {
margin: 0.5em 40%;
2020-11-23 02:56:53 +01:00
}
.nav-logo {
2020-11-24 19:31:03 +01:00
@include heading;
2020-11-24 21:44:16 +01:00
text-decoration: none;
2021-12-21 00:37:37 +01:00
color: currentColor;
2020-11-23 02:56:53 +01:00
margin: 0 auto;
2021-12-26 01:08:28 +01:00
animation: animate-aberration 2s linear infinite !important;
2020-11-23 02:56:53 +01:00
img {
2020-11-24 19:31:03 +01:00
width: 48px;
margin-right: 1em;
2020-11-24 18:13:42 +01:00
vertical-align: middle;
2020-11-23 02:56:53 +01:00
}
2020-11-24 21:44:16 +01:00
2021-12-26 01:08:28 +01:00
.logotype {
font-size: 1.3em;
vertical-align: middle;
display: inline-block;
width: 3.5em;
line-height: 1;
text-align: center;
:nth-child(1) {
letter-spacing: 0.2em;
}
:nth-child(2) {
letter-spacing: 0.14em;
}
:nth-child(3) {
letter-spacing: 0.39em;
}
}
2020-11-24 21:44:16 +01:00
@media screen and (min-width: $small) {
margin-left: 0;
}
2020-11-23 02:56:53 +01:00
}
.nav-link {
align-self: center;
2020-12-18 19:54:33 +01:00
margin: 0 0.5em;
padding: 0.5em 0;
2021-12-21 00:37:37 +01:00
font-weight: bold;
font-size: 1.2em;
text-decoration: none;
text-transform: lowercase;
2020-11-23 02:56:53 +01:00
&.nav-link-active {
2021-12-21 00:37:37 +01:00
@include aberration(0.05em, 0.001em)
2020-11-23 02:56:53 +01:00
}
}
2020-11-24 21:44:16 +01:00
@media screen and (min-width: $small) {
flex-direction: row;
hr {
margin: 0 0.5em;
align-self: center;
}
}
2020-11-23 02:06:40 +01:00
}
2020-11-28 00:57:00 +01:00
2021-12-21 00:37:37 +01:00
.box {
margin: 0;
padding: 0;
border: 1px solid $color-box-frame;
background: $color-box-background;
display: flex;
flex-direction: column;
.box-header {
font-size: 1.2em;
margin: 0;
padding: 0 $gap-horizontal;
text-align: center;
background: $color-box-frame;
color: $color-box-header;
a {
text-decoration: none;
}
}
.box-content {
padding: $gap-vertical $gap-horizontal;
flex-grow: 1;
2021-12-23 23:43:55 +01:00
flex-shrink: 1;
text-overflow: ellipsis;
overflow: hidden;
2021-12-21 00:37:37 +01:00
}
.box-footer {
padding: ($gap-vertical / 2) $gap-horizontal;
}
}
.box-grid {
margin: 0;
padding: 0;
list-style: none;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
grid-gap: $gap-vertical $gap-horizontal;
.box {
max-width: 100%;
min-width: 0;
}
}
2020-11-28 00:57:00 +01:00
.date {
font-style: italic;
}
2020-12-26 21:18:45 +01:00
.overflow-x-auto {
overflow-x: auto;
}
2021-12-23 23:43:55 +01:00
.infobeamer {
h1 {
margin: $gap-vertical 0;
}
main {
max-width: 1700px;
}
.box-grid {
grid-template-columns: repeat(3, 1fr);
grid-auto-rows: minmax(10px, 1fr);
max-height: 75vh;
}
}
.progress {
@include aberration(0.1em);
border: 1px solid $color-box-frame;
height: 1em;
.fill {
background: $color-box-frame;
height: 100%;
}
}