123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165 |
- :root {
- --highlight: #ddd;
- --background: #222;
- --tile-width: 378px;
- }
- body {
- width: 99%;
- padding-top: 4px;
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
- color: var(--highlight);
- background-color: var(--background);
- margin: 8px;
- }
- math {
- font-size: 12px;
- }
- .hide {
- display: none !important;
- }
- /* Toggles */
- .toggle-box {
- display: block;
- }
- .toggle-box .toggle-off {
- display: block;
- }
- .toggle-box .toggle-on {
- display: none;
- }
- .toggle-box > label > .toggle-off {
- display: block;
- }
- .toggle-box > label > .toggle-on {
- display: none;
- }
- .toggle-box > .toggle-button {
- display: none;
- }
- .toggle-box > .toggle-button:checked ~ .toggle-off {
- display: none;
- }
- .toggle-box > .toggle-button:checked ~ .toggle-on {
- display: block;
- }
- .toggle-box > .toggle-button:checked ~ :not(.toggle-box) .toggle-off {
- display: none;
- }
- .toggle-box > .toggle-button:checked ~ :not(.toggle-box) .toggle-on {
- display: block;
- }
- /* Controls */
- .control-grid {
- width: 21em;
- margin-top: 16px;
- display: grid;
- gap: 4px 8px;
- grid:
- "bulb inpt rand"
- "bulb qvec qvec" 2em
- "bulb cspc cspc"
- "sort metr metr"
- "munu munu munu"
- "disp disp disp" 4em
- /5em 8em auto
- ;
- justify-items: stretch;
- align-items: center;
- }
- .cluster-grid {
- width: 21em;
- margin-bottom: 16px;
- display: grid;
- gap: 4px 8px;
- grid:
- "albl albl"
- "sort metr"
- "blbl clus"
- "disp disp"
- "slbl scal"
- /10em auto
- ;
- justify-items: stretch;
- align-items: center;
- }
- .pkmn-list {
- list-style-type: none;
- padding: 0;
- margin-top: 8px;
- margin-left: 16px;
- margin-bottom: 16px;
- flex: 1;
- }
- /* Pokemon Tile */
- .pkmn-tile {
- width: var(--tile-width);
- margin-top: 4px;
- margin-bottom: 4px;
- display: grid;
- gap: 2px 2px;
- grid:
- "icon name name name" 1.2em
- "icon totl totl totl" 1.2em
- "togg totl totl totl" auto
- "togg cls1 cls2 cls3" auto
- /60px 1fr 1fr 1fr
- ;
- align-items: center;
- }
- .pkmn-tile_label {
- width: 2em;
- text-align: right;
- }
- .pkmn-tile_value {
- flex: 1;
- text-align: left;
- margin-left: 4px;
- }
- .pkmn-tile_vector {
- flex: 2;
- text-align: left;
- margin-left: 4px;
- }
- .pkmn-tile_stats {
- padding-top: 0.5em;
- padding-bottom: 0.5em;
- justify-self: start;
- align-self: start;
- width: 100%;
- font-size: 12px;
- display: flex;
- flex-flow: column;
- justify-content: flex-start;
- align-items: stretch;
- }
- .pkmn-tile_row {
- width: 100%;
- display: flex;
- flex-flow: row nowrap;
- justify-content: stretch;
- align-items: flex-start;
- }
|