modal-mask.less 603 B

12345678910111213141516171819202122232425262728293031
  1. @import 'box';
  2. .modal-mask() {
  3. pointer-events: none;
  4. &.@{ant-prefix}-zoom-enter,
  5. &.@{ant-prefix}zoom-appear {
  6. transform: none; // reset scale avoid mousePosition bug
  7. opacity: 0;
  8. animation-duration: @animation-duration-slow;
  9. user-select: none; // https://github.com/ant-design/ant-design/issues/11777
  10. }
  11. &-mask {
  12. .box(fixed);
  13. z-index: @zindex-modal-mask;
  14. height: 100%;
  15. background-color: @modal-mask-bg;
  16. &-hidden {
  17. display: none;
  18. }
  19. }
  20. &-wrap {
  21. .box(fixed);
  22. overflow: auto;
  23. outline: 0;
  24. -webkit-overflow-scrolling: touch;
  25. }
  26. }