base.css 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. @charset "utf-8";
  2. /* reset css */
  3. html, body, div, span, applet, object, iframe,
  4. h1, h2, h3, h4, h5, h6, p, blockquote, pre,
  5. a, abbr, acronym, address, big, cite, code,
  6. del, dfn, em, img, ins, kbd, q, s, samp,
  7. small, strike, strong, sub, sup, tt, var,
  8. b, u, i, center,
  9. dl, dt, dd, ol, ul, li,
  10. fieldset, form, label, legend,
  11. table, caption, tbody, tfoot, thead, tr, th, td,
  12. article, aside, canvas, details, embed,
  13. figure, figcaption, footer, header, hgroup,
  14. menu, nav, output, ruby, section, summary,
  15. time, mark, audio, video {
  16. margin: 0;
  17. padding: 0;
  18. border: 0;
  19. font-size: 100%;
  20. font: inherit;
  21. vertical-align: baseline;
  22. }
  23. /* HTML5 display-role reset for older browsers */
  24. article, aside, details, figcaption, figure,
  25. footer, header, hgroup, menu, nav, section {
  26. display: block;
  27. }
  28. body {
  29. line-height: 1;
  30. -webkit-user-select: none;
  31. }
  32. ol, ul {
  33. list-style: none;
  34. }
  35. blockquote, q {
  36. quotes: none;
  37. }
  38. blockquote:before, blockquote:after,
  39. q:before, q:after {
  40. content: '';
  41. content: none;
  42. }
  43. table {
  44. border-collapse: collapse;
  45. border-spacing: 0;
  46. }
  47. /* to preserve line-height and selector appearance */
  48. sup {
  49. vertical-align:text-top;
  50. }
  51. sub {
  52. vertical-align:text-bottom;
  53. }
  54. input,
  55. button,
  56. textarea,
  57. select {
  58. font-family:inherit;
  59. font-size:inherit;
  60. font-weight:inherit;
  61. *font-size:100%; /*to enable resizing for IE*/
  62. width:auto;
  63. overflow:visible;
  64. }
  65. /*because legend doesn't inherit in IE */
  66. legend {
  67. color:#000;
  68. }
  69. h1,h2,h3,h4,h5,h6{
  70. font-weight:normal;
  71. }
  72. /* end reset css */
  73. html,
  74. body {
  75. height:100%;
  76. }
  77. a,a:active{
  78. color:#333;
  79. text-decoration:none;
  80. outline:none;
  81. }
  82. a,button,input[type=button],input[type=input]{
  83. -webkit-tap-highlight-color:rgba(0,0,0,0);
  84. }
  85. /*float clear*/
  86. .clear {
  87. zoom: 1;
  88. }
  89. .clear:after {
  90. content: "\200c";
  91. display :block;
  92. height: 0;
  93. font-size: 0;
  94. clear: both;
  95. }
  96. .none{
  97. display:none;
  98. overflow:hidden;
  99. }
  100. /* -------------- */
  101. body{color:#333; background:#4e97e9; font-family:"Microsoft YaHei", Arial, Verdana, serif; font-size:14px; line-height:1.4;}
  102. .title{position:relative; height:60px;}
  103. .title:after{position:absolute; top:15px; left:50%; display:block; content:''; width:218px; height:29px; margin-left:-109px; background:url(bg.png) no-repeat; background-size:275px 275px;}
  104. .upload{position:relative; width:100px; height:100px; margin:25px auto; border:5px solid #fff; background:#8BB9EC; box-shadow:1px 5px 5px #367ECE; overflow:hidden;}
  105. .upload input{position:absolute; top:0; left:0; background:#f00; width:100px; height:100px; z-index:2; opacity:0;}
  106. .upload img{display:block; width:200px; height:200px;}
  107. .upload i{position:absolute; top:10px; left:10px; display:block; width:84px; padding-top:70px; color:#4a7fba; font-size:14px; text-align:center; background:url(bg.png) no-repeat 5px -45px; background-size:275px 275px; overflow:hidden;}
  108. .upload canvas{position:relative; z-index:1;width:100%;height:100%;}
  109. .img-list{width:285px; border:1px solid #ddd; border-radius:5px; margin:0 auto; overflow:hidden; background:#fff;}
  110. .img-list ul li{float:left; width:70px; height:65px; border-right:1px solid #ddd;}
  111. .img-list ul li:last-child{border:0;}
  112. .img-list ul li img{display:block; width:70px; height:65px;}
  113. .selects{width:283px; margin:0 auto; padding:10px 0 5px 0; color:#fff;}
  114. .selects select{width:80px; border:0; text-align:center; border-radius:3px;}
  115. .hongbao{position:fixed; bottom:0; left:0; width:100%; z-index:103;}
  116. .hongbao img{display:block; width:100%;}
  117. .share{position:absolute; top:50%; left:50%; width:320px; height:271px; padding-top:60px; margin:-180px -160px; background:url(share.gif) no-repeat #EFCB4E; background-size:320px 271px; z-index:102;}
  118. .share .new-pic{position:absolute; top:63px; left:50%; margin-left:-77px; width:140px; height:140px; border:3px solid #fff;}
  119. .share p{position:absolute; bottom:0; left:0; width:320px; height:60px; text-align:center;}
  120. .share p .share-link,
  121. .share p .reset-link{display:inline-block; width:111px; height:38px; margin:5px 20px; background:url(bg.png) no-repeat 0 -230px; background-size:275px 275px; overflow:hidden;}
  122. .share p .reset-link{background-position:-111px -230px;}
  123. .bingo{position:relative; display:block; width:287px; height:45px; line-height:45px; font-size:24px; font-weight:bold; color:#7F1324; margin:18px auto 0; border-radius:5px; background:#FFFB69; text-align:center;}
  124. /*.bingo:after{position:absolute; top:10px; left:50%; display:block; content:''; width:97px; height:24px; margin-left:-48px; background:url(bg.png) no-repeat 0 -142px; background-size:275px 275px;}*/
  125. .bingo:active { opacity:.7;color:#7F1324;}
  126. .mask1{position:fixed; top:0; left:0; right:0; bottom:0; background:#4e97e9; display:none; width:100%; height:100%; z-index:101;}
  127. .mask2{position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(255,255,255,.5); display:none; width:100%; height:100%; z-index:104;}
  128. .mask2:after{display:block; content:''; position:absolute; top:10px; right:20px; width:116px; height:34px; background:url(bg.png) no-repeat 0 -177px; background-size:275px 275px; overflow:hidden;}
  129. .toast_tip{position:absolute; top:20%; left:50%; height:35px; width:240px; margin-left:-120px; text-align:center; line-height:35px; background:rgba(0,0,0,.7); color:#fff; border-radius:5px; font-size:12px; z-index:103}
  130. @media screen and (max-height:450px){
  131. .upload { margin:5px auto;}
  132. .hongbao{position:relative; margin-top:20px;}
  133. }