nearest.css 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492
  1. :root {
  2. --highlight: #ddd;
  3. --background: #222;
  4. --tile-width: 480px;
  5. }
  6. body {
  7. width: 99%;
  8. padding-top: 4px;
  9. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  10. color: var(--highlight);
  11. background-color: var(--background);
  12. margin: 8px;
  13. }
  14. math {
  15. font-size: 12px;
  16. }
  17. .hide {
  18. display: none !important;
  19. }
  20. /* Toggles */
  21. .toggle-box {
  22. display: block;
  23. }
  24. .toggle-box > .toggle-off {
  25. display: block;
  26. }
  27. .toggle-box > .toggle-on {
  28. display: none;
  29. }
  30. .toggle-box > label > .toggle-off {
  31. display: block;
  32. }
  33. .toggle-box > label > .toggle-on {
  34. display: none;
  35. }
  36. .toggle-box > .toggle-button {
  37. display: none;
  38. }
  39. .toggle-box > .toggle-button:checked ~ .toggle-off {
  40. display: none;
  41. }
  42. .toggle-box > .toggle-button:checked ~ .toggle-on {
  43. display: block;
  44. }
  45. .toggle-box > .toggle-button:checked ~ label > .toggle-off {
  46. display: none;
  47. }
  48. .toggle-box > .toggle-button:checked ~ label > .toggle-on {
  49. display: block;
  50. }
  51. /* Controls */
  52. .control-grid {
  53. margin-top: 16px;
  54. display: grid;
  55. gap: 4px 8px;
  56. grid:
  57. "bulb inpt rand"
  58. "cspc cspc cspc"
  59. "sort metr metr"
  60. "disp disp disp" 4em
  61. /1fr 8em auto
  62. ;
  63. justify-items: stretch;
  64. align-items: center;
  65. }
  66. .cluster-grid {
  67. margin-bottom: 16px;
  68. display: grid;
  69. gap: 4px 8px;
  70. grid:
  71. "albl albl"
  72. "sort metr"
  73. "blbl clus"
  74. "disp disp"
  75. "slbl scal"
  76. /10em 10em
  77. ;
  78. justify-items: stretch;
  79. align-items: center;
  80. }
  81. /*
  82. .container {
  83. display: flex;
  84. flex-flow: column nowrap;
  85. justify-content: space-between;
  86. align-items: flex-start;
  87. }
  88. @media (min-width: 1000px) {
  89. .container {
  90. flex-direction: row;
  91. }
  92. }
  93. .start-justified {
  94. justify-content: flex-start;
  95. }
  96. .panel {
  97. display: flex;
  98. flex-flow: column nowrap;
  99. justify-content: flex-start;
  100. align-items: stretch;
  101. }
  102. @media (min-width: 1500px) {
  103. .rpanel {
  104. flex-direction: row;
  105. }
  106. .rpanel > :last-child {
  107. margin-left: 16px;
  108. }
  109. }
  110. .center-text {
  111. text-align: center;
  112. }
  113. .config {
  114. width: 100%;
  115. margin-bottom: 16px;
  116. }
  117. .dropdown {
  118. flex: 1;
  119. justify-content: space-between;
  120. align-items: center;
  121. }
  122. .dropdown > select {
  123. margin-top: 8px;
  124. margin-right: 8px;
  125. margin-left: 8px;
  126. }
  127. .center-aligned {
  128. align-items: center;
  129. }
  130. .center-justified {
  131. justify-content: center;
  132. }
  133. .start-justified {
  134. justify-content: flex-start;
  135. }
  136. .eqn-label {
  137. margin-right: 0.5em;
  138. }
  139. #reveal-definitions {
  140. display: none;
  141. }
  142. #reveal-definitions:checked ~ .definitions {
  143. display: block;
  144. }
  145. #reveal-definitions:checked ~ * > .definitions {
  146. display: block;
  147. }
  148. #reveal-definitions:checked ~ #reveal-def-label > #reveal-def-hide {
  149. display: block;
  150. }
  151. #reveal-definitions:checked ~ #reveal-def-label > #reveal-def-show {
  152. display: none;
  153. }
  154. #reveal-def-hide {
  155. display: none;
  156. margin-bottom: 0.5em;
  157. }
  158. #reveal-def-show {
  159. display: block;
  160. margin-bottom: 0.5em;
  161. }
  162. .definitions {
  163. display: none;
  164. /* evil trick to allow running into margins /
  165. max-width: 0px;
  166. overflow: visible;
  167. }
  168. .math-section {
  169. border: 2px solid var(--highlight);
  170. padding: 0.3em;
  171. margin-bottom: 0.2em;
  172. align-self: stretch;
  173. }
  174. #obj-fn {
  175. display: inline-flex;
  176. flex-flow: column nowrap;
  177. justify-content: center;
  178. }
  179. .padded {
  180. padding-left: 16px;
  181. padding-right: 16px;
  182. }
  183. .title {
  184. font-weight: 1000;
  185. }
  186. .control {
  187. height: 32px;
  188. align-items: flex-end;
  189. }
  190. .control > * {
  191. flex: 1;
  192. }
  193. .control > button {
  194. margin-left: 16px;
  195. margin-right: 16px;
  196. }
  197. .control > input {
  198. max-width: 10em;
  199. }
  200. #bulba-wrapper {
  201. display: flex;
  202. justify-content: center;
  203. }
  204. label {
  205. white-space: nowrap
  206. }
  207. .hideable_control {
  208. display: flex;
  209. flex-flow: row nowrap;
  210. }
  211. .hideable_control--hidden {
  212. display: none;
  213. }
  214. .pkmn-list {
  215. display: none;
  216. list-style-type: none;
  217. padding: 0;
  218. margin: 0;
  219. margin-top: 8px;
  220. margin-left: 8px;
  221. margin-bottom: 16px;
  222. width: 100%;
  223. }
  224. .show-list {
  225. display: none;
  226. }
  227. .show-list:checked ~ .pkmn-list {
  228. display: block;
  229. }
  230. .show-list-lbl-hide {
  231. display: none;
  232. }
  233. .show-list:checked ~ * > .show-list-lbl-hide {
  234. display: block;
  235. }
  236. .show-list-lbl-show {
  237. display: block;
  238. }
  239. .show-list:checked ~ * > .show-list-lbl-show {
  240. display: none;
  241. }
  242. #search-space-button {
  243. width: 3em;
  244. }
  245. #controls {
  246. width: calc(var(--tile-width) + 32px);
  247. display: grid;
  248. gap: 4px 16px;
  249. grid:
  250. "bulb inpt rand"
  251. "liml qvec qvec" 1.5em
  252. "limt qvec qvec" 1.5em
  253. "metr objf objf"
  254. ". iner coef"
  255. ". norm coef"
  256. "clst scal scal"
  257. "warn warn warn"
  258. "srch name btns"
  259. "rslt rslt rslt"
  260. "togg togg . "
  261. "defs clsd clsd"
  262. /10em 10em 1fr
  263. ;
  264. justify-items: stretch;
  265. align-items: center;
  266. margin-right: 32px;
  267. }
  268. /* Pokemon Tile /
  269. .pkmn_tile {
  270. width: var(--tile-width);
  271. display: grid;
  272. gap: 2px 2px;
  273. margin-top: 4px;
  274. margin-bottom: 4px;
  275. grid:
  276. "img name name fn" 1.2em
  277. "img mu mu mu" 1fr
  278. "tog mu mu mu" 1fr
  279. ". k1 k2 k3" auto
  280. /60px 1fr 1fr 1fr
  281. ;
  282. }
  283. .pkmn_tile-true_mean {
  284. grid-area: mu;
  285. font-size: 12px;
  286. display: grid;
  287. grid:
  288. ". mu mus mut"
  289. ". in mud mup"
  290. /0.1fr 3fr 1fr 1fr
  291. ;
  292. gap: 2px 2px;
  293. align-items: center;
  294. }
  295. .pkmn_tile-true_mean-value {
  296. grid-area: mu;
  297. display: grid;
  298. grid:
  299. "mul mux muv"
  300. /2em 6em auto
  301. ;
  302. align-items: center;
  303. }
  304. .pkmn_tile-true_mean-inertia {
  305. grid-area: in;
  306. }
  307. .pkmn_tile-true_mean-mu_label {
  308. grid-area: mul;
  309. justify-self: end;
  310. padding-right: 2px;
  311. }
  312. .pkmn_tile-true_mean-mu_hex {
  313. grid-area: mux;
  314. }
  315. .pkmn_tile-true_mean-mu_vec {
  316. grid-area: muv;
  317. }
  318. .pkmn_tile-true_mean-stat {
  319. margin-left: 8px;
  320. }
  321. .pkmn_tile-true_mean-stat-sigma {
  322. grid-area: mus;
  323. }
  324. .pkmn_tile-true_mean-stat-theta {
  325. grid-area: mut;
  326. }
  327. .pkmn_tile-true_mean-stat-delta {
  328. grid-area: mud;
  329. }
  330. .pkmn_tile-true_mean-stat-phi {
  331. grid-area: mup;
  332. }
  333. .pkmn_tile-img {
  334. grid-area: img;
  335. }
  336. .pkmn_tile-name {
  337. grid-area: name;
  338. font-weight: 1000;
  339. }
  340. .pkmn_tile-fn {
  341. grid-area: fn;
  342. justify-self: end;
  343. }
  344. .pkmn_tile-cluster {
  345. display: none;
  346. font-size: 12px;
  347. grid:
  348. "lbl lbl lbl lbl lbl" 1em
  349. "mu mux mux mux mux"
  350. "muv muv muv muv muv"
  351. "pi piv . th thv"
  352. "dl dlv . ph phv"
  353. /2fr 4fr 1fr 2fr 4fr
  354. ;
  355. gap: 5px 0px;
  356. padding-top: 4px;
  357. padding-bottom: 8px;
  358. }
  359. .pkmn_tile-cluster-top_label {
  360. font-weight: 1000;
  361. font-size: 14px;
  362. justify-self: center;
  363. width: 100%;
  364. display: flex;
  365. flex-flow: row nowrap;
  366. justify-content: space-around;
  367. align-items: center;
  368. }
  369. .pkmn_tile-cluster-stat_label {
  370. justify-self: end;
  371. padding-right: 2px;
  372. }
  373. /* Cluster Hiding Logic /
  374. .pkmn_tile-reveal_clusters {
  375. display: none;
  376. }
  377. .pkmn_tile-reveal_clusters:checked ~ .pkmn_tile-cluster {
  378. display: grid;
  379. }
  380. .pkmn_tile-reveal_clusters:checked ~ .pkmn_tile-reveal_clusters_label > .pkmn_tile-reveal_clusters_label--closed {
  381. display: none;
  382. }
  383. .pkmn_tile-reveal_clusters_label--closed {
  384. display: block;
  385. }
  386. .pkmn_tile-reveal_clusters:checked ~ .pkmn_tile-reveal_clusters_label > .pkmn_tile-reveal_clusters_label--open {
  387. display: block;
  388. }
  389. .pkmn_tile-reveal_clusters_label--open {
  390. display: none;
  391. }
  392. .pkmn_tile-reveal_clusters_label {
  393. font-size: 16px;
  394. text-align: center;
  395. grid-area: tog;
  396. }
  397. .pkmn_tile-reveal_clusters--hide {
  398. display: none;
  399. }
  400. .pkmn_tile-reveal_clusters--show {
  401. display: block;
  402. }
  403. */