Yoshie Muranaka | 0fc91e7 | 2020-02-05 11:23:06 -0800 | [diff] [blame] | 1 | .b-toaster { |
| 2 | top: 75px!important; // make sure toasts do not hide top header |
| 3 | } |
| 4 | |
SurenNeware | c2862dc | 2020-09-11 18:02:42 +0530 | [diff] [blame] | 5 | // Toast component and status icon style |
Yoshie Muranaka | 0fc91e7 | 2020-02-05 11:23:06 -0800 | [diff] [blame] | 6 | .toast { |
SurenNeware | c2862dc | 2020-09-11 18:02:42 +0530 | [diff] [blame] | 7 | padding: $spacer/2 $spacer/2 $spacer/2 $spacer+2; |
Derick Montague | 4e90eed | 2020-03-03 18:11:44 -0600 | [diff] [blame] | 8 | border-width: 0 0 0 3px; |
Dixsie Wolmers | 12bc875 | 2020-09-22 09:38:28 -0500 | [diff] [blame] | 9 | box-shadow: $box-shadow; |
Yoshie Muranaka | 0fc91e7 | 2020-02-05 11:23:06 -0800 | [diff] [blame] | 10 | .close { |
| 11 | font-weight: 300; |
| 12 | opacity: 1; |
| 13 | } |
| 14 | } |
| 15 | |
| 16 | .toast-header { |
Derick Montague | a36a32f | 2021-02-21 14:57:38 -0600 | [diff] [blame] | 17 | display: flex; |
| 18 | align-items: flex-start; |
Yoshie Muranaka | 0fc91e7 | 2020-02-05 11:23:06 -0800 | [diff] [blame] | 19 | background-color: inherit!important; //override specificity |
| 20 | border: none; |
Yoshie Muranaka | 01da818 | 2020-07-08 15:46:43 -0700 | [diff] [blame] | 21 | color: theme-color("dark")!important; //override specificity |
Yoshie Muranaka | 0fc91e7 | 2020-02-05 11:23:06 -0800 | [diff] [blame] | 22 | padding-bottom: 0; |
| 23 | } |
| 24 | |
Derick Montague | a36a32f | 2021-02-21 14:57:38 -0600 | [diff] [blame] | 25 | .toast-icon { |
| 26 | display: flex; |
| 27 | margin-right: 1rem; |
| 28 | |
| 29 | svg { |
| 30 | margin-left: -2.5rem; |
| 31 | } |
| 32 | |
| 33 | + .close { |
| 34 | line-height: .9; |
| 35 | } |
| 36 | } |
| 37 | |
Yoshie Muranaka | 0fc91e7 | 2020-02-05 11:23:06 -0800 | [diff] [blame] | 38 | .toast-body { |
Yoshie Muranaka | 01da818 | 2020-07-08 15:46:43 -0700 | [diff] [blame] | 39 | color: theme-color("dark"); |
Yoshie Muranaka | 0fc91e7 | 2020-02-05 11:23:06 -0800 | [diff] [blame] | 40 | padding-top: 0; |
| 41 | } |
| 42 | |
| 43 | .b-toast-success .toast { |
Yoshie Muranaka | 01da818 | 2020-07-08 15:46:43 -0700 | [diff] [blame] | 44 | border-left-color: theme-color("success")!important; |
Yoshie Muranaka | 1f4eaa1 | 2020-08-10 11:17:12 -0700 | [diff] [blame] | 45 | background-color: theme-color-light("success")!important; |
Derick Montague | 4e90eed | 2020-03-03 18:11:44 -0600 | [diff] [blame] | 46 | } |
| 47 | |
| 48 | .b-toast-info .toast { |
Yoshie Muranaka | 01da818 | 2020-07-08 15:46:43 -0700 | [diff] [blame] | 49 | border-left-color: theme-color("info")!important; |
Yoshie Muranaka | 1f4eaa1 | 2020-08-10 11:17:12 -0700 | [diff] [blame] | 50 | background-color: theme-color-light("info")!important; |
Yoshie Muranaka | 0fc91e7 | 2020-02-05 11:23:06 -0800 | [diff] [blame] | 51 | } |
| 52 | |
| 53 | .b-toast-danger .toast { |
Yoshie Muranaka | 01da818 | 2020-07-08 15:46:43 -0700 | [diff] [blame] | 54 | border-left-color: theme-color("danger")!important; |
Yoshie Muranaka | 1f4eaa1 | 2020-08-10 11:17:12 -0700 | [diff] [blame] | 55 | background-color: theme-color-light("danger")!important; |
Yoshie Muranaka | 183c275 | 2020-02-12 11:30:49 -0800 | [diff] [blame] | 56 | } |
| 57 | |
| 58 | .b-toast-warning .toast { |
Yoshie Muranaka | 01da818 | 2020-07-08 15:46:43 -0700 | [diff] [blame] | 59 | border-left-color: theme-color("warning")!important; |
Yoshie Muranaka | 1f4eaa1 | 2020-08-10 11:17:12 -0700 | [diff] [blame] | 60 | background-color: theme-color-light("warning")!important; |
Yoshie Muranaka | 0fc91e7 | 2020-02-05 11:23:06 -0800 | [diff] [blame] | 61 | } |