style.css 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  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. summary {
  70. cursor: pointer;
  71. }
  72. main.buy table {
  73. td:nth-child(1) {
  74. font-family: inherit;
  75. text-align: inherit;
  76. }
  77. td.red {
  78. color: #c66;
  79. }
  80. }
  81. main.roi table {
  82. td:nth-child(1),
  83. td:nth-child(2) {
  84. font-family: inherit;
  85. text-align: inherit;
  86. }
  87. }
  88. main.buy {
  89. h2 {
  90. margin-bottom: 4px;
  91. }
  92. section.xit-act {
  93. margin-top: 1em;
  94. textarea {
  95. height: 26px;
  96. }
  97. textarea, input {
  98. vertical-align: middle;
  99. }
  100. }
  101. }
  102. main.corps {
  103. table {
  104. td:nth-child(1),
  105. td:nth-child(2),
  106. td:nth-child(4) {
  107. padding: 0 16px;
  108. text-align: inherit;
  109. }
  110. td:nth-child(2),
  111. td:nth-child(4) {
  112. font-family: inherit;
  113. }
  114. }
  115. }
  116. main.gov {
  117. form input#planet {
  118. margin-bottom: 1em;
  119. }
  120. div#gov {
  121. margin-top: 2em;
  122. table.options {
  123. td {
  124. padding: 0 6px;
  125. &:first-child {
  126. width: 320px;
  127. font-size: 16px;
  128. }
  129. }
  130. }
  131. }
  132. .positive {
  133. color: #0aa;
  134. }
  135. .negative {
  136. color: #f80;
  137. }
  138. }
  139. main.kit {
  140. width: 1200px;
  141. img {
  142. display: block;
  143. max-width: 100%;
  144. margin: 0.5em auto;
  145. }
  146. }
  147. main.mat {
  148. width: 90%;
  149. min-width: 500px;
  150. #charts {
  151. display: flex;
  152. flex-wrap: wrap;
  153. justify-content: space-between;
  154. row-gap: 2em;
  155. margin-top: 2em;
  156. svg {
  157. display: inline-block;
  158. }
  159. div.cxob {
  160. max-height: 10em;
  161. overflow-y: scroll;
  162. font-size: 12px;
  163. tr.sell {
  164. color: #f80;
  165. }
  166. tr.buy {
  167. color: #0aa;
  168. }
  169. }
  170. div.recipe {
  171. margin-bottom: 1em;
  172. span.building {
  173. display: inline-flex;
  174. height: 50px;
  175. width: 50px;
  176. align-items: center;
  177. justify-content: center;
  178. background-color: #222;
  179. border: 1px solid #555;
  180. }
  181. }
  182. }
  183. }
  184. main.ledger {
  185. textarea#ledger {
  186. margin-top: 2em;
  187. width: 100%;
  188. height: 70vh;
  189. }
  190. }
  191. main.plan {
  192. form {
  193. input, select {
  194. margin-bottom: 0.5em;
  195. }
  196. }
  197. table {
  198. td:nth-child(1) {
  199. text-align: inherit;
  200. }
  201. }
  202. }
  203. main.production {
  204. .analysis-node {
  205. padding-left: 40px;
  206. }
  207. .analysis-node.root {
  208. margin-top: 2em;
  209. padding-left: 0;
  210. }
  211. div.building-row > div {
  212. display: inline-block;
  213. margin-left: 10px;
  214. }
  215. }
  216. #loader {
  217. display: none;
  218. width: 48px;
  219. height: 48px;
  220. margin: 0 auto;
  221. border-radius: 50%;
  222. position: relative;
  223. border: 3px solid;
  224. border-color: #ccc #ccc transparent transparent;
  225. animation: rotation 1s linear infinite;
  226. }
  227. #loader::after {
  228. content: '';
  229. position: absolute;
  230. left: 0;
  231. right: 0;
  232. top: 0;
  233. bottom: 0;
  234. margin: auto;
  235. border: 3px solid;
  236. border-color: transparent transparent #c8c #c8c;
  237. width: 24px;
  238. height: 24px;
  239. border-radius: 50%;
  240. animation: rotationBack 0.5s linear infinite;
  241. transform-origin: center center;
  242. }
  243. @keyframes rotation {
  244. 0% {
  245. transform: rotate(0deg);
  246. }
  247. 100% {
  248. transform: rotate(360deg);
  249. }
  250. }
  251. @keyframes rotationBack {
  252. 0% {
  253. transform: rotate(0deg);
  254. }
  255. 100% {
  256. transform: rotate(-360deg);
  257. }
  258. }
  259. *[data-tooltip] {
  260. text-decoration: underline dashed;
  261. cursor: help;
  262. }
  263. [popover="hint"] {
  264. white-space: pre-wrap;
  265. inset: unset;
  266. max-width: 400px;
  267. padding: 0.5em 0.7em;
  268. color: inherit;
  269. background-color: #222;
  270. border: none;
  271. opacity: 0.9;
  272. }
  273. @media (max-width: 600px) {
  274. main {
  275. padding: 5px;
  276. }
  277. }