nearest.css 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  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 qvec qvec" 2em
  79. "bulb cspc cspc"
  80. "sort metr metr"
  81. "munu munu munu"
  82. "disp disp disp" 4em
  83. /5em 8em auto
  84. ;
  85. justify-items: stretch;
  86. align-items: center;
  87. }
  88. .cluster-grid {
  89. width: 21em;
  90. margin-bottom: 16px;
  91. display: grid;
  92. gap: 4px 8px;
  93. grid:
  94. "albl albl"
  95. "sort metr"
  96. "blbl clus"
  97. "disp disp"
  98. "slbl scal"
  99. /10em auto
  100. ;
  101. justify-items: stretch;
  102. align-items: center;
  103. }
  104. .pkmn-list {
  105. list-style-type: none;
  106. padding: 0;
  107. margin-top: 8px;
  108. margin-left: 16px;
  109. margin-bottom: 16px;
  110. flex: 1;
  111. }
  112. /* Pokemon Tile */
  113. .pkmn-tile {
  114. width: var(--tile-width);
  115. margin-top: 4px;
  116. margin-bottom: 4px;
  117. display: grid;
  118. gap: 2px 2px;
  119. grid:
  120. "icon name name name" 1.2em
  121. "icon totl totl totl" 1.2em
  122. "togg totl totl totl" auto
  123. "togg cls1 cls2 cls3" auto
  124. /60px 1fr 1fr 1fr
  125. ;
  126. align-items: center;
  127. }
  128. .pkmn-tile_label {
  129. width: 2em;
  130. text-align: right;
  131. }
  132. .pkmn-tile_value {
  133. flex: 1;
  134. text-align: left;
  135. margin-left: 4px;
  136. }
  137. .pkmn-tile_vector {
  138. flex: 2;
  139. text-align: left;
  140. margin-left: 4px;
  141. }
  142. .pkmn-tile_stats {
  143. padding-top: 0.5em;
  144. padding-bottom: 0.5em;
  145. justify-self: start;
  146. align-self: start;
  147. width: 100%;
  148. font-size: 12px;
  149. display: flex;
  150. flex-flow: column;
  151. justify-content: flex-start;
  152. align-items: stretch;
  153. }
  154. .pkmn-tile_row {
  155. width: 100%;
  156. display: flex;
  157. flex-flow: row nowrap;
  158. justify-content: stretch;
  159. align-items: flex-start;
  160. }