y2k/frontend/public/style.css
2021-11-19 09:10:59 -05:00

108 lines
1.9 KiB
CSS

@font-face {
font-family: "Perfect DOS VGA 437";
font-style: normal;
font-weight: normal;
src: url("fonts/perfect-dos.woff2") format("woff2"),
url("fonts/perfect-dos.woff") format("woff");
}
body {
font-family: "Perfect DOS VGA 437", monospace;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
user-select: none;
/* specific retro wallpaper tile is set randomly by JS onload */
background-color: #000;
background-repeat: repeat;
background-attachment: fixed;
background-position: center;
}
a {
color: inherit;
text-decoration: underline;
}
div#cmd, div#display {
display: block;
margin: auto;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
div#cmd {
width: 600px;
height: 300px;
padding: 12px;
background-color: #000;
z-index: -100;
}
div#cmd span {
color: #ccc;
white-space: pre;
}
div#display {
max-width: 800px;
max-height: 600px;
z-index: 100;
/* fix fuzziness: https://stackoverflow.com/a/13492784 */
image-rendering: optimizeSpeed;
image-rendering: -moz-crisp-edges;
image-rendering: -o-crisp-edges;
image-rendering: -webkit-optimize-contrast;
image-rendering: crisp-edges;
image-rendering: pixelated;
-ms-interpolation-mode: nearest-neighbor;
}
div#display div {
background: none !important;
}
div#display div canvas {
cursor: default !important;
}
span.blink {
animation: blink 1s step-end infinite;
}
@keyframes blink {
50% {
opacity: 0;
}
}
/* http://tholman.com/github-corners/ */
a#github-corner svg {
fill: #fff;
color: #333;
position: absolute;
top: 0;
border: 0;
right: 0;
}
a#github-corner svg path.octo-arm {
transform-origin: 130px 106px;
}
a#github-corner:hover svg path.octo-arm {
animation: octocat-wave 560ms ease-in-out;
}
@keyframes octocat-wave {
0%, 100% {
transform: rotate(0);
}
20%, 60% {
transform: rotate(-25deg);
}
40%, 80% {
transform: rotate(10deg);
}
}