nearest.css 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. :root {
  2. --highlight: #ddd;
  3. --background: #222;
  4. --tile-width: 378px;
  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" 4em
  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. /10em auto
  101. ;
  102. justify-items: stretch;
  103. align-items: center;
  104. }
  105. .pkmn-list {
  106. list-style-type: none;
  107. padding: 0;
  108. margin-top: 8px;
  109. margin-left: 16px;
  110. margin-bottom: 16px;
  111. flex: 1;
  112. }
  113. /* Pokemon Tile */
  114. .pkmn-tile {
  115. width: var(--tile-width);
  116. margin-top: 4px;
  117. margin-bottom: 4px;
  118. display: grid;
  119. gap: 2px 2px;
  120. grid:
  121. "icon name name name" 1.2em
  122. "icon totl totl totl" 1.2em
  123. "togg totl totl totl" auto
  124. "togg cls1 cls2 cls3" auto
  125. /60px 1fr 1fr 1fr
  126. ;
  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_vector {
  139. flex: 2;
  140. text-align: left;
  141. margin-left: 4px;
  142. }
  143. .pkmn-tile_stats {
  144. padding-top: 0.5em;
  145. padding-bottom: 0.5em;
  146. justify-self: start;
  147. align-self: start;
  148. width: 100%;
  149. font-size: 12px;
  150. display: flex;
  151. flex-flow: column;
  152. justify-content: flex-start;
  153. align-items: stretch;
  154. }
  155. .pkmn-tile_row {
  156. width: 100%;
  157. display: flex;
  158. flex-flow: row nowrap;
  159. justify-content: stretch;
  160. align-items: flex-start;
  161. }