popconfirm.scss 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. //@import '../theme/variables.scss';
  2. @import './variables.scss';
  3. $module: #{$prefix}-popconfirm;
  4. .#{$module} {
  5. box-sizing: border-box;
  6. max-width: $width-popconfirm-maxWidth;
  7. &-inner {
  8. display: flex;
  9. flex-direction: column;
  10. padding: $spacing-popconfirm-top $spacing-popconfirm-top $spacing-popconfirm-top $spacing-popconfirm-bottom;
  11. position: relative;
  12. .#{$module}-btn-close {
  13. position: absolute;
  14. right: $spacing-popconfirm_inner_close_btn-right;
  15. top: $spacing-popconfirm_inner_close_btn-top;
  16. margin-top: $spacing-popconfirm_btn_close-margin;
  17. margin-right: $spacing-popconfirm_btn_close-margin;
  18. }
  19. }
  20. &-header {
  21. display: flex;
  22. justify-content: flex-start;
  23. margin-right: $spacing-popconfirm_header-marginRight;
  24. &-title {
  25. @include font-size-header-6;
  26. font-weight: $font-popconfirm_header_title-fontWeight;
  27. margin-bottom: $spacing-popconfirm_header_title-marginBottom;
  28. color: $color-popconfirm_header-text;
  29. }
  30. &-icon {
  31. width: $width-popconfirm-icon;
  32. height: $width-popconfirm-icon;
  33. margin-right: $spacing-popconfirm_header_icon-marginRight;
  34. }
  35. .#{$prefix}-icon {
  36. &-alert_triangle {
  37. color: $color-popconfirm_header_alert-icon;
  38. }
  39. }
  40. &-body {
  41. display: inline-flex;
  42. flex-direction: column;
  43. }
  44. }
  45. &-body {
  46. margin-left: $width-popconfirm-icon + $spacing-popconfirm_header_icon-marginRight;
  47. color: $color-popconfirm_body-text;
  48. & > p {
  49. margin: $spacing-popconfirm_body_p-margin;
  50. padding: $spacing-popconfirm_body_p-padding;
  51. }
  52. }
  53. &-footer {
  54. margin-top: $spacing-popconfirm_footer-marginTop;
  55. display: flex;
  56. justify-content: flex-end;
  57. & > .#{$prefix}-button:first-child:not(:last-child) {
  58. margin-right: $spacing-popconfirm_footer_btn-marginRight;
  59. }
  60. }
  61. // The border-radius is defined separately in the component, the default value is the same as popover
  62. &-popover {
  63. border-radius: $radius-popconfirm-popover;
  64. }
  65. }
  66. .#{$prefix}-popover-with-arrow {
  67. .#{$module}-inner {
  68. padding: $spacing-popconfirm_popover_with_arrow_inner-padding;
  69. .#{$module}-btn-close {
  70. margin-top: $spacing-popconfirm_popover_with_arrow_inner_btn_close-marginTop;
  71. margin-right: $spacing-popconfirm_popover_with_arrow_inner_btn_close-marginRight;
  72. }
  73. }
  74. }
  75. @import './rtl.scss';