cookie clicker but bigger
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 

241 lines
3.3 KiB

  1. body {
  2. font-family: Sans-Serif;
  3. user-select: none;
  4. -moz-user-select: none;
  5. }
  6. body.dark {
  7. background: #111;
  8. color: #eee;
  9. }
  10. .hidden {
  11. display: none !important;
  12. }
  13. #tasty-micro {
  14. color: #ddd;
  15. background-color: #211;
  16. width: 300px;
  17. height: 200px;
  18. position: fixed;
  19. left: 15%;
  20. top: 50%;
  21. bottom: 50%;
  22. margin: auto;
  23. font-size: 60px;
  24. }
  25. #top-bar {
  26. background-color: #322;
  27. position: absolute;
  28. width: 100%;
  29. height: 10%;
  30. top: 0%;
  31. left: 0%;
  32. text-align: center;
  33. margin: auto;
  34. }
  35. #resources-area {
  36. position: absolute;
  37. text-align: center;
  38. width: 20%;
  39. left: 0%;
  40. top: 10%;
  41. height: 90%;
  42. margin: auto;
  43. }
  44. #buildings-area {
  45. position: absolute;
  46. width: 20%;
  47. right: 5%;
  48. top: 10%;
  49. height: 90%;
  50. overflow-x: hidden;
  51. overflow-y: scroll;
  52. }
  53. #building-tooltip {
  54. position: fixed;
  55. width: 400px;
  56. background: #333;
  57. display: none;
  58. z-index: 1;
  59. left: 0px;
  60. top: 0px;
  61. }
  62. #building-tooltip-name {
  63. font-size: 24px;
  64. color: #eee;
  65. margin: 10px;
  66. top: 10px;
  67. left: 10px;
  68. }
  69. #building-tooltip-desc {
  70. font-size: 18px;
  71. color: #bbb;
  72. margin: 10px;
  73. left: 10px;
  74. }
  75. #building-tooltip-cost {
  76. position: absolute;
  77. top: 10px;
  78. right: 10px;
  79. font-size: 20px;
  80. }
  81. #building-tooltip-prod {
  82. font-size: 14px;
  83. color: #ccc;
  84. margin: 10px;
  85. }
  86. .building-button {
  87. position: relative;
  88. display: block;
  89. width: 90%;
  90. height: 75px;
  91. background-color: #222;
  92. color: #eee;
  93. border: 5px;
  94. border-color: #666;
  95. border-style: solid;
  96. user-select: none;
  97. }
  98. .building-button-disabled {
  99. background-color: #111;
  100. color: #999;
  101. }
  102. .building-button .building-button-name {
  103. font-size: 24px;
  104. position: absolute;
  105. left: 10%;
  106. top: 15%;
  107. user-select: none;
  108. -moz-user-select: none;
  109. }
  110. .building-button .building-button-cost {
  111. font-size: 18px;
  112. position: absolute;
  113. left: 10%;
  114. bottom: 15%;
  115. }
  116. .building-button:hover {
  117. background-color: #333;
  118. }
  119. .building-button-disabled:hover {
  120. background-color: #111 !important;
  121. }
  122. .building-button:active {
  123. border-color: #333;
  124. background-color: #111;
  125. }
  126. .building-button-disabled:active {
  127. background-color: #111 !important;
  128. border-color: #666 !important;
  129. }
  130. #upgrades-area {
  131. position: absolute;
  132. width: 20%;
  133. right: 35%;
  134. top: 10%;
  135. }
  136. .title {
  137. font-size: 48px;
  138. height: 10%;
  139. text-align: center;
  140. }
  141. #upgrades-list {
  142. display: flex;
  143. flex-wrap: wrap;
  144. }
  145. #upgrade-tooltip {
  146. position: absolute;
  147. width: 200px;
  148. padding-bottom: 50px;
  149. background: #333;
  150. display: none;
  151. z-index: 1;
  152. left: 0px;
  153. top: 0px;
  154. }
  155. #upgrade-tooltip-name {
  156. font-size: 24px;
  157. color: #eee;
  158. margin: 10px;
  159. top: 50%;
  160. left: 10px;
  161. }
  162. #upgrade-tooltip-desc {
  163. font-size: 14px;
  164. color: #bbb;
  165. margin: 10px;
  166. }
  167. #upgrade-tooltip-effect {
  168. font-size: 20px;
  169. margin: 10px;
  170. }
  171. #upgrade-tooltip-cost {
  172. position: absolute;
  173. right: 10px;
  174. bottom: 10px;
  175. }
  176. #upgrade-tooltip-prereqs {
  177. position: absolute;
  178. left: 10px;
  179. bottom: 10px;
  180. }
  181. .cost-met {
  182. color: #0f0;
  183. }
  184. .cost-unmet {
  185. color: #f00;
  186. }
  187. .upgrade-button {
  188. width: 100px;
  189. height: 100px;
  190. display: block;
  191. background-color: #444;
  192. }
  193. .upgrade-button-inactive {
  194. background-color: #222 !important;
  195. color: #999 !important;
  196. }
  197. .upgrade-button-name {
  198. position: relative;
  199. text-align: center;
  200. width: 100px;
  201. height: 100px;
  202. top: 50%;
  203. bottom: 50%;
  204. right: 50%;
  205. left: 50%;
  206. margin: -25px -50px;
  207. }