font-picker/style.css

101 lines
1.2 KiB
CSS
Raw Normal View History

2025-02-11 14:20:15 +00:00
:root {
--spacing: 1em;
--family: sans-serif;
--background: white;
--color: black;
2025-02-11 14:20:15 +00:00
color-scheme: light dark;
height: 100svh;
overflow: hidden;
2025-02-11 14:20:15 +00:00
}
@media (prefers-color-scheme: dark) {
body {
--background: black;
--color: white;
}
#font-list img {
filter: invert(100%);
}
}
2025-02-11 14:20:15 +00:00
body {
display: grid;
grid-template-columns: 15em 1fr;
gap: var(--spacing);
width: 100svw;
height: 100svh;
margin: 0;
overflow: hidden;
color: var(--color);
background: var(--background);
}
nav {
height: 100svh;
display: flex;
flex-direction: column;
}
#controls {
position: sticky;
top: 0;
background: var(--background);
padding: var(--spacing);
& select {
width: 100%;
}
}
main {
2025-02-11 14:20:15 +00:00
font-family: var(--family);
overflow: auto;
2025-02-11 14:20:15 +00:00
}
.fixed-font {
font-family: sans-serif;
}
dt {
font-weight: bold;
text-decoration: underline;
}
.hidden {
display: none;
}
.help-text {
font-size: small;
}
.char-range {
max-width: 100%;
max-height: 3em;
overflow: auto;
}
#font-list {
margin: 0;
overflow: auto;
width:100%;
height:100%;
font-size: 2rem;
padding: 0;
list-style: none;
& li {
overflow: hidden;
}
}
#css-display {
margin: 0;
2025-02-11 14:20:15 +00:00
}