style-mobile.css 2.7 KB

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