nearest.css 7.3 KB

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