nearest.css 7.2 KB

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