main.css 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. html,body{
  2. width: 100%;
  3. height: 100%;
  4. }
  5. .container{
  6. position: relative;
  7. }
  8. .container,.bg{
  9. width: 100%;
  10. height: 100%;
  11. overflow: hidden;
  12. position: absolute;
  13. }
  14. .bg img{
  15. height: 100%;
  16. }
  17. .bg .bg-r{
  18. float: right;
  19. }
  20. .con{
  21. width: 700px;
  22. min-height: 700px;
  23. height: 100%;
  24. position: relative;
  25. margin: 0 auto;
  26. position: relative;
  27. text-align: center;
  28. }
  29. .c-c{
  30. position: absolute;
  31. top: 50%;
  32. left: 50%;
  33. transform: translate(-50%,-50%);
  34. width: 100%;
  35. }
  36. .btn{
  37. display: none;
  38. padding: 12px 46px;
  39. min-width: 200px;
  40. border: 1px solid #32B2A7;
  41. border-radius: 40px;
  42. font-size: 14px;
  43. background: #32B2A7;
  44. color: #fff;
  45. text-align: center;
  46. margin-top: 30px;;
  47. }
  48. .wrapper{
  49. width: 300px;
  50. height: 300px;
  51. margin: 0 auto;
  52. position: relative;
  53. }
  54. .bg-path{
  55. position: absolute;
  56. top: 4px;
  57. left: 4px;
  58. z-index: -1;
  59. color: #EFF2F2;
  60. font-size: 310px;
  61. }
  62. .icon{
  63. position: absolute;
  64. top: 0;
  65. left: 0;
  66. padding: 10px;
  67. width: 140px;
  68. height: 140px;
  69. border-radius: 17.54%;
  70. background-color: #fff;
  71. display: inline-block;
  72. }
  73. .icon img{
  74. max-width: 100%;
  75. width: 120px;
  76. height: 120px;
  77. border-radius: 17.54%;
  78. }
  79. .m-icon{
  80. display: none;
  81. }
  82. .qrcode{
  83. position: absolute;
  84. bottom: -10px;
  85. right: -10px;
  86. width: 140px;
  87. height: 140px;
  88. border: 20px solid transparent;
  89. border-radius: 20px;
  90. transition: all .25s;
  91. background-color: #EFF2F2;
  92. }
  93. .qrcode img{
  94. width: 100%;
  95. height: 100%;
  96. }
  97. .qrcode:hover{
  98. transform: scale(1.6);
  99. box-shadow: 0 1px 5px rgba(0,0,0,.3);
  100. }
  101. .name{
  102. position: relative;
  103. margin: 40px auto 10px;
  104. width: 290px;
  105. color: #505556;
  106. text-align: left;
  107. font-weight: 400;
  108. font-size: 28px;
  109. }
  110. .scan-tips{
  111. margin: 0 auto;
  112. width: 290px;
  113. text-align: left;
  114. white-space: nowrap;
  115. line-height: 22px;
  116. color: #A9B1B3;
  117. font-size: 14px;
  118. margin-bottom: 40px;
  119. }
  120. .icon-cls{
  121. position: absolute;
  122. right: 100%;
  123. top: 2px;
  124. margin-right: 10px;
  125. font-size: 26px;
  126. }
  127. .release-info{
  128. border-top: 1px solid #DAE2E3;
  129. max-width: 500px;
  130. position: relative;
  131. margin: 0 auto;
  132. padding-top: 30px;
  133. }
  134. .release-info p{
  135. color: #A9B1B3;
  136. font-size: 14px;
  137. }
  138. .datePublished{
  139. color: #202020;
  140. }
  141. @media screen and (max-width: 768px) {
  142. .bg img{
  143. height: 40%;
  144. }
  145. .con{
  146. width: 100%;
  147. }
  148. .c-c{
  149. width: 90%;
  150. }
  151. .wrapper{
  152. display: none;
  153. }
  154. .m-icon{
  155. width: 100%;
  156. display: block;
  157. text-align: center;
  158. }
  159. .icon{
  160. position: static;
  161. }
  162. .name{
  163. width: 100%;
  164. text-align: center;
  165. margin-bottom: 30px;
  166. }
  167. .icon-cls{
  168. position: static;
  169. margin: 0;
  170. }
  171. .scan-tips{
  172. display: none;
  173. }
  174. .release-info{
  175. width: 100%;
  176. }
  177. .btn{
  178. display: inline-block;
  179. }
  180. }
  181. @media screen and (max-width: 330px) {
  182. .c-c{
  183. top: 35%;
  184. }
  185. }