nearest.css 5.3 KB

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