nearest.css 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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. /* Toggles */
  21. .toggle-box {
  22. display: block;
  23. }
  24. .toggle-box .toggle-off {
  25. display: block;
  26. }
  27. .toggle-box .toggle-on {
  28. display: none;
  29. }
  30. .toggle-box > label > .toggle-off {
  31. display: block;
  32. }
  33. .toggle-box > label > .toggle-on {
  34. display: none;
  35. }
  36. .toggle-box > .toggle-button {
  37. display: none;
  38. }
  39. .toggle-box > .toggle-button:checked ~ .toggle-off {
  40. display: none;
  41. }
  42. .toggle-box > .toggle-button:checked ~ .toggle-on {
  43. display: block;
  44. }
  45. .toggle-box > .toggle-button:checked ~ :not(.toggle-box) .toggle-off {
  46. display: none;
  47. }
  48. .toggle-box > .toggle-button:checked ~ :not(.toggle-box) .toggle-on {
  49. display: block;
  50. }
  51. /* Controls */
  52. .control-grid {
  53. width: 21em;
  54. margin-top: 16px;
  55. display: grid;
  56. gap: 4px 8px;
  57. grid:
  58. "bulb inpt rand"
  59. "bulb qvec qvec" 2em
  60. "bulb cspc cspc"
  61. "sort metr metr"
  62. "munu munu munu"
  63. "disp disp disp" 4em
  64. /5em 8em auto
  65. ;
  66. justify-items: stretch;
  67. align-items: center;
  68. }
  69. .cluster-grid {
  70. width: 21em;
  71. margin-bottom: 16px;
  72. display: grid;
  73. gap: 4px 8px;
  74. grid:
  75. "albl albl"
  76. "sort metr"
  77. "blbl clus"
  78. "disp disp"
  79. "slbl scal"
  80. /10em auto
  81. ;
  82. justify-items: stretch;
  83. align-items: center;
  84. }
  85. .pkmn-list {
  86. list-style-type: none;
  87. padding: 0;
  88. margin-top: 8px;
  89. margin-left: 16px;
  90. margin-bottom: 16px;
  91. flex: 1;
  92. }
  93. /* Pokemon Tile */
  94. .pkmn-tile {
  95. width: var(--tile-width);
  96. margin-top: 4px;
  97. margin-bottom: 4px;
  98. display: grid;
  99. gap: 2px 2px;
  100. grid:
  101. "icon name name name" 1.2em
  102. "icon totl totl totl" 1.2em
  103. "togg totl totl totl" auto
  104. "togg cls1 cls2 cls3" auto
  105. /60px 1fr 1fr 1fr
  106. ;
  107. align-items: center;
  108. }
  109. .pkmn-tile_label {
  110. width: 2em;
  111. text-align: right;
  112. }
  113. .pkmn-tile_value {
  114. flex: 1;
  115. text-align: left;
  116. margin-left: 4px;
  117. }
  118. .pkmn-tile_vector {
  119. flex: 2;
  120. text-align: left;
  121. margin-left: 4px;
  122. }
  123. .pkmn-tile_stats {
  124. padding-top: 0.5em;
  125. padding-bottom: 0.5em;
  126. justify-self: start;
  127. align-self: start;
  128. width: 100%;
  129. font-size: 12px;
  130. display: flex;
  131. flex-flow: column;
  132. justify-content: flex-start;
  133. align-items: stretch;
  134. }
  135. .pkmn-tile_row {
  136. width: 100%;
  137. display: flex;
  138. flex-flow: row nowrap;
  139. justify-content: stretch;
  140. align-items: flex-start;
  141. }