1
1
mirror of https://github.com/casey/just.git synced 2024-11-22 18:34:06 +03:00
just/www/index.css

66 lines
1.2 KiB
CSS
Raw Permalink Normal View History

:root {
--width-target: calc(100vw / 6);
--height-target: calc(100vh / 3);
--size: min(var(--width-target), var(--height-target));
--margin-vertical: calc((100vh - var(--size) * 2) / 2);
--margin-horizontal: calc((100vw - var(--size) * 5) / 2);
}
* {
margin: 0;
padding: 0;
}
html {
background-color: black;
color: white;
overflow: hidden;
text-align: center;
2022-05-05 23:55:50 +03:00
font-family: monospace;
font-size: var(--size);
line-height: var(--size);
}
a {
color: white;
text-decoration: none;
}
a:hover {
text-shadow: 0 0 5px #fff;
}
body {
display: grid;
grid-template-columns: repeat(4, 1fr);
2023-10-17 06:07:09 +03:00
margin: var(--margin-vertical) var(--margin-horizontal);
}
body > * {
width: var(--size);
}
body > div {
height: var(--size);
text-shadow: 0 0 5px #fff;
}
2022-12-16 00:35:18 +03:00
body > a:nth-child(n+5) {
align-items: center;
display: flex;
font-size: calc(var(--size) / 9);
height: calc(var(--size) / 2);
justify-content: center;
line-height: calc(var(--size) / 9);
}
/* just is an isogram */
#j:after { content: 'j'; }
2022-05-05 23:55:50 +03:00
#j:hover:after { content: ':'; }
#u:after { content: 'u'; }
2022-05-05 23:55:50 +03:00
#u:hover:after { content: '~'; }
#s:after { content: 's'; }
2022-05-05 23:55:50 +03:00
#s:hover:after { content: '$'; }
#t:after { content: 't'; }
2022-05-05 23:55:50 +03:00
#t:hover:after { content: '='; }