nearest.css 5.6 KB

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