基于umi的开发模板

game_modal.less 1.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* ant-modal 默认覆盖样式 */
  2. .override-ant-modal {
  3. :global(.ant-modal):global(.game-status-modal) {
  4. width: 290px !important;
  5. height: 165px;
  6. top: 50%;
  7. left: 50%;
  8. transform-origin: 0 0 0 !important;
  9. margin: -82.5px 0 0 -145px;
  10. :global(.ant-modal-content) {
  11. position: relative;
  12. background-color: rgba(255, 255, 255, 1) !important;
  13. border-radius: 7px;
  14. border: none;
  15. background-clip: padding-box;
  16. box-shadow: 0 10px 15px rgba(106, 113, 119, 0.17) !important;
  17. :global(.ant-modal-body) {
  18. :global(.ant-modal-confirm-body) {
  19. & > :global(.ant-modal-confirm-content) {
  20. margin-left: 0;
  21. }
  22. }
  23. }
  24. :global(.ant-modal-confirm-btns) {
  25. display: flex;
  26. justify-content: center;
  27. float: none;
  28. }
  29. }
  30. :global(.ant-btn-primary) {
  31. background-color: #1A91EB;
  32. border-color: #1A91EB;
  33. }
  34. }
  35. :global(.ant-modal-mask), :global(.ant-modal-wrap) {
  36. position: absolute;
  37. }
  38. }