nearest.css 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. :root {
  2. --highlight: #ddd;
  3. --background: #222;
  4. --tile-width: 484px;
  5. }
  6. body {
  7. width: 99%;
  8. padding-top: 4px;
  9. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
  10. "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
  11. sans-serif;
  12. color: var(--highlight);
  13. background-color: var(--background);
  14. margin: 8px;
  15. }
  16. math {
  17. font-size: 12px;
  18. }
  19. .hide {
  20. display: none !important;
  21. }
  22. .divider {
  23. background-color: var(--highlight);
  24. width: 2px;
  25. min-height: 100%;
  26. margin-left: 8px;
  27. margin-right: 8px;
  28. }
  29. .list-container {
  30. min-width: calc(16px + var(--tile-width));
  31. display: flex;
  32. flex-flow: column nowrap;
  33. justify-content: flex-start;
  34. align-items: stretch;
  35. }
  36. .search-container {
  37. display: flex;
  38. flex-flow: row nowrap;
  39. justify-content: space-between;
  40. align-items: center;
  41. }
  42. /* Toggles */
  43. .toggle-box {
  44. display: block;
  45. }
  46. .toggle-box .toggle-off {
  47. display: block;
  48. }
  49. .toggle-box .toggle-on {
  50. display: none;
  51. }
  52. .toggle-box > label > .toggle-off {
  53. display: block;
  54. }
  55. .toggle-box > label > .toggle-on {
  56. display: none;
  57. }
  58. .toggle-box > .toggle-button {
  59. display: none;
  60. }
  61. .toggle-box > .toggle-button:checked ~ .toggle-off {
  62. display: none;
  63. }
  64. .toggle-box > .toggle-button:checked ~ .toggle-on {
  65. display: block;
  66. }
  67. .toggle-box > .toggle-button:checked ~ :not(.toggle-box) > .toggle-off {
  68. display: none;
  69. }
  70. .toggle-box > .toggle-button:checked ~ :not(.toggle-box) > .toggle-on {
  71. display: block;
  72. }
  73. /* Controls */
  74. .control-grid {
  75. width: 21em;
  76. margin-top: 16px;
  77. display: grid;
  78. gap: 4px 8px;
  79. grid:
  80. "bulb cspc cspc"
  81. "bulb qvec qvec" 2em
  82. "liml limt limt"
  83. "sort metr metr"
  84. "munu munu munu"
  85. "disp disp disp" minmax(4em, auto)
  86. / 5em 8em auto;
  87. justify-items: stretch;
  88. align-items: center;
  89. }
  90. .cluster-grid {
  91. width: 21em;
  92. margin-bottom: 16px;
  93. display: grid;
  94. gap: 4px 8px;
  95. grid:
  96. "albl albl"
  97. "sort metr"
  98. "blbl clus"
  99. "disp disp"
  100. "slbl scal"
  101. "mult mult"
  102. /10em auto;
  103. justify-items: stretch;
  104. align-items: center;
  105. }
  106. .pkmn-list {
  107. list-style-type: none;
  108. padding: 0;
  109. margin-top: 8px;
  110. margin-left: 16px;
  111. margin-bottom: 16px;
  112. flex: 1;
  113. }
  114. /* Pokemon Tile */
  115. .pkmn-tile {
  116. width: var(--tile-width);
  117. margin-top: 4px;
  118. margin-bottom: 4px;
  119. display: grid;
  120. gap: 2px 2px;
  121. grid:
  122. "icon name name name name" 1.2em
  123. "icon totl totl totl totl" 1.2em
  124. "togg totl totl totl totl" auto
  125. "togg cls1 cls2 cls3 cls4" auto
  126. / 60px 1fr 1fr 1fr 1fr;
  127. align-items: center;
  128. }
  129. .pkmn-tile_label {
  130. width: 2em;
  131. text-align: right;
  132. }
  133. .pkmn-tile_value {
  134. flex: 1;
  135. text-align: left;
  136. margin-left: 4px;
  137. }
  138. .pkmn-tile_indicator {
  139. flex: 1;
  140. text-align: center;
  141. }
  142. .pkmn-tile_vector {
  143. flex: 2;
  144. text-align: left;
  145. margin-left: 4px;
  146. }
  147. .pkmn-tile_stats {
  148. padding-top: 0.5em;
  149. padding-bottom: 0.5em;
  150. justify-self: start;
  151. align-self: start;
  152. width: 100%;
  153. font-size: 12px;
  154. display: flex;
  155. flex-flow: column;
  156. justify-content: flex-start;
  157. align-items: stretch;
  158. }
  159. .pkmn-tile_row {
  160. width: 100%;
  161. display: flex;
  162. flex-flow: row nowrap;
  163. justify-content: stretch;
  164. align-items: flex-start;
  165. }