nearest.css 5.9 KB

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