Lava_Entity

Doughnut Maker

Jun 17th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.82 KB | None | 0 0
  1. Let’s make a game!
  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:#39f;
  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.  
  29.  
  30. #box-main
  31. {
  32. left:0px;
  33. top:0px;
  34. bottom:0px;
  35. overflow:hidden;
  36. width:60%;
  37. position:absolute;
  38. }
  39. #box-res.fullWidth
  40. {
  41. width:100%;
  42. top:5%;
  43. height:5%;
  44. min-height:32px;
  45. z-index:100;
  46. position:absolute;
  47. }
  48. #box-buttons
  49. {
  50. top:0px;
  51. right:0px;
  52. bottom:0px;
  53. left:0px;
  54. position:absolute;
  55. }
  56. #box-store
  57. {
  58. right:0px;
  59. top:0px;
  60. bottom:0px;
  61. width:40%;
  62. position:absolute;
  63. }
  64. #box-buildings,#box-upgrades
  65. {
  66. top:0px;
  67. bottom:0px;
  68. width:50%;
  69. right:0%;
  70. overflow-x:hidden;
  71. overflow-y:scroll;
  72. padding-bottom:48px;/* this is to accommodate the info and settings buttons */
  73. position:absolute;
  74. }
  75. #box-buildings
  76. {right:50%;}
  77.  
  78. #box-buildings{background:linear-gradient(to right,rgba(0,0,0,0) 0%,rgba(0,0,0,0.25) 20%);}
  79. #box-upgrades{background:rgba(0,0,0,0.3);}
  80.  
  81. #bulkDisplay{margin:-11px 24px 4px 24px;}
  82.  
  83.  
  84. .thing
  85. {
  86. display:inline-block;
  87. padding:0px;
  88. margin:2px;
  89. cursor:pointer;
  90. }
  91. .thing:hover,.thing.lit
  92. {
  93. background:#6cf;
  94. }
  95. .thing.cantAfford
  96. {
  97. opacity:0.65;
  98. }
  99. .upgrade.cantAfford
  100. {
  101. box-shadow:0px 0px 4px #39f;
  102. border-radius:8px;
  103. }
  104. .upgrade.cantAfford:hover
  105. {
  106. box-shadow:0px 0px 4px #6cf;
  107. }
  108. .upgrade.owned,.achiev.owned
  109. {
  110. background:#6cf;
  111. }
  112. .thing-text,.thing-costs{font-weight:bold;}
  113.  
  114. .building
  115. {
  116. border-top-left-radius:20px;
  117. border-bottom-left-radius:20px;
  118. display:block;
  119. margin-right:0px;
  120. font-size:14px;
  121. }
  122.  
  123. .fullWidth
  124. {
  125. display:block;
  126. margin-left:0px;
  127. margin-right:0px;
  128. z-index:10;
  129. }
  130. #game .fullWidth
  131. {
  132. height:auto;
  133. min-height:auto;
  134. }
  135. .fullWidth,.fullWidth:hover
  136. {
  137. /*background:rgba(0,0,0,0.5);
  138. background:linear-gradient(to bottom,rgba(0,0,0,0.5) 0%,rgba(0,0,0,0.25) 50%,rgba(0,0,0,0.5) 100%);*/
  139. background:linear-gradient(to right,rgba(0,0,0,0) 0%,rgba(0,0,0,0.25) 50%,rgba(0,0,0,0) 100%);
  140. box-shadow:none;
  141. }
  142. .fullWidth:before,.fullWidth:after
  143. {
  144. content:'';
  145. height:1px;
  146. background:linear-gradient(to right,rgba(255,255,255,0) 0%,rgba(255,255,255,0.25) 50%,rgba(255,255,255,0) 100%);
  147. position:absolute;
  148. left:0px;
  149. right:0px;
  150. z-index:-1;
  151. }
  152. .fullWidth:before{top:-1px;}
  153. .fullWidth:after{bottom:-1px;}
  154.  
  155. .fullWidth .thing-icon
  156. {
  157. margin-top:-14px;
  158. margin-bottom:-14px;
  159. }
  160. .fullWidth .thing-text
  161. {
  162. margin-top:-4px;
  163. margin-bottom:-4px;
  164. }
  165.  
  166. #game.filtersOn .thing-icon{filter:drop-shadow(3px 3px 1px rgba(0,0,0,0.5));}
Add Comment
Please, Sign In to add comment