blob: b8ec246ed3f8d908eaa6a107457bbecb903646bf [file] [log] [blame]
Yoshie Muranaka0fc91e72020-02-05 11:23:06 -08001.b-toaster {
2 top: 75px!important; // make sure toasts do not hide top header
3}
4
SurenNewarec2862dc2020-09-11 18:02:42 +05305// Toast component and status icon style
Yoshie Muranaka0fc91e72020-02-05 11:23:06 -08006.toast {
SurenNewarec2862dc2020-09-11 18:02:42 +05307 padding: $spacer/2 $spacer/2 $spacer/2 $spacer+2;
Derick Montague4e90eed2020-03-03 18:11:44 -06008 border-width: 0 0 0 3px;
Dixsie Wolmers12bc8752020-09-22 09:38:28 -05009 box-shadow: $box-shadow;
Yoshie Muranaka0fc91e72020-02-05 11:23:06 -080010 .close {
11 font-weight: 300;
12 opacity: 1;
13 }
14}
15
SurenNewarec2862dc2020-09-11 18:02:42 +053016.toast-icon svg {
17 position: absolute;
18 top: 20px;
19 left: 20px;
20}
21
Yoshie Muranaka0fc91e72020-02-05 11:23:06 -080022.toast-header {
23 background-color: inherit!important; //override specificity
24 border: none;
Yoshie Muranaka01da8182020-07-08 15:46:43 -070025 color: theme-color("dark")!important; //override specificity
Yoshie Muranaka0fc91e72020-02-05 11:23:06 -080026 padding-bottom: 0;
27}
28
29.toast-body {
Yoshie Muranaka01da8182020-07-08 15:46:43 -070030 color: theme-color("dark");
Yoshie Muranaka0fc91e72020-02-05 11:23:06 -080031 padding-top: 0;
32}
33
34.b-toast-success .toast {
Yoshie Muranaka01da8182020-07-08 15:46:43 -070035 border-left-color: theme-color("success")!important;
Yoshie Muranaka1f4eaa12020-08-10 11:17:12 -070036 background-color: theme-color-light("success")!important;
Derick Montague4e90eed2020-03-03 18:11:44 -060037}
38
39.b-toast-info .toast {
Yoshie Muranaka01da8182020-07-08 15:46:43 -070040 border-left-color: theme-color("info")!important;
Yoshie Muranaka1f4eaa12020-08-10 11:17:12 -070041 background-color: theme-color-light("info")!important;
Yoshie Muranaka0fc91e72020-02-05 11:23:06 -080042}
43
44.b-toast-danger .toast {
Yoshie Muranaka01da8182020-07-08 15:46:43 -070045 border-left-color: theme-color("danger")!important;
Yoshie Muranaka1f4eaa12020-08-10 11:17:12 -070046 background-color: theme-color-light("danger")!important;
Yoshie Muranaka183c2752020-02-12 11:30:49 -080047}
48
49.b-toast-warning .toast {
Yoshie Muranaka01da8182020-07-08 15:46:43 -070050 border-left-color: theme-color("warning")!important;
Yoshie Muranaka1f4eaa12020-08-10 11:17:12 -070051 background-color: theme-color-light("warning")!important;
Yoshie Muranaka0fc91e72020-02-05 11:23:06 -080052}