style.css 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. body{
  2. margin:0;
  3. padding:0;
  4. color:#333;
  5. font:14px/1.5 Microsoft YaHei,tahoma,Arial;
  6. background:#fec43a;
  7. }
  8. input[type=radio]{
  9. -webkit-appearance:none;
  10. border:none;
  11. background:transparent;
  12. display:inline-block;
  13. vertical-align:middle;
  14. width:18px;
  15. height:18px;
  16. position:relative;
  17. cursor:pointer;
  18. }
  19. input[type=radio]:focus{
  20. outline:none;
  21. }
  22. input[type=radio]:before,
  23. input[type=radio]:after{
  24. content:' ';
  25. display:block;
  26. position:absolute;
  27. border-radius:50%;
  28. }
  29. input[type=radio]:before{
  30. left:0;
  31. right:0;
  32. top:0;
  33. bottom:0;
  34. border:solid 2px #fec43a;
  35. background-color:#fff;
  36. }
  37. input[type=radio]:after{
  38. display:none;
  39. left:20%;
  40. right:20%;
  41. top:20%;
  42. bottom:20%;
  43. background-color:#fec43a;
  44. }
  45. input[type=radio]:checked:after{
  46. display:block;
  47. }
  48. .top{
  49. background:url("img/bg1.png");
  50. width:100%;
  51. height:15px;
  52. }
  53. .head{
  54. width:80%;
  55. margin:0 auto;
  56. display:block;
  57. }
  58. .text{
  59. font-size:14px;
  60. color:#75350a;
  61. text-align:center;
  62. width:80%;
  63. margin:1em auto;
  64. font-weight:normal;
  65. }
  66. .content{
  67. background:#ffffff url("img/shadow.png") repeat-x;
  68. width:90%;
  69. margin:0 auto;
  70. }
  71. .bottom{
  72. background:url("img/bottom.png") repeat-x;
  73. width:100%;
  74. height:5px;
  75. margin-top:2em;
  76. }
  77. .container .progress{
  78. background:url("img/progress-bg.png") repeat-x;
  79. width:95%;
  80. height:12px;
  81. margin:2em auto 0 auto;
  82. border-radius:6px;
  83. position:relative;
  84. }
  85. .container .rate{
  86. position:absolute;
  87. top:0;
  88. left:0;
  89. background:url("img/progress.png") repeat-x;
  90. border-radius:5px;
  91. height:12px;
  92. width:30px;
  93. }
  94. .container #currentRate{
  95. position:absolute;
  96. top:-23px;
  97. left:0;
  98. color:#db3434;
  99. font-size:10px;
  100. background:#fff999;
  101. border:1px solid #efa800;
  102. border-radius:6px;
  103. padding:0 8px;
  104. }
  105. .container .trangle{
  106. position:absolute;
  107. top:-7px;
  108. left:10px;
  109. border:5px solid transparent;
  110. border-top:5px solid #fff999;
  111. }
  112. .container .content .title{
  113. width:95%;
  114. text-align:center;
  115. margin:0 auto;
  116. font-size:14px;
  117. font-weight:bold;
  118. color:#5c2500;
  119. }
  120. .container .content span{
  121. margin:10px auto;
  122. padding-top:1em;
  123. text-align:center;
  124. display:inline-block;
  125. }
  126. .container .content #answer{
  127. border-bottom:2px dashed #cebc91;
  128. padding-bottom:3px;
  129. }
  130. .container .content .row{
  131. width:80%;
  132. margin:0 auto 10px auto;
  133. font-size:16px;
  134. }
  135. .container .content label{
  136. color:#3f3f3f;
  137. cursor:pointer;
  138. vertical-align:middle;
  139. }
  140. .container #result{
  141. background:url("img/bg2.png") repeat-x;
  142. width:95%;
  143. margin:3em auto 0 auto;
  144. height:10px;
  145. border-radius:10px;
  146. margin-bottom:-5px;
  147. display:none;
  148. }
  149. #showPannel h1{
  150. width:80%;
  151. padding:1em;
  152. border-bottom:2px dashed #cebc91;
  153. color:#5c2500;
  154. font-size:16px;
  155. margin:0 auto;
  156. text-align:center;
  157. font-weight:normal;
  158. }
  159. #showPannel em{
  160. color:#db3434;
  161. font-style:normal;
  162. }
  163. #showPannel p{
  164. color:#75350a;
  165. font-size:14px;
  166. width:80%;
  167. margin:0 auto;
  168. padding:1em 0;
  169. }
  170. .btn{
  171. background:#db3434;
  172. border:transparent;
  173. border-bottom:3px solid #a81e1e;
  174. border-radius:5px;
  175. color:#ffffff;
  176. font:19px Microsoft YaHei;
  177. text-align:center;
  178. margin:1em auto;
  179. width:50%;
  180. padding:10px 0;
  181. display:block;
  182. outline:none;
  183. cursor:pointer;
  184. }
  185. #playAgain{
  186. display:none;
  187. text-align:center;
  188. }
  189. #playAgain .btn{
  190. display:inline-block;
  191. width:42%;
  192. }
  193. #playAgain .reset{
  194. margin-right:1%;
  195. }
  196. .logo{
  197. margin:1em auto;
  198. display:block;
  199. text-align:center;
  200. font-size:20px;
  201. }
  202. .logo img{
  203. width:50%;
  204. }
  205. .logo,
  206. .logo:visited{
  207. color:#da3434;
  208. }
  209. #share{
  210. display:none;
  211. position:fixed;
  212. top:0;
  213. left:0;
  214. z-index:99;
  215. background:rgba(0,0,0,0.6);
  216. width:100%;
  217. height:100%;
  218. }
  219. #share img{
  220. position:absolute;
  221. top:0;
  222. right:5%;
  223. }
  224. #share h4{
  225. color:#ffffff;
  226. font-size:16px;
  227. font-weight:normal;
  228. text-align:center;
  229. width:100%;
  230. height:100%;
  231. position:absolute;
  232. top:50%;
  233. left:0;
  234. }
  235. .link{
  236. display:none;
  237. }