not really known
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

204 lines
3.3 KiB

  1. * {
  2. -moz-user-select: none;
  3. -webkit-user-select: none;
  4. }
  5. #main-toolbar #activity-button {
  6. background-image: url(../activity/activity-icon.svg);
  7. }
  8. #btn-next {
  9. background-image: url(../assets/themeChanger.svg);
  10. }
  11. .blockrain-game-holder {
  12. position: relative;
  13. padding: 0;
  14. margin: 0;
  15. color: #ffffff;
  16. font-size: 18px;
  17. line-height: 140%;
  18. overflow-y: auto;
  19. overflow-x: auto;
  20. }
  21. @media only screen and (min-width: 500px) {
  22. .blockrain-game-holder {
  23. border-left: 1px solid black;
  24. border-right: 1px solid black;
  25. }
  26. }
  27. /* Touch Controls */
  28. .blockrain-touch {
  29. position: absolute;
  30. width: 50px;
  31. height: 50px;
  32. display: block;
  33. border-radius: 100%;
  34. border: 1px solid black;
  35. background: rgba(255,255,255,0.2);
  36. z-index: 10;
  37. -webkit-touch-callout: none;
  38. -webkit-user-select: none;
  39. -moz-user-select: none;
  40. -ms-user-select: none;
  41. user-select: none;
  42. line-height: 50px;
  43. text-align: center;
  44. }
  45. .blockrain-touch:active {
  46. background: rgba(255,255,255,0.3);
  47. }
  48. .blockrain-touch-left {
  49. left: -60px;
  50. bottom: 10px;
  51. }
  52. /* Buttons */
  53. .blockrain-btn {
  54. position: relative;
  55. display: inline-block;
  56. background: none;
  57. color: #ffffff;
  58. text-decoration: none;
  59. border: 2px solid #ffffff;
  60. padding: 15px 30px;
  61. font-size: 18px;
  62. text-align: center;
  63. cursor: default;
  64. }
  65. .blockrain-btn::before {
  66. position: absolute;
  67. content: "";
  68. top: 100%;
  69. left: 0px;
  70. bottom: 0px;
  71. right: 0px;
  72. border: 2px solid #ffffff;
  73. border-top: none;
  74. border-right: none;
  75. transition: all 0.2s ease;
  76. }
  77. .blockrain-btn::after {
  78. position: absolute;
  79. content: "";
  80. top: 0px;
  81. left: 100%;
  82. bottom: 0px;
  83. right: 0px;
  84. border: 2px solid #ffffff;
  85. border-left: none;
  86. border-bottom: none;
  87. transition: all 0.2s ease;
  88. }
  89. .blockrain-btn:hover::before {
  90. left: 5px;
  91. bottom: -8px;
  92. right: -8px;
  93. }
  94. .blockrain-btn:hover::after {
  95. top: 5px;
  96. bottom: -8px;
  97. right: -8px;
  98. }
  99. /* Score */
  100. .blockrain-score-holder {
  101. position: absolute;
  102. top: 20px;
  103. right: 20px;
  104. text-align: right;
  105. }
  106. .blockrain-score-msg {
  107. font-size: 14px;
  108. line-height: 100%;
  109. margin-bottom: 0.2em;
  110. }
  111. .blockrain-score-num {
  112. font-size: 20px;
  113. font-weight: bold;
  114. }
  115. /* High Score */
  116. .blockrain-Hscore-holder {
  117. position: absolute;
  118. top: 20px;
  119. left: 15px;
  120. text-align: left;
  121. }
  122. .blockrain-Hscore-msg {
  123. font-size: 14px;
  124. line-height: 100%;
  125. margin-bottom: 0.2em;
  126. }
  127. .blockrain-Hscore-num {
  128. text-align: center;
  129. font-size: 20px;
  130. font-weight: bold;
  131. }
  132. /* Menu */
  133. .blockrain-start-holder, .blockrain-game-over-holder {
  134. position: absolute;
  135. top: 0;
  136. left: 0;
  137. right: 0;
  138. bottom: 0;
  139. background: rgba(0,0,0,0.8);
  140. text-align: center;
  141. }
  142. .blockrain-start, .blockrain-game-over {
  143. position: absolute;
  144. top: 50%;
  145. width: 100%;
  146. transform: translateY(-50%);
  147. }
  148. .blockrain-start-msg, .blockrain-game-over-msg {
  149. font-size: 18px;
  150. margin-bottom: 30px;
  151. }
  152. @media only screen and (min-width: 500px) {
  153. #canvas {
  154. width: 65vw;
  155. right: 17.5vw;
  156. left: 17.5vw;
  157. }
  158. }
  159. @media only screen and (min-width: 800px) {
  160. #canvas {
  161. width: 50vw;
  162. right: 25vw;
  163. left: 25vw;
  164. }
  165. }
  166. @media only screen and (min-width: 1100px) {
  167. #canvas {
  168. width: 40vw;
  169. right: 30vw;
  170. left: 30vw;
  171. }
  172. }
  173. @media only screen and (max-width: 500px) {
  174. #canvas {
  175. width: 100vw;
  176. height: 70vh;
  177. }
  178. }