style.css 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. html,
  2. body {
  3. margin: 0px;
  4. padding: 0px;
  5. width: 100vw;
  6. height: 100%;
  7. overflow-x: hidden;
  8. overflow-y: auto;
  9. -webkit-touch-callout: none;
  10. -webkit-user-select: none;
  11. -khtml-user-select: none;
  12. -moz-user-select: none;
  13. -ms-user-select: none;
  14. user-select: none;
  15. }
  16. * {
  17. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  18. -webkit-tap-highlight-color: transparent;
  19. }
  20. input::-webkit-outer-spin-button,
  21. input::-webkit-inner-spin-button {
  22. -webkit-appearance: none !important;
  23. }
  24. input {
  25. -webkit-appearance: none !important;
  26. border: none;
  27. outline: none;
  28. border-radius: 0;
  29. }
  30. h3,
  31. p,
  32. ul,
  33. li {
  34. padding: 0;
  35. margin: 0;
  36. }
  37. *,
  38. :before,
  39. :after {
  40. box-sizing: border-box;
  41. }
  42. :root {
  43. --margin: 5px;
  44. }
  45. .body{
  46. width: 100%;
  47. height: 100%;
  48. }
  49. #app {
  50. font: 16px "Microsoft YaHei", Helvetica, Arial, sans-serif;
  51. -webkit-font-smoothing: antialiased;
  52. -moz-osx-font-smoothing: grayscale;
  53. width: 100vw;
  54. height: 100%;
  55. color: #fff;
  56. /* linear-gradient(180deg, #D8585E 0%, #630005 100%) */
  57. background: url('../images/bg@2x.png') no-repeat;
  58. background-size:100% 100%;
  59. overflow: hidden;
  60. }
  61. .loading-mask {
  62. position: absolute;
  63. bottom: 0px;
  64. left: 0px;
  65. background: rgba(0, 0, 0, 0.4);
  66. width: 100%;
  67. height: 100%;
  68. z-index: 99;
  69. display: none;
  70. }
  71. .ai_top{
  72. width: 100%;
  73. height: 76vh;
  74. text-align: center;
  75. display: block;
  76. }
  77. .ai_title{
  78. margin: 6% auto;
  79. width: 100%;
  80. }
  81. .ai_pic{
  82. display: inline-block;
  83. width: calc(100% - calc(var(--margin) * 2) * 2);
  84. }
  85. .ai_pic >li{
  86. display: inline-block;
  87. list-style: none;
  88. width: calc((100% - var(--margin) * 2) / 3);
  89. margin-bottom: calc(var(--margin) * 2);
  90. }
  91. .ai_pic > .active{
  92. border-radius: 7px;
  93. background: linear-gradient(180deg, #FFE5A5 0%, #DFA827 93%, #F3C24A 100%);
  94. box-shadow: 0px 5px 10px rgba(74, 11, 11, 0.48);
  95. }
  96. .ai_pic >li>img{
  97. width: calc(100% - var(--margin) * 2);
  98. border-radius: 5px;
  99. }
  100. .ai_pic >li> span{
  101. display: inline-block;
  102. margin-bottom: calc(var(--margin) * 2);
  103. }
  104. .ai_pic > .active > span{
  105. color: #962C30;
  106. }
  107. .ai_bottom{
  108. width: 100%;
  109. display: inline-block;
  110. text-align: center;
  111. position: fixed;
  112. bottom: 10px;
  113. }
  114. .ai_bottom > img{
  115. width: 24%;
  116. margin: 0 auto;
  117. display: inline-block;
  118. }
  119. .back{
  120. position: fixed;
  121. left: 20px;
  122. top: 20px;
  123. z-index: 999;
  124. width: 26px;
  125. }
  126. #work,#myPhoto{
  127. width: 100vw;
  128. height: 100%;
  129. position: fixed;
  130. top: 0;
  131. left: 0;
  132. background: #000;
  133. z-index: 99;
  134. display: none;
  135. }
  136. #work .demo,#myPhoto .myImg{
  137. width: 100%;
  138. max-height: 100%;
  139. position: absolute;
  140. transform: translate(-50%,-50%);
  141. top: 50%;
  142. left: 50%;
  143. z-index: -1;
  144. }
  145. #work .mask{
  146. width: 100%;
  147. height: 100%;
  148. position: absolute;
  149. top: 0;
  150. left: 0;
  151. background: rgba(0, 0, 0, 0.7);
  152. text-align: center;
  153. z-index: -1;
  154. }
  155. #work .mask > span{
  156. position: absolute;
  157. top: 50%;
  158. left: 50%;
  159. transform: translate(-50%,-50%);
  160. display: inline-block;
  161. width: 100%;
  162. color: #fff;
  163. letter-spacing: 1px;
  164. font-size: 18px;
  165. font-weight: bold;
  166. }
  167. #work .btn-cls{
  168. position: absolute;
  169. bottom: 30px;
  170. display: flex;
  171. justify-content: space-around;
  172. align-items: center;
  173. width: 100%;
  174. z-index: 999;
  175. }
  176. #work .btn-cls > img{
  177. width: 10%;
  178. }
  179. #work .btn-cls .takePhoto{
  180. position: relative;
  181. width: 40%;
  182. max-width: 180px;
  183. text-align: center;
  184. color: #fff;
  185. }
  186. #work .takePhoto img{
  187. position: absolute;
  188. z-index: -1;
  189. left: 0;
  190. top: 50%;
  191. transform: translateY(-50%);
  192. width: 100%;
  193. }
  194. #work .takePhoto span{
  195. line-height: 100%;
  196. }
  197. #work .after_btn{
  198. visibility: hidden;
  199. justify-content: center;
  200. }
  201. #work .after_btn .takePhoto{
  202. width: 30%;
  203. }
  204. #work .after_btn > img{
  205. width: 14%;
  206. margin: 0 30px;
  207. }
  208. #myPhoto .share{
  209. position: absolute;
  210. bottom: 0;
  211. display: flex;
  212. justify-content: space-between;
  213. align-items: center;
  214. width: 100%;
  215. padding: 0 20px;
  216. z-index: 999;
  217. height: 80px;
  218. background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, #FFFFFF 100%);
  219. }
  220. #myPhoto .share > div{
  221. background: #FFFFFF;
  222. border-radius: 10px;
  223. font-size: 0;
  224. padding: 12px;
  225. }
  226. #myPhoto .share > .quan{
  227. width: auto;
  228. display: flex;
  229. align-items: center;
  230. padding: 12px 36px;
  231. }
  232. #myPhoto .share > .quan > span{
  233. display: inline-block;
  234. font-size: 16px;
  235. margin-left: 10px;
  236. }
  237. #myPhoto .share > div >img{
  238. width: 32px;
  239. height: 32px;
  240. }
  241. @media screen and (max-width: 350px) {
  242. #myPhoto .share > div{
  243. padding: 10px;
  244. }
  245. #myPhoto .share > .quan{
  246. padding: 10px 14px;
  247. }
  248. #myPhoto .share > .quan > span{
  249. font-size: 14px;
  250. }
  251. #myPhoto .share > div >img{
  252. width: 28px;
  253. height: 28px;
  254. }
  255. }