暂无描述

style.scss 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. @import '~scssinc';
  2. .bf-modal{
  3. position: fixed;
  4. z-index: 99999;
  5. top: 0;
  6. left: 0;
  7. width: 100%;
  8. height: 100%;
  9. button{
  10. outline: none;
  11. }
  12. }
  13. .bf-modal-mask{
  14. position: absolute;
  15. z-index: 1;
  16. top: 0;
  17. left: 0;
  18. width: 100%;
  19. height: 100%;
  20. background-color: rgba(#000, .1);
  21. opacity: 0;
  22. transition: opacity .2s;
  23. }
  24. .bf-modal-content{
  25. position: absolute;
  26. z-index: 2;
  27. top: 45%;
  28. left: 50%;
  29. max-width: 95%;
  30. background-color: #fff;
  31. border-radius: 2px;
  32. box-shadow: 0 15px 30px rgba(#000, .1);
  33. opacity: 0;
  34. transform: translate(-50%, -40%);
  35. transition: transform .2s, opacity .2s;
  36. }
  37. .bf-modal-header{
  38. height: 50px;
  39. }
  40. .bf-modal-caption{
  41. float: left;
  42. margin: 0;
  43. padding: 0 15px;
  44. color: rgba(#999, 1);
  45. font-size: 14px;
  46. font-weight: normal;
  47. line-height: 50px;
  48. }
  49. .bf-modal-close-button{
  50. float: right;
  51. width: 50px;
  52. height: 50px;
  53. background-color: transparent;
  54. border: none;
  55. color: #ccc;
  56. font-size: 18px;
  57. cursor: pointer;
  58. &:hover{
  59. color: $COLOR_DANGER;
  60. }
  61. }
  62. .bf-modal-body{
  63. overflow: auto;
  64. }
  65. .bf-modal-footer{
  66. min-height: 15px;
  67. padding: 0 15px;
  68. overflow: hidden;
  69. }
  70. .bf-modal-addon-text{
  71. float: left;
  72. color: #999;
  73. font-size: 12px;
  74. line-height: 60px;
  75. }
  76. .bf-modal-buttons{
  77. float: right;
  78. }
  79. .bf-modal-cancel,
  80. .bf-modal-confirm{
  81. height: 36px;
  82. margin: 12px 0 12px 15px;
  83. padding: 0 30px;
  84. border: none;
  85. border-radius: 2px;
  86. font-size: 12px;
  87. font-weight: bold;
  88. cursor: pointer;
  89. }
  90. .bf-modal-cancel{
  91. background-color: #e8e9ea;
  92. color: #999;
  93. &:hover{
  94. background-color: #d8d9da;
  95. }
  96. }
  97. .bf-modal-confirm{
  98. background-color: $COLOR_ACTIVE;
  99. color: #fff;
  100. &:hover{
  101. background-color: $COLOR_ACTIVE - 20;
  102. }
  103. &.disabled{
  104. opacity: .3;
  105. pointer-events: none;
  106. filter: grayscale(.4);
  107. }
  108. }
  109. .bf-modal-root.active{
  110. .bf-modal-mask{
  111. opacity: 1;
  112. }
  113. .bf-modal-content{
  114. opacity: 1;
  115. transform: translate(-50%, -50%);
  116. }
  117. }