notification.scss 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. //@import '../theme/variables.scss';
  2. @import "./variables.scss";
  3. $module: #{$prefix}-notification;
  4. .#{$module}-wrapper {
  5. position: fixed;
  6. }
  7. .#{$module}-list {
  8. position: fixed;
  9. box-sizing: border-box;
  10. margin: $spacing-notification_list-margin;
  11. padding: $spacing-notification_list-padding;
  12. z-index: $z-notification;
  13. pointer-events: none;
  14. &[placement="topRight"] {
  15. right: 0;
  16. top: 0;
  17. }
  18. &[placement="top"] {
  19. top: 0;
  20. left: 50%;
  21. transform: translateX(-50%);
  22. }
  23. &[placement="topLeft"] {
  24. left: 0;
  25. top: 0;
  26. }
  27. &[placement="bottom"] {
  28. bottom: 0;
  29. left: 50%;
  30. transform: translateX(-50%);
  31. }
  32. &[placement="bottomRight"] {
  33. bottom: 0;
  34. right: 0;
  35. }
  36. &[placement="bottomLeft"] {
  37. bottom: 0;
  38. left: 0;
  39. }
  40. }
  41. .#{$module} {
  42. &-notice {
  43. @include shadow-elevated;
  44. border-radius: $radius-notification_notice;
  45. padding-top: $spacing-notification_notice-paddingTop;
  46. padding-right: $spacing-notification_notice-paddingRight;
  47. padding-bottom: $spacing-notification_notice-paddingBottom;
  48. padding-left: $spacing-notification_notice-paddingLeft;
  49. margin: $spacing-notification_notice-margin;
  50. width: $width-notification_notice;
  51. min-width: $width-notification_notice_minWidth;
  52. background-color: $color-notification-bg-default;
  53. position: relative;
  54. display: flex;
  55. pointer-events: auto;
  56. &-icon {
  57. width: $width-notification_notice-icon;
  58. @include font-size-header-6;
  59. display: flex;
  60. align-items: flex-start;
  61. justify-content: flex-start;
  62. height: 100%;
  63. margin-right: $spacing-notification_notice_icon-marginRight;
  64. }
  65. &-info {
  66. color: $color-notification_info-icon;
  67. }
  68. &-warning {
  69. color: $color-notification_warning-icon;
  70. }
  71. &-error {
  72. color: $color-notification_danger-icon;
  73. }
  74. &-success {
  75. color: $color-notification_success-icon;
  76. }
  77. &-light {
  78. &.#{$module}-notice-warning {
  79. background-color: $color-notification_warning_light-bg;
  80. border: $width-notification_notice-border solid $color-notification_warning_light-border;
  81. }
  82. &.#{$module}-notice-success {
  83. background-color: $color-notification_success_light-bg;
  84. border: $width-notification_notice-border solid $color-notification_success_light-border;
  85. }
  86. &.#{$module}-notice-info,
  87. &.#{$module}-notice-default {
  88. background-color: $color-notification_info_light-bg;
  89. border: $width-notification_notice-border solid $color-notification_info_light-border;
  90. }
  91. &.#{$module}-notice-error {
  92. background-color: $color-notification_danger_light-bg;
  93. border: $width-notification_notice-border solid $color-notification_danger_light-border;
  94. }
  95. }
  96. &-title {
  97. @include font-size-header-6;
  98. font-weight: $font-notification_notice_title-fontWeight;
  99. color: $color-notification_title-text;
  100. margin-bottom: $spacing-notification_notice_title-marginBottom;
  101. }
  102. &-inner {
  103. display: flex;
  104. width: 100%;
  105. }
  106. &-content-wrapper {
  107. flex: 1 1 auto;
  108. margin-right: $spacing-notification_notice_content_wrapper-marginRight;
  109. }
  110. &-content {
  111. @include font-size-regular;
  112. font-weight: $font-notification_notice_content-fontWeight;
  113. color: $color-notification_content-text;
  114. // padding-top: $spacing-extra-tight;
  115. }
  116. &-icon-close {
  117. height: $width-icon-extra-large;
  118. .#{$prefix}-icon-close {
  119. color: $color-notification_closeBtn-icon;
  120. }
  121. }
  122. &-controls {
  123. display: flex;
  124. @include font-size-regular;
  125. cursor: pointer;
  126. }
  127. &-detail {
  128. text-align: center;
  129. flex-grow: 1;
  130. }
  131. &-later {
  132. text-align: center;
  133. flex-grow: 1;
  134. }
  135. }
  136. }
  137. @import "./rtl.scss";