style.css 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. charset "utf-8";
  2. *{
  3. margin: 0;
  4. padding: 0;
  5. -webkit-touch-callout: none; /* prevent callout to copy image, etc when tap to hold */
  6. -webkit-text-size-adjust: none; /* prevent webkit from resizing text to fit */
  7. -webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */
  8. -webkit-user-select: none; /* prevent copy paste, to allow, change 'none' to 'text' */
  9. -ms-user-select: none;
  10. -moz-user-select: none;
  11. }
  12. body{
  13. background: url(../img/bg.png) 0px top no-repeat;
  14. background-position-x: 0px;
  15. overflow: hidden;
  16. font-family: "Helvetica Neue", "Hiragino Sans GB", "Microsoft YaHei", "????", Arial, sans-serif;
  17. height: 1000px;
  18. transition:1s;
  19. background-color:#80b7b4;
  20. }
  21. .shouji{position:absolute; left:0%; top:0%; width:310%; height:100%;}
  22. .shouji .img{width:100%; height:100%;}
  23. #main{
  24. position: fixed;
  25. top: 60%;
  26. left: 0;
  27. height: 40%;
  28. width: 100%;
  29. overflow: visible;
  30. }
  31. .point{
  32. position:absolute;
  33. font-size: 24px;
  34. color: #ffffff;
  35. font-weight: bold;
  36. background-color: rgba(0,0,0,0.3);
  37. top:10%;
  38. height:40px; line-height:40px;
  39. text-align: center;
  40. width:100%;
  41. border-radius: 10px;
  42. }
  43. .tips{
  44. top:25%;
  45. position:absolute;
  46. width:100%;
  47. font-size: 14px;
  48. text-align: center;
  49. color: #000000;
  50. font-weight: bold;
  51. }
  52. #main .wall{
  53. position: absolute;
  54. top: 30%;
  55. height: 70%;
  56. width: 20%;
  57. background-color: #000000;
  58. }
  59. #main .stick{
  60. position:absolute;
  61. bottom: 68%;
  62. left: 20%;
  63. height: 2%;
  64. width: 0;
  65. background-color: #000000;
  66. transform: rotate(-90deg);
  67. }
  68. .stickMan{
  69. width: 100%;
  70. position: absolute;
  71. bottom: 66.5%;
  72. left: 15.5%;
  73. }
  74. .stickMan img{
  75. transform:scale(1);
  76. }
  77. .gameOver{
  78. position: fixed;
  79. top: 0;
  80. left: 0;
  81. width: 100%;
  82. height:100%;
  83. background-color: rgba(0,0,0,0.3);
  84. text-align: center;
  85. display: none;
  86. }
  87. .gameOver h2{
  88. margin: 15% 0 5% 0;
  89. font-size: 50px;
  90. color: #ffffff;
  91. font-weight: normal;
  92. }
  93. .gameOver .showPoint{
  94. width: 70%;
  95. background-color: #ffffff;
  96. padding: 2%;
  97. margin: 0 auto;
  98. border-radius: 10px;
  99. color: #000000;
  100. font-weight: bold;
  101. }
  102. .gameOver .showPoint .newPoint,.bestPoint{
  103. font-size: 30px;
  104. }
  105. .gameOver .btn{
  106. width: 30%;
  107. margin: 5% auto;
  108. padding: 3% 0;
  109. background-color: orange;
  110. color: #FFFFFF;
  111. font-weight: bold;
  112. border-radius: 5px;
  113. }
  114. #mask{
  115. display: none;
  116. position: fixed;
  117. top: 0;
  118. left: 0;
  119. width: 100%;
  120. height: 100%;
  121. z-index: 999;
  122. background-color: rgba(0,0,0,0.5);
  123. }
  124. #mask img{
  125. position: absolute;
  126. top: 0;
  127. right: 20px;
  128. }