diff options
| author | Brian Cully <bjc@spork.org> | 2025-05-12 22:29:56 -0400 |
|---|---|---|
| committer | Brian Cully <bjc@spork.org> | 2025-05-12 22:29:56 -0400 |
| commit | 314a84382ecb31a2f1faa879855ce20b9f442036 (patch) | |
| tree | 96de3a0e3e5b2685f5cd58b84383fc7d85c47aea /main.css | |
| parent | ceff45422d39530b09d3d797ef88b97190c4f23c (diff) | |
| download | chords-314a84382ecb31a2f1faa879855ce20b9f442036.tar.gz chords-314a84382ecb31a2f1faa879855ce20b9f442036.zip | |
wip: making some progress on the grid
- got radio buttons back, but open/selected still have different
interfaces. should use getAttribute() everywhere
Diffstat (limited to 'main.css')
| -rw-r--r-- | main.css | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -38,22 +38,35 @@ body { background-color: var(--fret-bg-color-3); } -x-string { +x-string form { display: grid; padding: 5px; cursor: pointer; list-style: none; grid-template-rows: 1ex; /* TODO: this should be put on the element when it's attached. */ - grid-template-columns: repeat(10, 1fr); + grid-template-columns: repeat(10, 1.5em); /* and use ‘fr’ */ +} + +x-string input[type="checkbox"] { + text-align: center; + width: 1em; + height: 1em; + display: grid; + grid-template-columns: subgrid; } x-string li { text-align: center; + display: grid; + grid-template-columns: subgrid; } x-string .selected { border-left: 1px solid black; + text-align: center; + margin: 0; + margin-left: 5px; } x-fretboard { |
