nearest.css 6.5 KB

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