Simanalix343

CC: CSS

Apr 26th, 2020
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.17 KB | None | 0 0
  1. //CSS for Candy Cantagion
  2. .box
  3. {
  4. text-align:center;
  5. padding:0px;
  6. box-shadow:none;
  7. }
  8.  
  9. .thing,.box-header,.box-footer,.box-bit
  10. {
  11. background:#faa;
  12. box-shadow:0px 0px 4px rgba(0,0,0,0.2),1px 1px 2px rgba(0,0,0,0.5),0px 0px 4px rgba(255,255,255,0.5) inset;
  13. }
  14. .box-bit{border-radius:20px;}
  15.  
  16. .box-header
  17. {
  18. border-bottom-left-radius:20px;
  19. border-bottom-right-radius:20px;
  20. margin-bottom:4px;
  21. }
  22. .box-footer
  23. {
  24. border-top-left-radius:20px;
  25. border-top-right-radius:20px;
  26. margin-top:4px;
  27. }
  28. #bulkDisplay{margin:-11px 24px 4px 24px;}
  29. .thing
  30. {
  31. display:inline-block;
  32. padding:0px;
  33. margin:2px;
  34. cursor:pointer;
  35. }
  36. .thing:hover,.thing.lit
  37. {
  38. background:#f77;
  39. }
  40. .thing.cantAfford
  41. {
  42. opacity:0.65;
  43. }
  44. .upgrade.cantAfford
  45. {
  46. box-shadow:0px 0px 4px #f66;
  47. border-radius:8px;
  48. }
  49. .upgrade.cantAfford:hover
  50. {
  51. box-shadow:0px 0px 4px #e44;
  52. }
  53. .upgrade.owned,.achiev.owned
  54. {
  55. background:#f99;
  56. }
  57. .thing-text,.thing-costs{font-weight:bold;}
  58.  
  59. .building
  60. {
  61. border-top-left-radius:20px;
  62. border-bottom-left-radius:20px;
  63. display:block;
  64. margin-right:0px;
  65. font-size:14px;
  66. }
  67.  
  68. .fullWidth
  69. {
  70. display:block;
  71. margin-left:0px;
  72. margin-right:0px;
  73. z-index:10;
  74. }
  75. #game .fullWidth
  76. {
  77. height:auto;
  78. min-height:auto;
  79. }
  80. .fullWidth,.fullWidth:hover
  81. {
  82. /*background:rgba(0,0,0,0.5);
  83. background:linear-gradient(to bottom,rgba(0,0,0,0.5) 0%,rgba(0,0,0,0.25) 70%,rgba(0,0,0,0.5) 100%);*/
  84. background:linear-gradient(to right,rgba(0,0,0,0) 0%,rgba(0,0,0,0.25) 70%,rgba(0,0,0,0) 100%);
  85. box-shadow:none;
  86. }
  87. .fullWidth:before,.fullWidth:after
  88. {
  89. content:'';
  90. height:1px;
  91. background:linear-gradient(to right,rgba(255,255,255,0) 0%,rgba(255,255,255,0.25) 70%,rgba(255,255,255,0) 100%);
  92. position:absolute;
  93. left:0px;
  94. right:0px;
  95. z-index:-1;
  96. }
  97. .fullWidth:before{top:-1px;}
  98. .fullWidth:after{bottom:-1px;}
  99.  
  100. .fullWidth .thing-icon
  101. {
  102. margin-top:-14px;
  103. margin-bottom:-14px;
  104. }
  105. .fullWidth .thing-text
  106. {
  107. margin-top:-4px;
  108. margin-bottom:-4px;
  109. }
  110.  
  111. #game.filtersOn .thing-icon{filter:drop-shadow(3px 3px 1px rgba(0,0,0,0.5));}
  112. #textbox{
  113. content:'Candy Cantagion';
  114. font-size:16px;
  115. color:black;
  116. font-style:bold;
  117. font:family:sans;
  118. }
  119. #box-achievs
  120. {
  121. position:absolute;
  122. top:13%;
  123. right:0px;
  124. bottom:0px;
  125. left:72%;
  126. overflow-x:hidden;
  127. overflow-y:scroll;
  128. }
  129. #box-buildings
  130. {
  131. position:absolute;
  132. top:60%;
  133. width:72%;
  134. bottom:20%;
  135. left:0px;
  136. overflow-y:scroll;
  137. overflow-x:hidden;
  138. }
  139. #box-buttons
  140. {
  141. position:absolute;
  142. top:13%;
  143. right:28%;
  144. bottom:40%;
  145. left:0px;
  146. overflow-y:hidden;
  147. overflow-x:hidden;
  148. }
  149. #box-res
  150. {
  151. position:absolute;
  152. top:0px;
  153. right:0px;
  154. bottom:87%;
  155. left:30%;
  156. overflow-y:scroll;
  157. overflow-x:hidden;
  158. }
  159. #box-upgrades
  160. {
  161. position:absolute;
  162. top:80%;
  163. width:72%;
  164. bottom:0px;
  165. left:0px;
  166. overflow-y:scroll;
  167. overflow-x:hidden;
  168. }
  169. thing,.box-header,.box-footer,.box-bit
  170. {
  171. background:rgba(244,244,244,0.7);
  172. }
  173. #box
  174. {
  175. background:rgba(244,111,111,1);
  176. }
  177.  
  178. .thing
  179. {
  180. background:rgba(244,244,244,0.7);
  181. }
  182.  
  183. #game
  184. {
  185. background:#ee8a8a;
  186. font-family:"Merriwether",serif;
  187. }
Add Comment
Please, Sign In to add comment