www.franconian.net/static/bauchbinde/assets/style.css

92 lines
1.5 KiB
CSS
Raw Permalink Normal View History

2020-12-23 19:37:15 +01:00
@font-face {
2021-12-24 23:21:32 +01:00
font-family: Changa;
font-weight: 700;
src: url('Changa-SemiBold.ttf');
2020-12-23 19:37:15 +01:00
}
2021-12-24 23:21:32 +01:00
@font-face {
font-family: SpaceMono;
src: url('SpaceMono-Regular.ttf');
2020-12-24 17:53:14 +01:00
}
2021-12-26 00:23:30 +01:00
@keyframes glitch {
0% {
background-position: center 0;
}
0% {
background-position: center 100%;
}
}
2021-12-24 23:21:32 +01:00
:root {
2020-12-24 17:53:14 +01:00
--text-color: #fff;
2021-12-24 23:21:32 +01:00
--header-text-color: #252826;
--frame-color: #fff;
--bottom: 7vw;
--left: 25vw;
--width: 50vw;
--top: auto;
2020-12-24 17:53:14 +01:00
}
2021-12-26 00:23:30 +01:00
html {
font-size: calc(var(--width) * 0.034);
}
2020-12-23 19:37:15 +01:00
body {
margin: 0;
2021-12-26 00:23:30 +01:00
background-color: #000;
2021-12-24 23:21:32 +01:00
font-family: SpaceMono, monospace;
2020-12-24 17:53:14 +01:00
color: var(--text-color);
2020-12-23 19:37:15 +01:00
}
2021-12-26 00:23:30 +01:00
.container {
position: fixed;
bottom: var(--bottom);
left: var(--left);
width: var(--width);
top: var(--top);
}
.info {
border: 0.1vw solid var(--frame-color);
opacity: 0;
background: rgba(0, 0, 0, 0.6);
}
2020-12-23 19:37:15 +01:00
.headline {
2021-12-24 23:21:32 +01:00
text-transform: lowercase;
font-family: Changa, sans-serif;
font-weight: 700;
background: var(--frame-color);
color: var(--header-text-color);
text-align: center;
line-height: 1.3;
2021-12-26 00:23:30 +01:00
padding: 0 0.5875rem;
2021-12-24 23:21:32 +01:00
font-size: 1.25em;
2020-12-23 19:37:15 +01:00
}
.speaker {
2021-12-26 00:23:30 +01:00
padding: 0.29rem 0.59rem 0.406rem;
2020-12-23 19:37:15 +01:00
}
2021-12-26 00:23:30 +01:00
.glitch-container {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 101%;
}
.glitch {
width: 100%;
padding-top: 14.25722%;
2020-12-23 19:37:15 +01:00
opacity: 0;
2021-12-26 00:23:30 +01:00
background-image: url('sprites.png');
background-size: 100% auto;
2021-12-27 12:24:05 +01:00
animation: 5s glitch infinite steps(37);
2020-12-23 19:37:15 +01:00
}
.visible {
opacity: 1;
}