123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496 |
- :root {
- --highlight: #ddd;
- --background: #222;
- --tile-width: 480px;
- }
- 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 ~ label > .toggle-off {
- display: none;
- }
- .toggle-box > .toggle-button:checked ~ label > .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;
- }
- /*
- .container {
- display: flex;
- flex-flow: column nowrap;
- justify-content: space-between;
- align-items: flex-start;
- }
- @media (min-width: 1000px) {
- .container {
- flex-direction: row;
- }
- }
- .start-justified {
- justify-content: flex-start;
- }
- .panel {
- display: flex;
- flex-flow: column nowrap;
- justify-content: flex-start;
- align-items: stretch;
- }
- @media (min-width: 1500px) {
- .rpanel {
- flex-direction: row;
- }
- .rpanel > :last-child {
- margin-left: 16px;
- }
- }
- .center-text {
- text-align: center;
- }
- .config {
- width: 100%;
- margin-bottom: 16px;
- }
- .dropdown {
- flex: 1;
- justify-content: space-between;
- align-items: center;
- }
- .dropdown > select {
- margin-top: 8px;
- margin-right: 8px;
- margin-left: 8px;
- }
- .center-aligned {
- align-items: center;
- }
- .center-justified {
- justify-content: center;
- }
- .start-justified {
- justify-content: flex-start;
- }
- .eqn-label {
- margin-right: 0.5em;
- }
- #reveal-definitions {
- display: none;
- }
- #reveal-definitions:checked ~ .definitions {
- display: block;
- }
- #reveal-definitions:checked ~ * > .definitions {
- display: block;
- }
- #reveal-definitions:checked ~ #reveal-def-label > #reveal-def-hide {
- display: block;
- }
- #reveal-definitions:checked ~ #reveal-def-label > #reveal-def-show {
- display: none;
- }
- #reveal-def-hide {
- display: none;
- margin-bottom: 0.5em;
- }
- #reveal-def-show {
- display: block;
- margin-bottom: 0.5em;
- }
- .definitions {
- display: none;
- /* evil trick to allow running into margins /
- max-width: 0px;
- overflow: visible;
- }
- .math-section {
- border: 2px solid var(--highlight);
- padding: 0.3em;
- margin-bottom: 0.2em;
- align-self: stretch;
- }
- #obj-fn {
- display: inline-flex;
- flex-flow: column nowrap;
- justify-content: center;
- }
- .padded {
- padding-left: 16px;
- padding-right: 16px;
- }
- .title {
- font-weight: 1000;
- }
- .control {
- height: 32px;
- align-items: flex-end;
- }
- .control > * {
- flex: 1;
- }
- .control > button {
- margin-left: 16px;
- margin-right: 16px;
- }
- .control > input {
- max-width: 10em;
- }
- #bulba-wrapper {
- display: flex;
- justify-content: center;
- }
- label {
- white-space: nowrap
- }
- .hideable_control {
- display: flex;
- flex-flow: row nowrap;
- }
- .hideable_control--hidden {
- display: none;
- }
- .pkmn-list {
- display: none;
- list-style-type: none;
- padding: 0;
- margin: 0;
- margin-top: 8px;
- margin-left: 8px;
- margin-bottom: 16px;
- width: 100%;
- }
- .show-list {
- display: none;
- }
- .show-list:checked ~ .pkmn-list {
- display: block;
- }
- .show-list-lbl-hide {
- display: none;
- }
- .show-list:checked ~ * > .show-list-lbl-hide {
- display: block;
- }
- .show-list-lbl-show {
- display: block;
- }
- .show-list:checked ~ * > .show-list-lbl-show {
- display: none;
- }
- #search-space-button {
- width: 3em;
- }
- #controls {
- width: calc(var(--tile-width) + 32px);
- display: grid;
- gap: 4px 16px;
- grid:
- "bulb inpt rand"
- "liml qvec qvec" 1.5em
- "limt qvec qvec" 1.5em
- "metr objf objf"
- ". iner coef"
- ". norm coef"
- "clst scal scal"
- "warn warn warn"
- "srch name btns"
- "rslt rslt rslt"
- "togg togg . "
- "defs clsd clsd"
- /10em 10em 1fr
- ;
- justify-items: stretch;
- align-items: center;
- margin-right: 32px;
- }
- /* Pokemon Tile /
- .pkmn_tile {
- width: var(--tile-width);
- display: grid;
- gap: 2px 2px;
- margin-top: 4px;
- margin-bottom: 4px;
- grid:
- "img name name fn" 1.2em
- "img mu mu mu" 1fr
- "tog mu mu mu" 1fr
- ". k1 k2 k3" auto
- /60px 1fr 1fr 1fr
- ;
- }
- .pkmn_tile-true_mean {
- grid-area: mu;
- font-size: 12px;
- display: grid;
- grid:
- ". mu mus mut"
- ". in mud mup"
- /0.1fr 3fr 1fr 1fr
- ;
- gap: 2px 2px;
- align-items: center;
- }
- .pkmn_tile-true_mean-value {
- grid-area: mu;
- display: grid;
- grid:
- "mul mux muv"
- /2em 6em auto
- ;
- align-items: center;
- }
- .pkmn_tile-true_mean-inertia {
- grid-area: in;
- }
- .pkmn_tile-true_mean-mu_label {
- grid-area: mul;
- justify-self: end;
- padding-right: 2px;
- }
- .pkmn_tile-true_mean-mu_hex {
- grid-area: mux;
- }
- .pkmn_tile-true_mean-mu_vec {
- grid-area: muv;
- }
- .pkmn_tile-true_mean-stat {
- margin-left: 8px;
- }
- .pkmn_tile-true_mean-stat-sigma {
- grid-area: mus;
- }
- .pkmn_tile-true_mean-stat-theta {
- grid-area: mut;
- }
- .pkmn_tile-true_mean-stat-delta {
- grid-area: mud;
- }
- .pkmn_tile-true_mean-stat-phi {
- grid-area: mup;
- }
- .pkmn_tile-img {
- grid-area: img;
- }
- .pkmn_tile-name {
- grid-area: name;
- font-weight: 1000;
- }
- .pkmn_tile-fn {
- grid-area: fn;
- justify-self: end;
- }
- .pkmn_tile-cluster {
- display: none;
- font-size: 12px;
- grid:
- "lbl lbl lbl lbl lbl" 1em
- "mu mux mux mux mux"
- "muv muv muv muv muv"
- "pi piv . th thv"
- "dl dlv . ph phv"
- /2fr 4fr 1fr 2fr 4fr
- ;
- gap: 5px 0px;
- padding-top: 4px;
- padding-bottom: 8px;
- }
- .pkmn_tile-cluster-top_label {
- font-weight: 1000;
- font-size: 14px;
- justify-self: center;
- width: 100%;
- display: flex;
- flex-flow: row nowrap;
- justify-content: space-around;
- align-items: center;
- }
- .pkmn_tile-cluster-stat_label {
- justify-self: end;
- padding-right: 2px;
- }
- /* Cluster Hiding Logic /
- .pkmn_tile-reveal_clusters {
- display: none;
- }
- .pkmn_tile-reveal_clusters:checked ~ .pkmn_tile-cluster {
- display: grid;
- }
- .pkmn_tile-reveal_clusters:checked ~ .pkmn_tile-reveal_clusters_label > .pkmn_tile-reveal_clusters_label--closed {
- display: none;
- }
- .pkmn_tile-reveal_clusters_label--closed {
- display: block;
- }
- .pkmn_tile-reveal_clusters:checked ~ .pkmn_tile-reveal_clusters_label > .pkmn_tile-reveal_clusters_label--open {
- display: block;
- }
- .pkmn_tile-reveal_clusters_label--open {
- display: none;
- }
- .pkmn_tile-reveal_clusters_label {
- font-size: 16px;
- text-align: center;
- grid-area: tog;
- }
- .pkmn_tile-reveal_clusters--hide {
- display: none;
- }
- .pkmn_tile-reveal_clusters--show {
- display: block;
- }
- */
|