style.css 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. @font-face {
  2. font-family: 'Metrophobic';
  3. font-style: normal;
  4. font-weight: 400;
  5. src: url('metrophobic-v23-latin-regular.woff2') format('woff2');
  6. }
  7. * {
  8. box-sizing: border-box;
  9. }
  10. body {
  11. margin: 0;
  12. background-color: #000;
  13. color: #aaa;
  14. font: 18px Metrophobic, sans-serif;
  15. }
  16. a:link, a:visited, a:active {
  17. color: #58a;
  18. text-decoration: none;
  19. }
  20. a:hover {
  21. color: #5ad;
  22. }
  23. main.buy form {
  24. display: flex;
  25. flex-direction: column;
  26. align-items: flex-start;
  27. line-height: 2;
  28. }
  29. main.roi form {
  30. display: flex;
  31. justify-content: space-evenly;
  32. }
  33. input, select, textarea {
  34. background-color: #171120;
  35. color: inherit;
  36. font-family: inherit;
  37. padding: 4px;
  38. border: 1px solid #888;
  39. }
  40. input[type="checkbox"] {
  41. accent-color: #f70;
  42. }
  43. main, footer {
  44. width: 900px;
  45. margin: 10px auto;
  46. background-color: #111;
  47. }
  48. main {
  49. padding: 40px 50px;
  50. }
  51. footer {
  52. padding: 25px 50px;
  53. margin-bottom: 50px;
  54. font-size: 16px;
  55. }
  56. table {
  57. width: 100%;
  58. margin-top: 1em;
  59. border-collapse: collapse;
  60. th {
  61. white-space: no-wrap;
  62. }
  63. td {
  64. font-family: monospace;
  65. text-align: right;
  66. border-top: 1px solid #222;
  67. }
  68. }
  69. main.buy table {
  70. td:nth-child(1) {
  71. font-family: inherit;
  72. text-align: inherit;
  73. }
  74. td.red {
  75. color: #c66;
  76. }
  77. }
  78. main.roi table {
  79. td:nth-child(1),
  80. td:nth-child(2) {
  81. font-family: inherit;
  82. text-align: inherit;
  83. }
  84. }
  85. main.buy {
  86. h2 {
  87. margin-bottom: 4px;
  88. }
  89. section.xit-act {
  90. margin-top: 1em;
  91. textarea {
  92. height: 26px;
  93. }
  94. textarea, input {
  95. vertical-align: middle;
  96. }
  97. }
  98. }
  99. main.gov {
  100. form input#planet {
  101. margin-bottom: 1em;
  102. }
  103. div#gov {
  104. margin-top: 2em;
  105. table.options {
  106. td {
  107. padding: 0 6px;
  108. &:first-child {
  109. width: 320px;
  110. font-size: 16px;
  111. }
  112. }
  113. }
  114. }
  115. .positive {
  116. color: #0aa;
  117. }
  118. .negative {
  119. color: #f80;
  120. }
  121. }
  122. main.kit {
  123. width: 1200px;
  124. img {
  125. display: block;
  126. max-width: 100%;
  127. margin: 0.5em auto;
  128. }
  129. }
  130. main.mat {
  131. width: 90%;
  132. min-width: 500px;
  133. #charts {
  134. display: flex;
  135. flex-wrap: wrap;
  136. justify-content: space-between;
  137. row-gap: 2em;
  138. margin-top: 2em;
  139. svg {
  140. display: inline-block;
  141. }
  142. div.cxob {
  143. max-height: 10em;
  144. overflow-y: scroll;
  145. font-size: 12px;
  146. tr.sell {
  147. color: #f80;
  148. }
  149. tr.buy {
  150. color: #0aa;
  151. }
  152. }
  153. div.recipe {
  154. margin-bottom: 1em;
  155. span.building {
  156. display: inline-flex;
  157. height: 50px;
  158. width: 50px;
  159. align-items: center;
  160. justify-content: center;
  161. background-color: #222;
  162. border: 1px solid #555;
  163. }
  164. }
  165. }
  166. }
  167. main.ledger {
  168. textarea#ledger {
  169. margin-top: 2em;
  170. width: 100%;
  171. height: 70vh;
  172. }
  173. }
  174. main.production {
  175. summary {
  176. cursor: pointer;
  177. }
  178. .analysis-node {
  179. padding-left: 40px;
  180. }
  181. .analysis-node.root {
  182. margin-top: 2em;
  183. padding-left: 0;
  184. }
  185. div.building-row > div {
  186. display: inline-block;
  187. margin-left: 10px;
  188. }
  189. }
  190. #loader {
  191. display: none;
  192. width: 48px;
  193. height: 48px;
  194. margin: 0 auto;
  195. border-radius: 50%;
  196. position: relative;
  197. border: 3px solid;
  198. border-color: #ccc #ccc transparent transparent;
  199. animation: rotation 1s linear infinite;
  200. }
  201. #loader::after {
  202. content: '';
  203. position: absolute;
  204. left: 0;
  205. right: 0;
  206. top: 0;
  207. bottom: 0;
  208. margin: auto;
  209. border: 3px solid;
  210. border-color: transparent transparent #c8c #c8c;
  211. width: 24px;
  212. height: 24px;
  213. border-radius: 50%;
  214. animation: rotationBack 0.5s linear infinite;
  215. transform-origin: center center;
  216. }
  217. @keyframes rotation {
  218. 0% {
  219. transform: rotate(0deg);
  220. }
  221. 100% {
  222. transform: rotate(360deg);
  223. }
  224. }
  225. @keyframes rotationBack {
  226. 0% {
  227. transform: rotate(0deg);
  228. }
  229. 100% {
  230. transform: rotate(-360deg);
  231. }
  232. }
  233. *[data-tooltip] {
  234. text-decoration: underline dashed;
  235. cursor: help;
  236. }
  237. [popover="hint"] {
  238. white-space: pre-wrap;
  239. inset: unset;
  240. max-width: 400px;
  241. padding: 0.5em 0.7em;
  242. color: inherit;
  243. background-color: #222;
  244. border: none;
  245. opacity: 0.9;
  246. }
  247. @media (max-width: 600px) {
  248. main {
  249. padding: 5px;
  250. }
  251. }