dialog.scss 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. .m-dialog{
  2. position: fixed;
  3. top: 0;
  4. right: 0;
  5. bottom: 0;
  6. left: 0;
  7. z-index: 2000;
  8. height: 100%;
  9. background: rgba(0,0,0,.5);
  10. overflow: auto;
  11. .m-dialog__contentbox{
  12. position: relative;
  13. margin: 0 auto 50px;
  14. background: #fff;
  15. border-radius: 2px;
  16. box-shadow: 0 1px 3px rgb(0 0 0 / 30%);
  17. box-sizing: border-box;
  18. width: 50%;
  19. .m-dialog__header{
  20. width:100%;
  21. height: 50px;
  22. line-height: 50px;
  23. position: relative;
  24. padding-left: 20px;
  25. box-sizing: border-box;
  26. border-bottom:1px solid #f0f0f0;
  27. .m-dialog__title{
  28. line-height: 50px;
  29. font-size: 18px;
  30. color: #303133;
  31. }
  32. .icon-close{
  33. line-height: 50px;
  34. font-size: 17px;
  35. position: absolute;
  36. right: 5px;
  37. top: 0;
  38. cursor: pointer;
  39. display: inline-block;
  40. width: 50px;
  41. text-align: center;
  42. }
  43. }
  44. .m-dialog__body{
  45. padding:20px;
  46. box-sizing: border-box;
  47. }
  48. .m-dialog__footer{
  49. border-top:1px solid #f0f0f0;
  50. text-align: right;
  51. padding: 20px;
  52. box-sizing: border-box;
  53. }
  54. }
  55. .m-dialog--center{
  56. .m-dialog__header{
  57. text-align: center;
  58. }
  59. .m-dialog__footer{
  60. text-align: center;
  61. }
  62. }
  63. }