70 lines
1.4 KiB
CSS
70 lines
1.4 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 {
|
|
margin: 0;
|
|
padding: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
font-family: "Perfect DOS VGA 437", monospace;
|
|
|
|
/* specific retro wallpaper tile is set randomly by JS onload */
|
|
background-repeat: repeat;
|
|
background-attachment: fixed;
|
|
background-position: center;
|
|
}
|
|
canvas, div#cmd {
|
|
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;
|
|
color: #ccc;
|
|
user-select: none;
|
|
z-index: -100;
|
|
}
|
|
canvas {
|
|
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;
|
|
}
|
|
a.github {
|
|
position: fixed;
|
|
right: 16px;
|
|
bottom: 16px;
|
|
width: 32px;
|
|
height: 32px;
|
|
text-decoration: none;
|
|
|
|
/* lazy CSS trick to make octocat visible on different tiles */
|
|
fill: #fff;
|
|
mix-blend-mode: exclusion;
|
|
}
|
|
span.blink {
|
|
animation: blink 1s step-end infinite;
|
|
}
|
|
@keyframes blink {
|
|
50% {
|
|
opacity: 0;
|
|
}
|
|
}
|