blob: 4e2ad7fa9f8c1fff1881e1e3aa1e3e6d3045c7c4 [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
16.toast-header {
Derick Montaguea36a32f2021-02-21 14:57:38 -060017 display: flex;
18 align-items: flex-start;
Yoshie Muranaka0fc91e72020-02-05 11:23:06 -080019 background-color: inherit!important; //override specificity
20 border: none;
Yoshie Muranaka01da8182020-07-08 15:46:43 -070021 color: theme-color("dark")!important; //override specificity
Yoshie Muranaka0fc91e72020-02-05 11:23:06 -080022 padding-bottom: 0;
23}
24
Derick Montaguea36a32f2021-02-21 14:57:38 -060025.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 Muranaka0fc91e72020-02-05 11:23:06 -080038.toast-body {
Yoshie Muranaka01da8182020-07-08 15:46:43 -070039 color: theme-color("dark");
Yoshie Muranaka0fc91e72020-02-05 11:23:06 -080040 padding-top: 0;
41}
42
43.b-toast-success .toast {
Yoshie Muranaka01da8182020-07-08 15:46:43 -070044 border-left-color: theme-color("success")!important;
Yoshie Muranaka1f4eaa12020-08-10 11:17:12 -070045 background-color: theme-color-light("success")!important;
Derick Montague4e90eed2020-03-03 18:11:44 -060046}
47
48.b-toast-info .toast {
Yoshie Muranaka01da8182020-07-08 15:46:43 -070049 border-left-color: theme-color("info")!important;
Yoshie Muranaka1f4eaa12020-08-10 11:17:12 -070050 background-color: theme-color-light("info")!important;
Yoshie Muranaka0fc91e72020-02-05 11:23:06 -080051}
52
53.b-toast-danger .toast {
Yoshie Muranaka01da8182020-07-08 15:46:43 -070054 border-left-color: theme-color("danger")!important;
Yoshie Muranaka1f4eaa12020-08-10 11:17:12 -070055 background-color: theme-color-light("danger")!important;
Yoshie Muranaka183c2752020-02-12 11:30:49 -080056}
57
58.b-toast-warning .toast {
Yoshie Muranaka01da8182020-07-08 15:46:43 -070059 border-left-color: theme-color("warning")!important;
Yoshie Muranaka1f4eaa12020-08-10 11:17:12 -070060 background-color: theme-color-light("warning")!important;
Yoshie Muranaka0fc91e72020-02-05 11:23:06 -080061}