first commit
This commit is contained in:
commit
beb51dbb5c
5 changed files with 468 additions and 0 deletions
74
style.css
Normal file
74
style.css
Normal file
|
@ -0,0 +1,74 @@
|
|||
/* Instrument Sans variable italic latin */
|
||||
@font-face {
|
||||
font-family: 'Instrument Sans';
|
||||
font-style: italic;
|
||||
font-display: swap;
|
||||
font-weight: 400 700;
|
||||
font-stretch: 75 100;
|
||||
src: url(https://cdn.jsdelivr.net/fontsource/fonts/instrument-sans:vf@latest/latin-wdth-italic.woff2) format('woff2-variations');
|
||||
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
|
||||
}
|
||||
|
||||
/* Instrument Sans variable normal latin */
|
||||
@font-face {
|
||||
font-family: 'Instrument Sans';
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
font-weight: 400 700;
|
||||
font-stretch: 75 100;
|
||||
src: url(https://cdn.jsdelivr.net/fontsource/fonts/instrument-sans:vf@latest/latin-wdth-normal.woff2) format('woff2-variations');
|
||||
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
width: 100svw;
|
||||
height: 100svh;
|
||||
}
|
||||
body, input {
|
||||
font-family: 'Instrument Sans', sans-serif;
|
||||
}
|
||||
|
||||
a {
|
||||
color: white;
|
||||
}
|
||||
|
||||
#controls {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
padding: 1em;
|
||||
box-sizing: border-box;
|
||||
width: 100svw;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 1em;
|
||||
}
|
||||
#controls > div {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.25em;
|
||||
}
|
||||
footer {
|
||||
position: absolute;
|
||||
bottom: 1em;
|
||||
right: 1em;
|
||||
}
|
||||
|
||||
#controls > #energy {
|
||||
display: grid;
|
||||
grid-template:
|
||||
"label meter"
|
||||
". output"
|
||||
;
|
||||
}
|
||||
|
||||
output[for="energy-meter"] {
|
||||
font-family: monospace;
|
||||
grid-area: output;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
#num-points {
|
||||
width: 5em;
|
||||
text-align: center;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue