style-mobile.css 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. html {
  2. -ms-touch-action: none;
  3. }
  4. body, canvas, div {
  5. display: block;
  6. outline: none;
  7. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  8. user-select: none;
  9. -moz-user-select: none;
  10. -webkit-user-select: none;
  11. -ms-user-select: none;
  12. -khtml-user-select: none;
  13. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  14. }
  15. /* Remove spin of input type number */
  16. input::-webkit-outer-spin-button,
  17. input::-webkit-inner-spin-button {
  18. /* display: none; <- Crashes Chrome on hover */
  19. -webkit-appearance: none;
  20. margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
  21. }
  22. body {
  23. position: absolute;
  24. top: 0;
  25. left: 0;
  26. width: 100%;
  27. height: 100%;
  28. padding: 0;
  29. border: 0;
  30. margin: 0;
  31. cursor: default;
  32. color: #888;
  33. background-color: #333;
  34. text-align: center;
  35. font-family: Helvetica, Verdana, Arial, sans-serif;
  36. display: flex;
  37. flex-direction: column;
  38. /* fix bug: https://github.com/cocos-creator/2d-tasks/issues/791 */
  39. /* overflow cannot be applied in Cocos2dGameContainer,
  40. otherwise child elements will be hidden when Cocos2dGameContainer rotated 90 deg */
  41. overflow: hidden;
  42. }
  43. #Cocos2dGameContainer {
  44. position: absolute;
  45. margin: 0;
  46. left: 0px;
  47. top: 0px;
  48. display: -webkit-box;
  49. -webkit-box-orient: horizontal;
  50. -webkit-box-align: center;
  51. -webkit-box-pack: center;
  52. }
  53. canvas {
  54. background-color: rgba(0, 0, 0, 0);
  55. }
  56. a:link, a:visited {
  57. color: #666;
  58. }
  59. a:active, a:hover {
  60. color: #666;
  61. }
  62. p.header {
  63. font-size: small;
  64. }
  65. p.footer {
  66. font-size: x-small;
  67. }
  68. #splash {
  69. position: absolute;
  70. top: 0;
  71. left: 0;
  72. width: 100%;
  73. height: 100%;
  74. background: #171717 url(./logo.png) no-repeat center;
  75. background-size: 45%;
  76. }
  77. .progress-bar {
  78. /* position: absolute;
  79. left: 27.5%;
  80. top: 80%;
  81. height: 3px;
  82. padding: 2px;
  83. width: 45%;
  84. border-radius: 7px;
  85. box-shadow: 0 1px 5px #000 inset, 0 1px 0 #444; */
  86. position: absolute;
  87. left: 25%;
  88. top: 80%;
  89. height: 15px;
  90. padding: 5px;
  91. width: 50%;
  92. border-radius: 5px;
  93. }
  94. .progress-bar span {
  95. /* display: block;
  96. height: 100%;
  97. border-radius: 3px;
  98. transition: width .4s ease-in-out;
  99. background-color: #3dc5de; */
  100. display: block;
  101. height: 100%;
  102. border-radius: 5px;
  103. box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset;
  104. transition: width .4s ease-in-out;
  105. background-color: #3dc5de;
  106. }
  107. .stripes span {
  108. /* background-size: 30px 30px;
  109. background-image: linear-gradient(135deg, rgba(255, 255, 255, .15) 25%, transparent 25%,
  110. transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,
  111. transparent 75%, transparent);
  112. animation: animate-stripes 1s linear infinite; */
  113. background-size: 30px 30px;
  114. animation: animate-stripes 5s linear infinite;
  115. }
  116. @keyframes animate-stripes {
  117. /* 0% {background-position: 0 0;} 100% {background-position: 60px 0;} */
  118. 0% {background-position: 0 0;
  119. background-color: #deab3d;}
  120. 50% {background-position: 60px 0;
  121. background-color: #ffae00;}
  122. 100% {background-position: 0 0;
  123. background-color: #deab3d;}
  124. }