@font-face { font-family: "Exo 2"; src: url(./Exo2-VariableFont_wght.ttf) format("truetype"); } :root { --base1: rgb(40, 43, 40); --base2: rgb(60, 63, 60); --base3: rgb(137, 141, 137); --base4: rgb(215, 220, 215); --base5: rgb(235, 240, 235); --accent1: rgb(177, 255, 28); --accent2: rgb(156, 214, 24); --signal: rgb(225, 177, 28); --gray: rgb(137, 141, 137); --text: var(--base1); --bg: var(--base5); --border: var(--base2); } @media (prefers-color-scheme: dark) { :root { --text: var(--base5); --bg: var(--base1); --border: var(--base3); }; } html * { font-family: "Exo 2", sans-serif; background-color: var(--bg); color: var(--text); } h1 { font-size: 24pt; font-weight: bolder; } #notenform { align-items: center; display: flex; flex-direction: column; } table { border-collapse: collapse; margin: 8px 0; width: fill; max-width: 1200px; } th, td { border-top: 1px dotted black; border-bottom: 1px dotted black; padding: 4px; } .noteninputcell { text-align: center; } input { outline: none; padding: 4px; border: 2px solid var(--border); } input:focus { border: 2px solid var(--accent1); } #noten { display: flex; flex-direction: column; } input[type=submit] { width: 82px; box-sizing: border-box; } .noteninput { width: 70px; } /* remove the spin buttons */ input::-webkit-inner-spin-button, input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; } input[type=number] { -moz-appearance: textfield; } select { -webkit-appearance: none; -moz-appearance: none; appearance: none; background-color: transparent; border: none; padding: 4px; width: 100%; font-family: inherit; font-size: inherit; cursor: inherit; line-height: inherit; z-index: 1; outline: none; } select::-ms-expand { display: none; } .select { display: grid; grid-template-areas: "select"; align-items: center; position: relative; min-width: 15ch; max-width: 30ch; border: 1px solid var(--border); border-radius: 2px; cursor: pointer; } .select select, .select::after { grid-area: select; } .select::after { content: ""; justify-self: end; width: 0.8em; height: 0.5em; margin-right: 4px; background-color: var(--accent1); -webkit-clip-path: polygon(100% 0%, 0 0%, 50% 100%); clip-path: polygon(100% 0%, 0 0%, 50% 100%); } select:focus + .focus { position: absolute; top: -1px; left: -1px; right: -1px; bottom: -1px; border: 2px solid var(--accent1); border-radius: inherit; }