nearest.css 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  10. color: var(--highlight);
  11. background-color: var(--background);
  12. margin: 8px;
  13. }
  14. math {
  15. font-size: 12px;
  16. }
  17. .hide {
  18. display: none !important;
  19. }
  20. .divider {
  21. background-color: var(--highlight);
  22. width: 2px;
  23. min-height: 100%;
  24. margin-left: 8px;
  25. margin-right: 8px;
  26. }
  27. .list-container {
  28. min-width: calc(16px + var(--tile-width));
  29. display: flex;
  30. flex-flow: column nowrap;
  31. justify-content: flex-start;
  32. align-items: stretch;
  33. }
  34. .search-container {
  35. display: flex;
  36. flex-flow: row nowrap;
  37. justify-content: space-between;
  38. align-items: center;
  39. }
  40. /* Toggles */
  41. .toggle-box {
  42. display: block;
  43. }
  44. .toggle-box .toggle-off {
  45. display: block;
  46. }
  47. .toggle-box .toggle-on {
  48. display: none;
  49. }
  50. .toggle-box > label > .toggle-off {
  51. display: block;
  52. }
  53. .toggle-box > label > .toggle-on {
  54. display: none;
  55. }
  56. .toggle-box > .toggle-button {
  57. display: none;
  58. }
  59. .toggle-box > .toggle-button:checked ~ .toggle-off {
  60. display: none;
  61. }
  62. .toggle-box > .toggle-button:checked ~ .toggle-on {
  63. display: block;
  64. }
  65. .toggle-box > .toggle-button:checked ~ :not(.toggle-box) > .toggle-off {
  66. display: none;
  67. }
  68. .toggle-box > .toggle-button:checked ~ :not(.toggle-box) > .toggle-on {
  69. display: block;
  70. }
  71. /* Controls */
  72. .control-grid {
  73. width: 21em;
  74. margin-top: 16px;
  75. display: grid;
  76. gap: 4px 8px;
  77. grid:
  78. "bulb cspc cspc"
  79. "bulb qvec qvec" 2em
  80. "liml limt limt"
  81. "sort metr metr"
  82. "munu munu munu"
  83. "disp disp disp" minmax(4em, auto)
  84. /5em 8em auto
  85. ;
  86. justify-items: stretch;
  87. align-items: center;
  88. }
  89. .cluster-grid {
  90. width: 21em;
  91. margin-bottom: 16px;
  92. display: grid;
  93. gap: 4px 8px;
  94. grid:
  95. "albl albl"
  96. "sort metr"
  97. "blbl clus"
  98. "disp disp"
  99. "slbl scal"
  100. "mult mult"
  101. /10em auto
  102. ;
  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. ;
  128. align-items: center;
  129. }
  130. .pkmn-tile_label {
  131. width: 2em;
  132. text-align: right;
  133. }
  134. .pkmn-tile_value {
  135. flex: 1;
  136. text-align: left;
  137. margin-left: 4px;
  138. }
  139. .pkmn-tile_indicator {
  140. flex: 1;
  141. text-align: center;
  142. }
  143. .pkmn-tile_vector {
  144. flex: 2;
  145. text-align: left;
  146. margin-left: 4px;
  147. }
  148. .pkmn-tile_stats {
  149. padding-top: 0.5em;
  150. padding-bottom: 0.5em;
  151. justify-self: start;
  152. align-self: start;
  153. width: 100%;
  154. font-size: 12px;
  155. display: flex;
  156. flex-flow: column;
  157. justify-content: flex-start;
  158. align-items: stretch;
  159. }
  160. .pkmn-tile_row {
  161. width: 100%;
  162. display: flex;
  163. flex-flow: row nowrap;
  164. justify-content: stretch;
  165. align-items: flex-start;
  166. }