cookie clicker but bigger
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

490 行
7.4 KiB

  1. body {
  2. font-family: Sans-Serif;
  3. user-select: none;
  4. -moz-user-select: none;
  5. touch-action: manipulation;
  6. overflow: hidden;
  7. }
  8. body.dark {
  9. background: #111;
  10. color: #eee;
  11. }
  12. .hidden {
  13. display: none !important;
  14. }
  15. button {
  16. background-color: #444;
  17. color: #eee;
  18. }
  19. #tasty-micro {
  20. color: #ddd;
  21. background-color: #211;
  22. width: 300px;
  23. height: 200px;
  24. position: relative;
  25. top: 30px;
  26. margin: auto;
  27. font-size: 60px;
  28. }
  29. #top-bar {
  30. font-size: 36px;
  31. background-color: #322;
  32. position: absolute;
  33. width: 100%;
  34. height: 10%;
  35. top: 0%;
  36. left: 0%;
  37. text-align: center;
  38. margin: auto;
  39. }
  40. #top-bar > button {
  41. font-size: 36px;
  42. }
  43. #resources-area {
  44. position: absolute;
  45. text-align: center;
  46. width: 35%;
  47. left: 0%;
  48. top: 10%;
  49. height: 90%;
  50. margin: auto;
  51. font-size: 36px;
  52. }
  53. .resource-quantity {
  54. font-size: 30px;
  55. }
  56. .resource-rate {
  57. font-size: 18px;
  58. color: #bbb;
  59. }
  60. #buildings-area {
  61. position: absolute;
  62. width: 20%;
  63. right: 5%;
  64. top: 10%;
  65. height: 90%;
  66. max-height: 80vh;
  67. padding-bottom: 10px;
  68. overflow-x: hidden;
  69. overflow-y: scroll;
  70. }
  71. @media (max-aspect-ratio: 1/1) {
  72. #buildings-area {
  73. top: 50%;
  74. left: 50%;
  75. width: 50%;
  76. height: 45%;
  77. max-height: 40vh;
  78. }
  79. }
  80. #building-tooltip {
  81. position: fixed;
  82. width: 400px;
  83. background: #333;
  84. display: none;
  85. z-index: 1;
  86. left: 0px;
  87. top: 0px;
  88. }
  89. #building-tooltip-name {
  90. font-size: 24px;
  91. color: #eee;
  92. margin: 10px;
  93. top: 10px;
  94. left: 10px;
  95. }
  96. #building-tooltip-desc {
  97. font-size: 18px;
  98. color: #bbb;
  99. margin: 10px;
  100. left: 10px;
  101. }
  102. #building-tooltip-cost {
  103. position: absolute;
  104. top: 10px;
  105. right: 10px;
  106. font-size: 20px;
  107. }
  108. #building-tooltip-prod {
  109. font-size: 14px;
  110. color: #ccc;
  111. margin: 10px;
  112. }
  113. .building-button {
  114. position: relative;
  115. display: block;
  116. width: 90%;
  117. height: 75px;
  118. background-color: #222;
  119. color: #eee;
  120. border: 5px;
  121. border-color: #666;
  122. border-style: solid;
  123. user-select: none;;
  124. }
  125. .building-button > .fas {
  126. text-align: center;
  127. width: 100%;
  128. height: 100%;
  129. left: 25%;
  130. transform: translate(0, 5px);
  131. position: absolute;
  132. font-size: 60px;
  133. }
  134. .building-button-disabled {
  135. background-color: #111;
  136. color: #999;
  137. }
  138. .building-button-name {
  139. font-size: 24px;
  140. position: absolute;
  141. left: 10%;
  142. top: 15%;
  143. user-select: none;
  144. -moz-user-select: none;
  145. }
  146. .building-button-cost {
  147. font-size: 18px;
  148. position: absolute;
  149. left: 10%;
  150. bottom: 15%;
  151. }
  152. .building-button-cost-invalid {
  153. color: #f22;
  154. }
  155. .building-button-cost-valid {
  156. color: #1a1;
  157. }
  158. #buildings-area:hover > #buildings:hover ~ .building-button:not(:hover) {
  159. opacity: 1;
  160. }
  161. #buildings-area:hover > .building-button:hover {
  162. opacity: 1;
  163. }
  164. #buildings-area:hover > .building-button:not(:hover) {
  165. opacity: 0.6;
  166. }
  167. .building-button-disabled:hover {
  168. background-color: #111 !important;
  169. }
  170. .building-button:active {
  171. border-color: #333;
  172. background-color: #111;
  173. }
  174. .building-button-disabled:active {
  175. background-color: #111 !important;
  176. border-color: #666 !important;
  177. }
  178. #upgrades-area {
  179. position: absolute;
  180. width: 20%;
  181. right: 35%;
  182. top: 10%;
  183. }
  184. @media (max-aspect-ratio: 1/1) {
  185. #upgrades-area {
  186. position: absolute;
  187. left: 50%;
  188. height: 35%;
  189. width: 50%;
  190. }
  191. #upgrades-list {
  192. max-height: 25vh !important;
  193. }
  194. }
  195. .title {
  196. font-size: 48px;
  197. height: 10%;
  198. text-align: center;
  199. }
  200. #upgrades-list {
  201. display: flex;
  202. flex-wrap: wrap;
  203. max-height: 70vh;
  204. padding-bottom: 75px;
  205. overflow-x: hidden;
  206. overflow-y: scroll;
  207. }
  208. #upgrade-tooltip {
  209. position: absolute;
  210. width: 200px;
  211. background: #333;
  212. display: none;
  213. z-index: 1;
  214. left: 0px;
  215. top: 0px;
  216. }
  217. #upgrade-tooltip-name {
  218. font-size: 24px;
  219. color: #eee;
  220. margin: 10px;
  221. top: 50%;
  222. left: 10px;
  223. }
  224. #upgrade-tooltip-desc {
  225. font-size: 14px;
  226. color: #bbb;
  227. margin: 10px;
  228. }
  229. #upgrade-tooltip-effect {
  230. font-size: 20px;
  231. margin: 10px;
  232. }
  233. #upgrade-tooltip-cost {
  234. margin: 10px;
  235. }
  236. #upgrade-tooltip-prereqs {
  237. margin: 10px;
  238. }
  239. .cost-met {
  240. color: #0f0;
  241. }
  242. .cost-unmet {
  243. color: #f00;
  244. }
  245. .upgrade-button {
  246. width: 100px;
  247. height: 100px;
  248. margin: 10px;
  249. display: block;
  250. background-color: #444;
  251. transition: 0.2s;
  252. }
  253. .upgrade-button > .fas {
  254. width: 100px;
  255. height: 100px;
  256. font-size: 75px;
  257. transform: translate(12.5%, -37.5%);
  258. opacity: 0.5;
  259. }
  260. .upgrade-button:hover {
  261. transform: scale(1.25, 1.25);
  262. }
  263. @media (max-aspect-ratio: 1/1) {
  264. .upgrade-button {
  265. width: 13vw;
  266. height: 13vw;
  267. }
  268. .upgrade-button > .fas {
  269. font-size: 10vw;
  270. }
  271. }
  272. .upgrade-button-inactive {
  273. background-color: #222 !important;
  274. color: #999 !important;
  275. }
  276. .upgrade-button-name {
  277. pointer-events: none;
  278. position: relative;
  279. text-align: center;
  280. width: 100px;
  281. height: 100px;
  282. top: 50%;
  283. bottom: 50%;
  284. right: 50%;
  285. left: 50%;
  286. margin: -25px -50px;
  287. z-index: 1;
  288. font-weight: bold;
  289. }
  290. .click-popup-food {
  291. pointer-events: none;
  292. transform-origin: -100% 50%;
  293. text-align: center;
  294. position: fixed;
  295. animation: click-popup-food 2s linear;
  296. animation-fill-mode: both;
  297. font-size: 36px;
  298. --target: -200px;
  299. }
  300. .click-popup-gulp {
  301. pointer-events: none;
  302. transform-origin: -100% 50%;
  303. text-align: center;
  304. position: fixed;
  305. animation: click-popup-gulp 2s linear;
  306. animation-fill-mode: both;
  307. font-size: 36px;
  308. --target: 200px;
  309. }
  310. .click-popup-upgrade {
  311. pointer-events: none;
  312. transform-origin: -50% 50%;
  313. text-align: center;
  314. position: fixed;
  315. animation: click-popup-upgrade 2s linear;
  316. animation-fill-mode: both;
  317. font-size: 36px;
  318. --target: -200px;
  319. }
  320. .click-popup-info {
  321. pointer-events: none;
  322. text-align: center;
  323. position: fixed;
  324. transform-origin: 0% 0%;
  325. animation: click-popup-info 2s linear;
  326. animation-fill-mode: both;
  327. font-size: 36px;
  328. --target: -200px;
  329. }
  330. @keyframes click-popup-food {
  331. 0% {
  332. transform: translate(0px, 0px) scale(1, 1);
  333. opacity: 1;
  334. }
  335. 100% {
  336. transform: translate(var(--target), -200px) scale(0.5, 0.5);
  337. opacity: 0;
  338. }
  339. }
  340. @keyframes click-popup-gulp {
  341. 0% {
  342. transform: translate(0px, 0px) scale(1, 1);
  343. opacity: 1;
  344. }
  345. 100% {
  346. transform: translate(var(--target), 200px) scale(0.5, 0.5);
  347. opacity: 0;
  348. }
  349. }
  350. @keyframes click-popup-upgrade {
  351. 0% {
  352. transform: translate(0px, 0px) scale(1, 1);
  353. opacity: 1;
  354. }
  355. 100% {
  356. transform: translate(var(--target), 200px) scale(0.5, 0.5);
  357. opacity: 0;
  358. }
  359. }
  360. @keyframes click-popup-info {
  361. 0% {
  362. transform: translate(0px, 0px) scale(1, 1);
  363. opacity: 1;
  364. }
  365. 100% {
  366. transform: translate(var(--target), 200px) scale(0.5, 0.5);
  367. opacity: 0;
  368. }
  369. }
  370. div::-webkit-scrollbar {
  371. width: 3px;
  372. height: 2px;
  373. }
  374. div::-webkit-scrollbar-button {
  375. width: 0px;
  376. height: 0px;
  377. }
  378. div::-webkit-scrollbar-thumb {
  379. background: #e1e1e1;
  380. border: 0px none #ffffff;
  381. border-radius: 50px;
  382. }
  383. div::-webkit-scrollbar-thumb:hover {
  384. background: #ffffff;
  385. }
  386. div::-webkit-scrollbar-thumb:active {
  387. background: #000000;
  388. }
  389. div::-webkit-scrollbar-track {
  390. background: #00000000;
  391. border: 0px none #ffffff;
  392. border-radius: 50px;
  393. }
  394. div::-webkit-scrollbar-track:hover {
  395. background: #666666;
  396. }
  397. div::-webkit-scrollbar-track:active {
  398. background: #333333;
  399. }
  400. div::-webkit-scrollbar-corner {
  401. background: transparent;
  402. }
  403. .switcher-button {
  404. position: relative;
  405. display: block;
  406. background-color: #222;
  407. color: #eee;
  408. border: 5px;
  409. border-color: #666;
  410. border-style: solid;
  411. user-select: none;
  412. }
  413. .switcher-button-disabled {
  414. background-color: #111;
  415. color: #999;
  416. }
  417. .switcher-button:hover {
  418. border-color: #777;
  419. background-color: #222;
  420. }
  421. .switcher-button:active {
  422. border-color: #333;
  423. background-color: #111;
  424. }