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.
 
 
 
 

458 lignes
6.9 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-disabled {
  122. background-color: #111;
  123. color: #999;
  124. }
  125. .building-button-name {
  126. font-size: 24px;
  127. position: absolute;
  128. left: 10%;
  129. top: 15%;
  130. user-select: none;
  131. -moz-user-select: none;
  132. }
  133. .building-button-cost {
  134. font-size: 18px;
  135. position: absolute;
  136. left: 10%;
  137. bottom: 15%;
  138. }
  139. .building-button-cost-invalid {
  140. color: #f22;
  141. }
  142. .building-button-cost-valid {
  143. color: #1a1;
  144. }
  145. #buildings-area:hover > #buildings:hover ~ .building-button:not(:hover) {
  146. opacity: 1;
  147. }
  148. #buildings-area:hover > .building-button:hover {
  149. opacity: 1;
  150. }
  151. #buildings-area:hover > .building-button:not(:hover) {
  152. opacity: 0.6;
  153. }
  154. .building-button-disabled:hover {
  155. background-color: #111 !important;
  156. }
  157. .building-button:active {
  158. border-color: #333;
  159. background-color: #111;
  160. }
  161. .building-button-disabled:active {
  162. background-color: #111 !important;
  163. border-color: #666 !important;
  164. }
  165. #upgrades-area {
  166. position: absolute;
  167. width: 20%;
  168. right: 35%;
  169. top: 10%;
  170. }
  171. @media (max-aspect-ratio: 1/1) {
  172. #upgrades-area {
  173. position: absolute;
  174. left: 50%;
  175. height: 35%;
  176. width: 50%;
  177. }
  178. }
  179. .title {
  180. font-size: 48px;
  181. height: 10%;
  182. text-align: center;
  183. }
  184. #upgrades-list {
  185. display: flex;
  186. flex-wrap: wrap;
  187. height: 100%;
  188. overflow-x: hidden;
  189. overflow-y: scroll;
  190. }
  191. #upgrade-tooltip {
  192. position: absolute;
  193. width: 200px;
  194. background: #333;
  195. display: none;
  196. z-index: 1;
  197. left: 0px;
  198. top: 0px;
  199. }
  200. #upgrade-tooltip-name {
  201. font-size: 24px;
  202. color: #eee;
  203. margin: 10px;
  204. top: 50%;
  205. left: 10px;
  206. }
  207. #upgrade-tooltip-desc {
  208. font-size: 14px;
  209. color: #bbb;
  210. margin: 10px;
  211. }
  212. #upgrade-tooltip-effect {
  213. font-size: 20px;
  214. margin: 10px;
  215. }
  216. #upgrade-tooltip-cost {
  217. margin: 10px;
  218. }
  219. #upgrade-tooltip-prereqs {
  220. margin: 10px;
  221. }
  222. .cost-met {
  223. color: #0f0;
  224. }
  225. .cost-unmet {
  226. color: #f00;
  227. }
  228. .upgrade-button {
  229. width: 100px;
  230. height: 100px;
  231. margin: 10px;
  232. display: block;
  233. background-color: #444;
  234. transition: 0.2s;
  235. }
  236. .upgrade-button:hover {
  237. transform: scale(1.25, 1.25);
  238. }
  239. @media (max-aspect-ratio: 1/1) {
  240. .upgrade-button {
  241. width: 13vw;
  242. height: 13vw;
  243. }
  244. }
  245. .upgrade-button-inactive {
  246. background-color: #222 !important;
  247. color: #999 !important;
  248. }
  249. .upgrade-button-name {
  250. pointer-events: none;
  251. position: relative;
  252. text-align: center;
  253. width: 100px;
  254. height: 100px;
  255. top: 50%;
  256. bottom: 50%;
  257. right: 50%;
  258. left: 50%;
  259. margin: -25px -50px;
  260. }
  261. .click-popup-food {
  262. pointer-events: none;
  263. transform-origin: -100% 50%;
  264. text-align: center;
  265. position: fixed;
  266. animation: click-popup-food 2s linear;
  267. animation-fill-mode: both;
  268. font-size: 36px;
  269. --target: -200px;
  270. }
  271. .click-popup-gulp {
  272. pointer-events: none;
  273. transform-origin: -100% 50%;
  274. text-align: center;
  275. position: fixed;
  276. animation: click-popup-gulp 2s linear;
  277. animation-fill-mode: both;
  278. font-size: 36px;
  279. --target: 200px;
  280. }
  281. .click-popup-upgrade {
  282. pointer-events: none;
  283. transform-origin: -50% 50%;
  284. text-align: center;
  285. position: fixed;
  286. animation: click-popup-upgrade 2s linear;
  287. animation-fill-mode: both;
  288. font-size: 36px;
  289. --target: -200px;
  290. }
  291. .click-popup-info {
  292. pointer-events: none;
  293. text-align: center;
  294. position: fixed;
  295. transform-origin: 0% 0%;
  296. animation: click-popup-info 2s linear;
  297. animation-fill-mode: both;
  298. font-size: 36px;
  299. --target: -200px;
  300. }
  301. @keyframes click-popup-food {
  302. 0% {
  303. transform: translate(0px, 0px) scale(1, 1);
  304. opacity: 1;
  305. }
  306. 100% {
  307. transform: translate(var(--target), -200px) scale(0.5, 0.5);
  308. opacity: 0;
  309. }
  310. }
  311. @keyframes click-popup-gulp {
  312. 0% {
  313. transform: translate(0px, 0px) scale(1, 1);
  314. opacity: 1;
  315. }
  316. 100% {
  317. transform: translate(var(--target), 200px) scale(0.5, 0.5);
  318. opacity: 0;
  319. }
  320. }
  321. @keyframes click-popup-upgrade {
  322. 0% {
  323. transform: translate(0px, 0px) scale(1, 1);
  324. opacity: 1;
  325. }
  326. 100% {
  327. transform: translate(var(--target), 200px) scale(0.5, 0.5);
  328. opacity: 0;
  329. }
  330. }
  331. @keyframes click-popup-info {
  332. 0% {
  333. transform: translate(0px, 0px) scale(1, 1);
  334. opacity: 1;
  335. }
  336. 100% {
  337. transform: translate(var(--target), 200px) scale(0.5, 0.5);
  338. opacity: 0;
  339. }
  340. }
  341. div::-webkit-scrollbar {
  342. width: 3px;
  343. height: 2px;
  344. }
  345. div::-webkit-scrollbar-button {
  346. width: 0px;
  347. height: 0px;
  348. }
  349. div::-webkit-scrollbar-thumb {
  350. background: #e1e1e1;
  351. border: 0px none #ffffff;
  352. border-radius: 50px;
  353. }
  354. div::-webkit-scrollbar-thumb:hover {
  355. background: #ffffff;
  356. }
  357. div::-webkit-scrollbar-thumb:active {
  358. background: #000000;
  359. }
  360. div::-webkit-scrollbar-track {
  361. background: #666666;
  362. border: 0px none #ffffff;
  363. border-radius: 50px;
  364. }
  365. div::-webkit-scrollbar-track:hover {
  366. background: #666666;
  367. }
  368. div::-webkit-scrollbar-track:active {
  369. background: #333333;
  370. }
  371. div::-webkit-scrollbar-corner {
  372. background: transparent;
  373. }
  374. .switcher-button {
  375. position: relative;
  376. display: block;
  377. background-color: #222;
  378. color: #eee;
  379. border: 5px;
  380. border-color: #666;
  381. border-style: solid;
  382. user-select: none;
  383. }
  384. .switcher-button-disabled {
  385. background-color: #111;
  386. color: #999;
  387. }
  388. .switcher-button:hover {
  389. border-color: #777;
  390. background-color: #222;
  391. }
  392. .switcher-button:active {
  393. border-color: #333;
  394. background-color: #111;
  395. }