example.css 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400
  1. body,html {
  2. height:100%;
  3. -webkit-tap-highlight-color:transparent
  4. }
  5. body {
  6. font-family:-apple-system-font,Helvetica Neue,Helvetica,sans-serif
  7. }
  8. ul {
  9. list-style:none
  10. }
  11. .page,body {
  12. background-color:#f8f8f8
  13. }
  14. .link {
  15. color:#1aad19
  16. }
  17. .container {
  18. overflow:hidden
  19. }
  20. .container,.page {
  21. position:absolute;
  22. top:0;
  23. right:0;
  24. bottom:0;
  25. left:0
  26. }
  27. .page {
  28. overflow-y:auto;
  29. -webkit-overflow-scrolling:touch;
  30. opacity:0;
  31. z-index:1
  32. }
  33. .page.js_show {
  34. opacity:1
  35. }
  36. .page__hd {
  37. padding: 40px;
  38. padding-bottom: 15px;
  39. }
  40. .page__bd_spacing {
  41. padding:0 15px
  42. }
  43. .page__ft {
  44. padding-top:40px;
  45. padding-bottom:10px;
  46. text-align:center
  47. }
  48. .page__ft img {
  49. height:19px
  50. }
  51. .page__ft.j_bottom {
  52. position:absolute;
  53. bottom:0;
  54. left:0;
  55. right:0
  56. }
  57. .page__title {
  58. text-align:left;
  59. font-size:20px;
  60. font-weight:400
  61. }
  62. .page__desc {
  63. margin-top:5px;
  64. color:#888;
  65. text-align:left;
  66. font-size:14px
  67. }
  68. .page.home .page__intro-icon {
  69. margin-top:-.2em;
  70. margin-left:5px;
  71. width:16px;
  72. height:16px;
  73. vertical-align:middle
  74. }
  75. .page.home .page__title {
  76. /*font-size:0;*/
  77. margin-bottom:15px
  78. }
  79. .page.home .page__bd img {
  80. width:30px;
  81. height:30px
  82. }
  83. .page.home .page__bd li {
  84. margin:10px 0;
  85. background-color:#fff;
  86. overflow:hidden;
  87. border-radius:2px;
  88. cursor:pointer
  89. }
  90. .page.home .page__bd li.js_show .weui-flex {
  91. opacity:.4
  92. }
  93. .page.home .page__bd li.js_show .page__category {
  94. height:auto
  95. }
  96. .page.home .page__bd li.js_show .page__category-content {
  97. opacity:1;
  98. -webkit-transform:translateY(0);
  99. transform:translateY(0)
  100. }
  101. .page.home .page__bd li:first-child {
  102. margin-top:0
  103. }
  104. .page.home .page__category {
  105. height:0;
  106. overflow:hidden
  107. }
  108. .page.home .page__category-content {
  109. opacity:0;
  110. -webkit-transform:translateY(-50%);
  111. transform:translateY(-50%);
  112. -webkit-transition:.3s;
  113. transition:.3s
  114. }
  115. .page.home .weui-flex {
  116. padding:20px;
  117. -webkit-box-align:center;
  118. -webkit-align-items:center;
  119. align-items:center;
  120. -webkit-transition:.3s;
  121. transition:.3s
  122. }
  123. .page.home .weui-cells {
  124. margin-top:0
  125. }
  126. .page.home .weui-cells:after,.page.home .weui-cells:before {
  127. display:none
  128. }
  129. .page.home .weui-cell {
  130. padding-left:20px;
  131. padding-right:20px
  132. }
  133. .page.home .weui-cell:before {
  134. left:20px;
  135. right:20px
  136. }
  137. .page.button .page__bd {
  138. padding:0 15px
  139. }
  140. .page.button .button-sp-area {
  141. margin:0 auto;
  142. padding:15px 0;
  143. width:60%
  144. }
  145. .page.cell .page__bd,.page.form .page__bd {
  146. padding-bottom:30px
  147. }
  148. .page.actionsheet,.page.dialog {
  149. background-color:#fff
  150. }
  151. .page.dialog .page__bd {
  152. padding:0 15px
  153. }
  154. .page.msg,.page.msg_success,.page.msg_warn,.page.toast {
  155. background-color:#fff
  156. }
  157. .page.panel .page__bd {
  158. padding-bottom:20px
  159. }
  160. .page.article {
  161. background-color:#fff
  162. }
  163. .page.icons {
  164. text-align:center
  165. }
  166. .page.icons .page__bd {
  167. padding:0 40px;
  168. text-align:left
  169. }
  170. .page.icons .icon-box {
  171. margin-bottom:25px;
  172. display:-webkit-box;
  173. display:-webkit-flex;
  174. display:flex;
  175. -webkit-box-align:center;
  176. -webkit-align-items:center;
  177. align-items:center
  178. }
  179. .page.icons .icon-box i {
  180. margin-right:18px
  181. }
  182. .page.icons .icon-box__ctn {
  183. -webkit-flex-shrink:100;
  184. flex-shrink:100
  185. }
  186. .page.icons .icon-box__title {
  187. font-weight:400
  188. }
  189. .page.icons .icon-box__desc {
  190. margin-top:6px;
  191. font-size:12px;
  192. color:#888
  193. }
  194. .page.icons .icon_sp_area {
  195. margin-top:10px;
  196. text-align:left
  197. }
  198. .page.icons .icon_sp_area i:before {
  199. margin-bottom:5px
  200. }
  201. .page.flex .placeholder {
  202. background-color:#ebebeb;
  203. height:2.3em;
  204. line-height:2.3em;
  205. text-align:center;
  206. margin:5px;
  207. color:#cfcfcf
  208. }
  209. .page.loadmore {
  210. background-color:#fff
  211. }
  212. .page.layers {
  213. overflow-x:hidden;
  214. -webkit-perspective:1000px;
  215. perspective:1000px
  216. }
  217. @media only screen and (max-width:320px) {
  218. .page.layers .page__hd {
  219. padding-left:20px;
  220. padding-right:20px
  221. }
  222. }.page.layers .page__bd {
  223. position:relative
  224. }
  225. .page.layers .page__desc {
  226. min-height:4.8em
  227. }
  228. .page.layers .layers__layer {
  229. position:absolute;
  230. left:50%;
  231. width:150px;
  232. height:266px;
  233. margin-left:-75px;
  234. box-sizing:border-box;
  235. -webkit-transition:.5s;
  236. transition:.5s;
  237. background:url(images/layers/transparent.gif) no-repeat 50%;
  238. background-size:contain;
  239. font-size:14px;
  240. color:#fff
  241. }
  242. .page.layers .layers__layer span {
  243. position:absolute;
  244. bottom:5px;
  245. left:0;
  246. right:0;
  247. text-align:center;
  248. -webkit-transition:.5s;
  249. transition:.5s
  250. }
  251. .page.layers .layers__layer:last-child span {
  252. color:#aaa
  253. }
  254. .page.layers .layers__layer.j_hide {
  255. opacity:0
  256. }
  257. .page.layers .layers__layer.j_pic span {
  258. color:transparent
  259. }
  260. @media only screen and (min-width:375px) and (min-height:603px) {
  261. .page.layers .layers__layer {
  262. width:180px;
  263. height:320px;
  264. margin-left:-90px
  265. }
  266. }@media only screen and (min-width:414px) and (min-height:640px) {
  267. .page.layers .layers__layer {
  268. width:200px;
  269. height:355px;
  270. margin-left:-100px
  271. }
  272. }.page.layers .layers__layer_popout {
  273. border:1px solid hsla(0,0%,80%,.5);
  274. z-index:4
  275. }
  276. .page.layers .layers__layer_popout.j_transform {
  277. -webkit-transform:translateX(15px) rotateX(45deg) rotate(10deg) skew(-15deg) translateZ(120px);
  278. transform:translateX(15px) rotateX(45deg) rotate(10deg) skew(-15deg) translateZ(120px)
  279. }
  280. @media only screen and (max-width:320px) {
  281. .page.layers .layers__layer_popout.j_transform {
  282. -webkit-transform:translateX(15px) rotateX(45deg) rotate(10deg) skew(-15deg) translateZ(140px);
  283. transform:translateX(15px) rotateX(45deg) rotate(10deg) skew(-15deg) translateZ(140px)
  284. }
  285. }.page.layers .layers__layer_popout.j_pic {
  286. border-color:transparent;
  287. background-image:url(images/layers/popout.png)
  288. }
  289. .page.layers .layers__layer_mask {
  290. background-color:rgba(0,0,0,.5);
  291. z-index:3
  292. }
  293. .page.layers .layers__layer_mask.j_transform {
  294. -webkit-transform:translateX(15px) rotateX(45deg) rotate(10deg) skew(-15deg) translateZ(40px);
  295. transform:translateX(15px) rotateX(45deg) rotate(10deg) skew(-15deg) translateZ(40px)
  296. }
  297. @media only screen and (max-width:320px) {
  298. .page.layers .layers__layer_mask.j_transform {
  299. -webkit-transform:translateX(15px) rotateX(45deg) rotate(10deg) skew(-15deg) translateZ(80px);
  300. transform:translateX(15px) rotateX(45deg) rotate(10deg) skew(-15deg) translateZ(80px)
  301. }
  302. }.page.layers .layers__layer_navigation {
  303. background-color:rgba(40,187,102,.5);
  304. z-index:2
  305. }
  306. .page.layers .layers__layer_navigation.j_transform {
  307. -webkit-transform:translateX(15px) rotateX(45deg) rotate(10deg) skew(-15deg) translateZ(-40px);
  308. transform:translateX(15px) rotateX(45deg) rotate(10deg) skew(-15deg) translateZ(-40px)
  309. }
  310. @media only screen and (max-width:320px) {
  311. .page.layers .layers__layer_navigation.j_transform {
  312. -webkit-transform:translateX(15px) rotateX(45deg) rotate(10deg) skew(-15deg) translateZ(20px);
  313. transform:translateX(15px) rotateX(45deg) rotate(10deg) skew(-15deg) translateZ(20px)
  314. }
  315. }.page.layers .layers__layer_navigation.j_pic {
  316. background-color:transparent;
  317. background-image:url(images/layers/navigation.png)
  318. }
  319. .page.layers .layers__layer_content {
  320. background-color:#fff;
  321. z-index:1
  322. }
  323. .page.layers .layers__layer_content.j_transform {
  324. -webkit-transform:translateX(15px) rotateX(45deg) rotate(10deg) skew(-15deg) translateZ(-120px);
  325. transform:translateX(15px) rotateX(45deg) rotate(10deg) skew(-15deg) translateZ(-120px)
  326. }
  327. @media only screen and (max-width:320px) {
  328. .page.layers .layers__layer_content.j_transform {
  329. -webkit-transform:translateX(15px) rotateX(45deg) rotate(10deg) skew(-15deg) translateZ(-40px);
  330. transform:translateX(15px) rotateX(45deg) rotate(10deg) skew(-15deg) translateZ(-40px)
  331. }
  332. }.page.layers .layers__layer_content.j_pic {
  333. background-image:url(images/layers/content.png)
  334. }
  335. .page.searchbar .searchbar-result {
  336. display:none;
  337. margin-top:0;
  338. font-size:14px
  339. }
  340. .page.searchbar .searchbar-result .weui-cell__bd {
  341. padding:2px 0 2px 20px;
  342. color:#666
  343. }
  344. .page.actionsheet,.page.gallery,.page.picker {
  345. overflow:hidden
  346. }
  347. @-webkit-keyframes a {
  348. 0% {
  349. -webkit-transform:translate3d(100%,0,0);
  350. transform:translate3d(100%,0,0);
  351. opacity:0
  352. }
  353. to {
  354. -webkit-transform:translateZ(0);
  355. transform:translateZ(0);
  356. opacity:1
  357. }
  358. }@keyframes a {
  359. 0% {
  360. -webkit-transform:translate3d(100%,0,0);
  361. transform:translate3d(100%,0,0);
  362. opacity:0
  363. }
  364. to {
  365. -webkit-transform:translateZ(0);
  366. transform:translateZ(0);
  367. opacity:1
  368. }
  369. }@-webkit-keyframes b {
  370. 0% {
  371. -webkit-transform:translateZ(0);
  372. transform:translateZ(0);
  373. opacity:1
  374. }
  375. to {
  376. -webkit-transform:translate3d(100%,0,0);
  377. transform:translate3d(100%,0,0);
  378. opacity:0
  379. }
  380. }@keyframes b {
  381. 0% {
  382. -webkit-transform:translateZ(0);
  383. transform:translateZ(0);
  384. opacity:1
  385. }
  386. to {
  387. -webkit-transform:translate3d(100%,0,0);
  388. transform:translate3d(100%,0,0);
  389. opacity:0
  390. }
  391. }.page.slideIn {
  392. -webkit-animation:a .2s forwards;
  393. animation:a .2s forwards
  394. }
  395. .page.slideOut {
  396. -webkit-animation:b .2s forwards;
  397. animation:b .2s forwards
  398. }