style.css 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  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.coop {
  103. form {
  104. select#planet, select#users, input#run, div#cargo {
  105. display: none;
  106. margin-top: 0.5em;
  107. }
  108. input#weight, input#volume {
  109. width: 9ch;
  110. }
  111. }
  112. }
  113. main.corps {
  114. table {
  115. td:nth-child(1),
  116. td:nth-child(2),
  117. td:nth-child(4) {
  118. padding: 0 16px;
  119. text-align: inherit;
  120. }
  121. td:nth-child(2),
  122. td:nth-child(4) {
  123. font-family: inherit;
  124. }
  125. }
  126. }
  127. main.gov {
  128. form input#planet {
  129. margin-bottom: 1em;
  130. }
  131. div#gov {
  132. margin-top: 2em;
  133. table.options {
  134. td {
  135. padding: 0 6px;
  136. &:first-child {
  137. width: 320px;
  138. font-size: 16px;
  139. }
  140. }
  141. }
  142. }
  143. .positive {
  144. color: #0aa;
  145. }
  146. .negative {
  147. color: #f80;
  148. }
  149. }
  150. main.junk {
  151. form {
  152. label {
  153. display: block;
  154. margin-bottom: 0.5em;
  155. }
  156. }
  157. }
  158. main.kit {
  159. width: 1200px;
  160. table {
  161. width: auto;
  162. th, td {
  163. padding: 0 8px;
  164. }
  165. }
  166. img {
  167. display: block;
  168. max-width: 100%;
  169. margin: 0.5em auto;
  170. }
  171. }
  172. main.mat {
  173. width: 90%;
  174. min-width: 500px;
  175. #charts {
  176. display: flex;
  177. flex-wrap: wrap;
  178. justify-content: space-between;
  179. row-gap: 2em;
  180. margin-top: 2em;
  181. svg {
  182. display: inline-block;
  183. }
  184. div.cxob {
  185. max-height: 10em;
  186. overflow-y: scroll;
  187. font-size: 12px;
  188. tr.sell {
  189. color: #f80;
  190. }
  191. tr.buy {
  192. color: #0aa;
  193. }
  194. }
  195. div.recipe {
  196. margin-bottom: 1em;
  197. span.building {
  198. display: inline-flex;
  199. height: 50px;
  200. width: 50px;
  201. align-items: center;
  202. justify-content: center;
  203. background-color: #222;
  204. border: 1px solid #555;
  205. }
  206. }
  207. }
  208. }
  209. main.ledger, main.newbies {
  210. textarea {
  211. margin-top: 2em;
  212. width: 100%;
  213. height: 70vh;
  214. }
  215. }
  216. main.plan {
  217. form {
  218. input, select {
  219. margin-bottom: 0.5em;
  220. }
  221. }
  222. table {
  223. td:nth-child(1) {
  224. text-align: inherit;
  225. }
  226. }
  227. }
  228. main.production {
  229. .analysis-node {
  230. padding-left: 40px;
  231. }
  232. .analysis-node.root {
  233. margin-top: 2em;
  234. padding-left: 0;
  235. }
  236. div.building-row > div {
  237. display: inline-block;
  238. margin-left: 10px;
  239. }
  240. }
  241. main.rat {
  242. #cols {
  243. display: flex;
  244. justify-content: space-evenly;
  245. .col {
  246. .mat {
  247. width: 60px;
  248. height: 60px;
  249. display: flex;
  250. justify-content: space-evenly;
  251. align-items: center;
  252. margin-bottom: 1em;
  253. background-color: #242;
  254. }
  255. }
  256. }
  257. }
  258. #loader {
  259. display: none;
  260. width: 48px;
  261. height: 48px;
  262. margin: 0 auto;
  263. border-radius: 50%;
  264. position: relative;
  265. border: 3px solid;
  266. border-color: #ccc #ccc transparent transparent;
  267. animation: rotation 1s linear infinite;
  268. }
  269. #loader::after {
  270. content: '';
  271. position: absolute;
  272. left: 0;
  273. right: 0;
  274. top: 0;
  275. bottom: 0;
  276. margin: auto;
  277. border: 3px solid;
  278. border-color: transparent transparent #c8c #c8c;
  279. width: 24px;
  280. height: 24px;
  281. border-radius: 50%;
  282. animation: rotationBack 0.5s linear infinite;
  283. transform-origin: center center;
  284. }
  285. @keyframes rotation {
  286. 0% {
  287. transform: rotate(0deg);
  288. }
  289. 100% {
  290. transform: rotate(360deg);
  291. }
  292. }
  293. @keyframes rotationBack {
  294. 0% {
  295. transform: rotate(0deg);
  296. }
  297. 100% {
  298. transform: rotate(-360deg);
  299. }
  300. }
  301. *[data-tooltip] {
  302. text-decoration: underline dashed;
  303. cursor: help;
  304. }
  305. [popover="hint"] {
  306. white-space: pre-wrap;
  307. inset: unset;
  308. max-width: 400px;
  309. padding: 0.5em 0.7em;
  310. color: inherit;
  311. background-color: #222;
  312. border: none;
  313. opacity: 0.9;
  314. }
  315. @media (max-width: 600px) {
  316. main {
  317. padding: 5px;
  318. }
  319. }