cookie clicker but bigger
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 

472 lignes
7.1 KiB

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