layer.css 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* layerµ¯²ãÒÆ¶¯°æÑùʽ */
  2. .layermbox{position:absolute; left:0; top:0; width:100%; z-index:19891014;}
  3. /*.layermbox *{margin:0; bottom:0;}*/
  4. .layermanim{transition: all .18s; -webkit-transition: all .18s;}
  5. .laymshade,
  6. .layermmain{position:fixed; left:0; top:0; width:100%; height:100%;}
  7. .laymshade{background-color:rgba(0,0,0, .5); pointer-events:auto;}
  8. .layermmain{display:table; font-family: Helvetica, arial, sans-serif; pointer-events: none;}
  9. .layermmain .section{display:table-cell; vertical-align:middle; text-align:center;}
  10. .layermchild{position:relative; display:inline-block; text-align:left; background-color:#fff; font-size:20px; border-radius:6px; box-shadow:0 0 8px rgba(0, 0, 0, 0.1); opacity: 0; transform: scale(0); -webkit-transform: scale(0); pointer-events:auto;}
  11. .layermborder{border:1px solid #999;}
  12. .layermshow .layermchild{opacity: 1; transform:scale(1); -webkit-transform: scale(1);}
  13. .layermbox0 .layermchild{max-width:300px; min-width:200px;}
  14. .layermbox1 .layermchild{border:none; border-radius:0;}
  15. .layermbox2 .layermchild{width:auto; max-width:260px; min-width:40px; border:none; background-color:rgba(0,0,0,.6); color:#fff;}
  16. .layermchild h3{padding:0 45px 0 10px; height:50px; line-height:50px; border-bottom:1px solid #EBEBEB; font-size:16px; font-weight:400; border-radius:5px 5px 0 0; border-bottom:1px solid #EBEBEB;}
  17. .layermchild h3,
  18. .layermbtn span{ text-overflow:ellipsis; overflow:hidden; white-space:nowrap;}
  19. .layermcont{padding:20px 15px; line-height:30px; border-radius:5px;text-align: center;}
  20. .layermbox1 .layermcont{padding:0;}
  21. .layermbox2 .layermcont{text-align:center; padding:30px 30px 0; line-height: 0;}
  22. .layermbox2 .layermcont i{width:1.5rem; height:1.5rem; margin-left:8px; display:inline-block; background-color:#fff; border-radius:100%;}
  23. .layermbox2 .layermcont i{-webkit-animation: bouncedelay 1.4s infinite ease-in-out; animation: bouncedelay 1.4s infinite ease-in-out; -webkit-animation-fill-mode: both; animation-fill-mode: both;}
  24. @-webkit-keyframes bouncedelay{
  25. 0%,80%,100%{-webkit-transform:scale(0)}
  26. 40%{-webkit-transform:scale(1)}
  27. }
  28. @keyframes bouncedelay{
  29. 0%,80%,100%{transform:scale(0);-webkit-transform:scale(0)}
  30. 40%{transform:scale(1);-webkit-transform:scale(1)}
  31. }
  32. .layermbox2 .layermcont i:first-child{margin-left:0; -webkit-animation-delay: -.32s; animation-delay: -.32s;}
  33. .layermbox2 .layermcont i.laymloadtwo{-webkit-animation-delay: -.16s; animation-delay: -.16s;}
  34. .layermbox2 .layermcont>div{line-height:22px; padding-top:7px; margin-bottom:20px; font-size: 14px;}
  35. .layermbtn{position:relative; height:50px; line-height:50px; font-size:0; text-align:center; border-top:1px solid #EBEBEB;}
  36. .layermbtn span{position:relative; display:inline-block; width:50%; text-align:center; font-size:14px; cursor:pointer; border-radius: 0 5px 0 0;}
  37. .layermbtn span:first-child{/*height: 50px; */
  38. /* background-color: #fff; */
  39. /* border-radius: 0 0 0 5px; */}
  40. .layermbtn:before{content:'\20'; position:absolute; width:1px; height:49px; left:50%; top:0; background-color:#EBEBEB;}
  41. .layermend{position:absolute; right:7px; top:10px; width:30px; height:30px; border: 0; font-weight:400; background: transparent; cursor: pointer; -webkit-appearance: none; font-size:30px;}
  42. .layermend::before, .layermend::after{position:absolute; left:5px; top:13px; content:''; width:20px; height:2px; background-color:rgba(0,0,0,.3); transform:rotate(45deg); -webkit-transform:rotate(45deg); border-radius: 3px;}
  43. .layermend::after{transform:rotate(-45deg); -webkit-transform:rotate(-45deg);}