Derick Montague | fd22b5b | 2020-03-13 15:15:43 -0500 | [diff] [blame] | 1 | .alert { |
| 2 | display: flex; |
| 3 | padding: $spacer; |
| 4 | border-width: 0 0 0 3px; |
Yoshie Muranaka | 01da818 | 2020-07-08 15:46:43 -0700 | [diff] [blame] | 5 | color: gray("800"); |
Derick Montague | fd22b5b | 2020-03-13 15:15:43 -0500 | [diff] [blame] | 6 | margin-bottom: $spacer; |
| 7 | |
Derick Montague | d0d9215 | 2020-04-08 13:31:31 -0500 | [diff] [blame] | 8 | &.small { |
| 9 | padding: $spacer / 2; |
| 10 | font-size: 1rem; |
| 11 | } |
| 12 | |
Derick Montague | fd22b5b | 2020-03-13 15:15:43 -0500 | [diff] [blame] | 13 | .close { |
| 14 | font-weight: 300; |
| 15 | opacity: 1; |
| 16 | } |
| 17 | |
| 18 | .alert-icon { |
| 19 | display: inline-flex; |
SurenNeware | 57b2262 | 2020-08-07 18:22:47 +0530 | [diff] [blame^] | 20 | align-items: flex-start; |
Derick Montague | fd22b5b | 2020-03-13 15:15:43 -0500 | [diff] [blame] | 21 | margin-right: $spacer; |
| 22 | margin-bottom: $spacer; |
| 23 | |
| 24 | @include media-breakpoint-up(sm) { |
| 25 | margin-bottom: 0; |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | .alert-content { |
| 30 | flex: 1 1 auto; |
| 31 | } |
| 32 | |
| 33 | .alert-title { |
| 34 | margin-bottom: $spacer / 2; |
| 35 | } |
| 36 | |
| 37 | .alert-msg { |
| 38 | p + p { |
| 39 | margin-bottom: $spacer; |
| 40 | } |
| 41 | |
| 42 | p:last-of-type { |
| 43 | margin-bottom: 0; |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | &.alert-info { |
Yoshie Muranaka | 01da818 | 2020-07-08 15:46:43 -0700 | [diff] [blame] | 48 | border-left-color: theme-color("info"); |
Derick Montague | fd22b5b | 2020-03-13 15:15:43 -0500 | [diff] [blame] | 49 | background-color: $info-light; |
Yoshie Muranaka | 01da818 | 2020-07-08 15:46:43 -0700 | [diff] [blame] | 50 | fill: theme-color("info"); |
Derick Montague | fd22b5b | 2020-03-13 15:15:43 -0500 | [diff] [blame] | 51 | } |
| 52 | |
SurenNeware | 57b2262 | 2020-08-07 18:22:47 +0530 | [diff] [blame^] | 53 | &.alert-success { |
| 54 | border-left-color: theme-color("success"); |
| 55 | background-color: $success-light; |
| 56 | fill: theme-color("success"); |
| 57 | } |
| 58 | |
Derick Montague | fd22b5b | 2020-03-13 15:15:43 -0500 | [diff] [blame] | 59 | &.alert-danger { |
Yoshie Muranaka | 01da818 | 2020-07-08 15:46:43 -0700 | [diff] [blame] | 60 | border-left-color: theme-color("danger"); |
Derick Montague | fd22b5b | 2020-03-13 15:15:43 -0500 | [diff] [blame] | 61 | background-color: $danger-light; |
Yoshie Muranaka | 01da818 | 2020-07-08 15:46:43 -0700 | [diff] [blame] | 62 | fill: theme-color("danger"); |
Derick Montague | fd22b5b | 2020-03-13 15:15:43 -0500 | [diff] [blame] | 63 | } |
| 64 | |
| 65 | &.alert-warning { |
Yoshie Muranaka | 01da818 | 2020-07-08 15:46:43 -0700 | [diff] [blame] | 66 | border-left-color: theme-color("warning"); |
Derick Montague | fd22b5b | 2020-03-13 15:15:43 -0500 | [diff] [blame] | 67 | background-color: $warning-light; |
Yoshie Muranaka | 01da818 | 2020-07-08 15:46:43 -0700 | [diff] [blame] | 68 | fill: theme-color("warning"); |
Derick Montague | fd22b5b | 2020-03-13 15:15:43 -0500 | [diff] [blame] | 69 | } |
| 70 | } |