drawer.scss 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. .m-drawer-pupop{
  2. width:100%;
  3. height:100%;
  4. position: fixed;
  5. top:0;
  6. left:0;
  7. background: rgba(0,0,0,.5);
  8. z-index: 2001;
  9. }
  10. .m-drawer__container{
  11. background: #fff;
  12. width: 30%;
  13. height: 100%;
  14. position: fixed;
  15. z-index: 8881;
  16. background: #fff;
  17. box-shadow: 0 2px 12px #0707071a;
  18. .m-drawer{
  19. width: 100%;
  20. height: 100%;
  21. background: #fff;
  22. position: absolute;
  23. display: flex;
  24. flex-direction: column;
  25. .m-drawer__header{
  26. width:100%;
  27. height: 50px;
  28. line-height: 50px;
  29. position: relative;
  30. padding-left: 20px;
  31. box-sizing: border-box;
  32. border-bottom:1px solid #f0f0f0;
  33. .m-drawer__title{
  34. line-height: 50px;
  35. font-size: 18px;
  36. color: #505050;
  37. }
  38. .icon-close{
  39. line-height: 50px;
  40. font-size: 18px;
  41. position: absolute;
  42. right: 5px;
  43. top: 0;
  44. cursor: pointer;
  45. display: inline-block;
  46. width: 50px;
  47. text-align: center;
  48. }
  49. }
  50. .m-drawer__body{
  51. padding: 20px;
  52. flex: 1;
  53. }
  54. .m-drawer__footer{
  55. text-align: right;
  56. padding: 20px;
  57. box-sizing: border-box;
  58. }
  59. }
  60. }