index.less 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. @import (reference) './variable.less';
  2. @import (reference) '../style/mixins/hairline.less';
  3. @modalPrefix: ant-modal;
  4. .@{modalPrefix} {
  5. &-body {
  6. width: 560 * @rpx;
  7. background-color: @modal-background-color;
  8. border-radius: @modal-radius;
  9. padding-top: 40 * @rpx;
  10. display: flex;
  11. flex-direction: column;
  12. &-title {
  13. font-size: @font-size-title;
  14. line-height: 50 * @rpx;
  15. text-align: center;
  16. color: @modal-title-color;
  17. margin: 0 24 * @rpx 16 * @rpx;
  18. }
  19. &-content {
  20. line-height: 42 * @rpx;
  21. font-size: @modal-content-size;
  22. color: @modal-content-color;
  23. text-align: center;
  24. margin: 0 24 * @rpx 40 * @rpx;
  25. }
  26. &-footer {
  27. &-focus {
  28. padding: 0 24 * @rpx 24 * @rpx;
  29. &-secondary,
  30. &-cancel {
  31. color: @COLOR_BRAND1;
  32. text-align: center;
  33. font-size: 36 * @rpx;
  34. margin-top: 16 * @rpx;
  35. padding-top: 24 * @rpx;
  36. }
  37. }
  38. &-vertical {
  39. padding: 0 0 24 * @rpx;
  40. &-primary,
  41. &-secondary,
  42. &-cancel {
  43. color: @COLOR_BRAND1;
  44. text-align: center;
  45. font-size: 36 * @rpx;
  46. margin-top: 16 * @rpx;
  47. padding-top: 24 * @rpx;
  48. position: relative;
  49. .hairline('top');
  50. }
  51. }
  52. &-horizontal {
  53. display: flex;
  54. flex-direction: row;
  55. position: relative;
  56. .hairline('top');
  57. &-primary,
  58. &-secondary,
  59. &-cancel {
  60. position: relative;
  61. flex: 1;
  62. color: @COLOR_BRAND1;
  63. text-align: center;
  64. font-size: 36 * @rpx;
  65. padding: 24 * @rpx 0;
  66. &:nth-child(1) {
  67. .hairline('right');
  68. }
  69. }
  70. }
  71. }
  72. }
  73. &-close {
  74. position: absolute;
  75. right: 16 * @rpx;
  76. top: 13 * @rpx;
  77. z-index: 3;
  78. width: 52 * @rpx;
  79. height: 58 * @rpx;
  80. display: flex;
  81. justify-content: center;
  82. align-items: center;
  83. font-size: 36 * @rpx;
  84. color: @COLOR_TEXT_ASSIST;
  85. }
  86. .ant-popup-content.ant-popup-center {
  87. min-height: 0;
  88. padding: 0;
  89. }
  90. }