index.wxss 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. .i-drawer {
  2. visibility: hidden;
  3. }
  4. .i-drawer-show {
  5. visibility: visible;
  6. }
  7. .i-drawer-show .i-drawer-mask {
  8. display: block;
  9. opacity: 1;
  10. }
  11. .i-drawer-show .i-drawer-container {
  12. opacity: 1;
  13. }
  14. .i-drawer-show.i-drawer-left .i-drawer-container,
  15. .i-drawer-show.i-drawer-right .i-drawer-container {
  16. transform: translate3d(0, -50%, 0);
  17. }
  18. .i-drawer-mask {
  19. opacity: 0;
  20. position: fixed;
  21. top: 0;
  22. left: 0;
  23. right: 0;
  24. bottom: 0;
  25. z-index: 6;
  26. background: rgba(0, 0, 0, 0.6);
  27. transition: all 0.3s ease-in-out;
  28. }
  29. .i-drawer-container {
  30. position: fixed;
  31. left: 50%;
  32. height: 100%;
  33. top: 0;
  34. transform: translate3d(-50%, -50%, 0);
  35. transform-origin: center;
  36. transition: all 0.3s ease-in-out;
  37. z-index: 7;
  38. opacity: 0;
  39. overflow-y: scroll;
  40. background: #fff;
  41. -webkit-overflow-scrolling: touch;
  42. -ms-touch-action: pan-y cross-slide-y;
  43. -ms-scroll-chaining: none;
  44. -ms-scroll-limit: 0 50 0 50;
  45. }
  46. .i-drawer-left .i-drawer-container {
  47. left: 0;
  48. top: 50%;
  49. transform: translate3d(-100%, -50%, 0);
  50. }
  51. .i-drawer-right .i-drawer-container {
  52. right: 0;
  53. top: 50%;
  54. left: auto;
  55. transform: translate3d(100%, -50%, 0);
  56. }