cookie clicker but bigger
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 

274 wiersze
3.7 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. background-color: #322;
  30. position: absolute;
  31. width: 100%;
  32. height: 10%;
  33. top: 0%;
  34. left: 0%;
  35. text-align: center;
  36. margin: auto;
  37. }
  38. #resources-area {
  39. position: absolute;
  40. text-align: center;
  41. width: 35%;
  42. left: 0%;
  43. top: 10%;
  44. height: 90%;
  45. margin: auto;
  46. font-size: 36px;
  47. }
  48. .resource-quantity {
  49. font-size: 30px;
  50. }
  51. .resource-rate {
  52. font-size: 18px;
  53. color: #bbb;
  54. }
  55. #buildings-area {
  56. position: absolute;
  57. width: 20%;
  58. right: 5%;
  59. top: 10%;
  60. height: 90%;
  61. overflow-x: hidden;
  62. overflow-y: scroll;
  63. }
  64. #building-tooltip {
  65. position: fixed;
  66. width: 400px;
  67. background: #333;
  68. display: none;
  69. z-index: 1;
  70. left: 0px;
  71. top: 0px;
  72. }
  73. #building-tooltip-name {
  74. font-size: 24px;
  75. color: #eee;
  76. margin: 10px;
  77. top: 10px;
  78. left: 10px;
  79. }
  80. #building-tooltip-desc {
  81. font-size: 18px;
  82. color: #bbb;
  83. margin: 10px;
  84. left: 10px;
  85. }
  86. #building-tooltip-cost {
  87. position: absolute;
  88. top: 10px;
  89. right: 10px;
  90. font-size: 20px;
  91. }
  92. #building-tooltip-prod {
  93. font-size: 14px;
  94. color: #ccc;
  95. margin: 10px;
  96. }
  97. .building-button {
  98. position: relative;
  99. display: block;
  100. width: 90%;
  101. height: 75px;
  102. background-color: #222;
  103. color: #eee;
  104. border: 5px;
  105. border-color: #666;
  106. border-style: solid;
  107. user-select: none;
  108. }
  109. .building-button-disabled {
  110. background-color: #111;
  111. color: #999;
  112. }
  113. .building-button-name {
  114. font-size: 24px;
  115. position: absolute;
  116. left: 10%;
  117. top: 15%;
  118. user-select: none;
  119. -moz-user-select: none;
  120. }
  121. .building-button-cost {
  122. font-size: 18px;
  123. position: absolute;
  124. left: 10%;
  125. bottom: 15%;
  126. }
  127. .building-button-cost-invalid {
  128. color: #f22;
  129. }
  130. .building-button-cost-valid {
  131. color: #1a1;
  132. }
  133. .building-button:hover {
  134. background-color: #333;
  135. }
  136. .building-button-disabled:hover {
  137. background-color: #111 !important;
  138. }
  139. .building-button:active {
  140. border-color: #333;
  141. background-color: #111;
  142. }
  143. .building-button-disabled:active {
  144. background-color: #111 !important;
  145. border-color: #666 !important;
  146. }
  147. #upgrades-area {
  148. position: absolute;
  149. width: 20%;
  150. right: 35%;
  151. top: 10%;
  152. }
  153. .title {
  154. font-size: 48px;
  155. height: 10%;
  156. text-align: center;
  157. }
  158. #upgrades-list {
  159. display: flex;
  160. flex-wrap: wrap;
  161. }
  162. #upgrade-tooltip {
  163. position: absolute;
  164. width: 200px;
  165. background: #333;
  166. display: none;
  167. z-index: 1;
  168. left: 0px;
  169. top: 0px;
  170. }
  171. #upgrade-tooltip-name {
  172. font-size: 24px;
  173. color: #eee;
  174. margin: 10px;
  175. top: 50%;
  176. left: 10px;
  177. }
  178. #upgrade-tooltip-desc {
  179. font-size: 14px;
  180. color: #bbb;
  181. margin: 10px;
  182. }
  183. #upgrade-tooltip-effect {
  184. font-size: 20px;
  185. margin: 10px;
  186. }
  187. #upgrade-tooltip-cost {
  188. margin: 10px;
  189. }
  190. #upgrade-tooltip-prereqs {
  191. margin: 10px;
  192. }
  193. .cost-met {
  194. color: #0f0;
  195. }
  196. .cost-unmet {
  197. color: #f00;
  198. }
  199. .upgrade-button {
  200. width: 100px;
  201. height: 100px;
  202. display: block;
  203. background-color: #444;
  204. }
  205. .upgrade-button-inactive {
  206. background-color: #222 !important;
  207. color: #999 !important;
  208. }
  209. .upgrade-button-name {
  210. position: relative;
  211. text-align: center;
  212. width: 100px;
  213. height: 100px;
  214. top: 50%;
  215. bottom: 50%;
  216. right: 50%;
  217. left: 50%;
  218. margin: -25px -50px;
  219. }
  220. .click-popup {
  221. position: fixed;
  222. animation: click-popup 2s linear;
  223. }
  224. @keyframes click-popup {
  225. 0% {
  226. transform: translate(0px, 0px);
  227. opacity: 1;
  228. }
  229. 100% {
  230. transform: translate(0px, -200px);
  231. opacity: 0;
  232. }
  233. }