style.css 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. body {
  2. cursor: default;
  3. color: #888;
  4. background-color: #333;
  5. display: -webkit-flex;
  6. display: flex;
  7. -webkit-flex-direction: column;
  8. flex-direction: column;
  9. height: 100%; /* for firefox */
  10. width: 100%;
  11. position: absolute;
  12. padding: 0px;
  13. border: 0px;
  14. margin: 0px;
  15. }
  16. /* Remove spin of input type number */
  17. input::-webkit-outer-spin-button,
  18. input::-webkit-inner-spin-button {
  19. /* display: none; <- Crashes Chrome on hover */
  20. -webkit-appearance: none;
  21. margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
  22. }
  23. body, canvas, div {
  24. outline: none;
  25. -moz-user-select: none;
  26. -webkit-user-select: none;
  27. -ms-user-select: none;
  28. -khtml-user-select: none;
  29. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  30. }
  31. canvas {
  32. background-color: rgba(0, 0, 0, 0);
  33. }
  34. #splash {
  35. position: absolute;
  36. top: 0;
  37. left: 0;
  38. width: 100%;
  39. height: 100%;
  40. background: #171717 url(/app/editor/static/img/logo-with-text.png) no-repeat center;
  41. background-size: 40%;
  42. }
  43. .content {
  44. display: -webkit-flex;
  45. display: flex;
  46. -webkit-justify-content: center;
  47. justify-content: center;
  48. -webkit-align-items: center;
  49. align-items: center;
  50. -webkit-flex-direction: column;
  51. flex-direction: column;
  52. -webkit-flex: auto;
  53. flex: auto;
  54. }
  55. .contentWrap {
  56. width: 100%;
  57. overflow: auto;
  58. display: -webkit-flex;
  59. display: flex;
  60. -webkit-align-items: center;
  61. align-items: center;
  62. -webkit-flex-direction: column;
  63. flex-direction: column;
  64. }
  65. #GameDiv {
  66. visibility: hidden;
  67. }
  68. .wrapper {
  69. position: relative;
  70. border: 1px solid #444;
  71. background: #222;
  72. }
  73. .toolbar {
  74. /*position: absolute;*/
  75. /*left: 10px;*/
  76. /*top: 10px;*/
  77. min-height: 27px;
  78. padding: 4px 0px 4px 10px;
  79. display: -webkit-flex;
  80. display: flex;
  81. -webkit-align-items: center;
  82. align-items: center;
  83. -webkit-flex-direction: row;
  84. flex-direction: row;
  85. z-index: 999;
  86. }
  87. .toolbar * {
  88. font-size: 12px;
  89. font-family: /* https://www.smashingmagazine.com/2015/11/using-system-ui-fonts-practical-guide/ */
  90. -apple-system, BlinkMacSystemFont,
  91. "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans",
  92. "Helvetica Neue", sans-serif;
  93. }
  94. .toolbar .item {
  95. display: inline-block;
  96. margin-right: 10px;
  97. }
  98. .toolbar select {
  99. height: 25px;
  100. padding: 0px 8px;
  101. box-shadow: none;
  102. background-image: none;
  103. border: 1px solid #171717;
  104. background: #444;
  105. color: #aaa;
  106. /* reference: https://developer.mozilla.org/zh-CN/docs/Web/CSS/appearance */
  107. -webkit-appearance: button;
  108. -moz-appearance: button;
  109. }
  110. .toolbar select:focus {
  111. outline: none;
  112. /* border: 1px solid #09f; */
  113. }
  114. .toolbar button {
  115. border: 1px solid #171717;
  116. border-radius: 2px;
  117. text-align: center;
  118. padding: 4px 8px;
  119. cursor: pointer;
  120. color: #bdbdbd;
  121. font-weight: bold;
  122. background-image: linear-gradient(#5a5a5a, #444);
  123. }
  124. .toolbar button.checked {
  125. box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
  126. color: #09f;
  127. background-image: linear-gradient(#333, #222);
  128. }
  129. .toolbar button:focus {
  130. outline: none;
  131. }
  132. .toolbar button:active {
  133. box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
  134. color: #888;
  135. background-image: linear-gradient(#333, #222);
  136. }
  137. .toolbar input {
  138. width: 41px;
  139. height: 24px;
  140. padding: 4px 4px;
  141. box-shadow: inset 0px 0px 2px 1px rgba(0,0,0,0.3);
  142. border: 1px solid #171717;
  143. background: #444;
  144. color: #aaa;
  145. }
  146. @media screen and (max-width: 760px) {
  147. .toolbar {
  148. display: none;
  149. }
  150. .wrapper {
  151. border: 0px;
  152. position: absolute;
  153. top: 0;
  154. left: 0;
  155. right: 0;
  156. bottom: 0;
  157. }
  158. }
  159. #bulletin {
  160. position: absolute;
  161. left: 50%;
  162. top: 50%;
  163. display: none;
  164. }
  165. #bulletin .inner {
  166. position: relative;
  167. left: -50%;
  168. top: -50%;
  169. display: none;
  170. }
  171. #recompiling {
  172. position: relative;
  173. /*left: 50%;
  174. top: 50%;*/
  175. display: none;
  176. }
  177. .progress-bar {
  178. background-color: #646f76;
  179. position: absolute;
  180. left: 29.75%;
  181. top: 50%;
  182. width: 40.5%;
  183. height: 3px;
  184. border-radius: 2px;
  185. }
  186. .progress-bar span {
  187. display: block;
  188. height: 100%;
  189. border-radius: 2px;
  190. transition: width .4s ease-in-out;
  191. background-color: #3dc5de;
  192. }
  193. .stripes span {
  194. background-size: 30px 30px;
  195. background-image: linear-gradient(135deg, rgba(255, 255, 255, .15) 25%, transparent 25%,
  196. transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,
  197. transparent 75%, transparent);
  198. animation: animate-stripes 1s linear infinite;
  199. }
  200. @keyframes animate-stripes {
  201. 0% {background-position: 0 0;} 100% {background-position: 60px 0;}
  202. }