style-mobile.css 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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. background-image: url(./bg.jpeg);
  35. text-align: center;
  36. font-family: Helvetica, Verdana, Arial, sans-serif;
  37. display: flex;
  38. flex-direction: column;
  39. /* fix bug: https://github.com/cocos-creator/2d-tasks/issues/791 */
  40. /* overflow cannot be applied in Cocos2dGameContainer,
  41. otherwise child elements will be hidden when Cocos2dGameContainer rotated 90 deg */
  42. overflow: hidden;
  43. }
  44. #Cocos2dGameContainer {
  45. position: absolute;
  46. margin: 0;
  47. left: 0px;
  48. top: 0px;
  49. display: -webkit-box;
  50. -webkit-box-orient: horizontal;
  51. -webkit-box-align: center;
  52. -webkit-box-pack: center;
  53. }
  54. canvas {
  55. background-color: rgba(0, 0, 0, 0);
  56. }
  57. a:link, a:visited {
  58. color: #666;
  59. }
  60. a:active, a:hover {
  61. color: #666;
  62. }
  63. p.header {
  64. font-size: small;
  65. }
  66. p.footer {
  67. font-size: x-small;
  68. }
  69. #splash {
  70. position: absolute;
  71. top: 0%;
  72. left: 0;
  73. width: 100%;
  74. height: 100%;
  75. /* background: url(./progressbg.png) no-repeat center; */
  76. background-size: 45%;
  77. display: flex;
  78. align-items: center;
  79. justify-content: center;
  80. flex-direction: column;
  81. }
  82. .aircraft {
  83. width: 100%;
  84. height: 172px;
  85. background: url(./aircraft.png) no-repeat center;
  86. background-size: 45%;
  87. /* animation: animate_aircraft 1000ms infinite 0s alternate ease-in-out ; */
  88. }
  89. .progress {
  90. width: 187px;
  91. height: 42px;
  92. background: url(./progressbg.png) no-repeat center;
  93. position: relative;
  94. transform: scale(0.65);
  95. }
  96. .progressbg_bar {
  97. position: absolute;
  98. top: 0px;
  99. left: 11px;
  100. width: 0px;
  101. height: 42px;
  102. background: url(./progress.png) no-repeat left;
  103. }
  104. .progress_txt {
  105. position: absolute;
  106. top: 0px;
  107. right: -110px;
  108. font-size: 24px;
  109. line-height: 42px;
  110. color:#ffffff;
  111. width: 100px;
  112. text-align: left;
  113. }
  114. .splash_blank {
  115. height: 172px;
  116. }
  117. .progress-bar {
  118. position: absolute;
  119. left: 27.5%;
  120. top: 80%;
  121. height: 3px;
  122. padding: 2px;
  123. width: 45%;
  124. border-radius: 7px;
  125. background: url(./progress.png) no-repeat ;
  126. }
  127. @keyframes animate_aircraft {
  128. from { bottom: 50%; } to { bottom: 53% ; }
  129. }