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; |
| 5 | color: $gray-800; |
| 6 | margin-bottom: $spacer; |
| 7 | |
| 8 | .close { |
| 9 | font-weight: 300; |
| 10 | opacity: 1; |
| 11 | } |
| 12 | |
| 13 | .alert-icon { |
| 14 | display: inline-flex; |
| 15 | align-items: center; |
| 16 | margin-right: $spacer; |
| 17 | margin-bottom: $spacer; |
| 18 | |
| 19 | @include media-breakpoint-up(sm) { |
| 20 | margin-bottom: 0; |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | .alert-content { |
| 25 | flex: 1 1 auto; |
| 26 | } |
| 27 | |
| 28 | .alert-title { |
| 29 | margin-bottom: $spacer / 2; |
| 30 | } |
| 31 | |
| 32 | .alert-msg { |
| 33 | p + p { |
| 34 | margin-bottom: $spacer; |
| 35 | } |
| 36 | |
| 37 | p:last-of-type { |
| 38 | margin-bottom: 0; |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | &.alert-info { |
| 43 | border-left-color: $info; |
| 44 | background-color: $info-light; |
| 45 | fill: $info; |
| 46 | } |
| 47 | |
| 48 | &.alert-danger { |
| 49 | border-left-color: $danger; |
| 50 | background-color: $danger-light; |
| 51 | fill: $danger; |
| 52 | } |
| 53 | |
| 54 | &.alert-warning { |
| 55 | border-left-color: $warning; |
| 56 | background-color: $warning-light; |
| 57 | fill: $warning; |
| 58 | } |
| 59 | } |