summaryrefslogtreecommitdiff
path: root/src/assets/styles/bmc/_sila/_toasts.scss
blob: ab7e36c2f2a3e578997a7ea35a7da5625428386b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
.b-toaster {
  top: 75px !important; // make sure toasts do not hide top header
}

// Toast component and status icon style
.toast {
  padding: $spacer/2 $spacer/2 $spacer/2 $spacer + 2;
  border-width: 0 0 0 3px;
  box-shadow: $box-shadow;
  .close {
    font-weight: 300;
    opacity: 1;
  }
}

.toast-header {
  display: flex;
  align-items: flex-start;
  background-color: transparent !important; //override specificity
  border: none;
  padding-bottom: 0;
  @include themify($themes) {
    color: themed("text-primary") !important; //override specificity
  }
}

.toast-icon {
  display: flex;
  margin-right: 1rem;

  svg {
    margin-left: -2.5rem;
  }

  + .close {
    line-height: 0.9;
  }
}

.toast-body {
  @include themify($themes) {
    color: themed("text-primary") !important;
  }
  padding-top: 0;
}

.b-toast-success .toast {
  border-left-color: theme-color("success") !important;
  background-color: theme-color-light("success") !important;
}

.b-toast-info .toast {
  border-left-color: theme-color("info") !important;
  background-color: theme-color-light("info") !important;
}

.b-toast-danger .toast {
  @include themify($themes) {
    border-left-color: themed("red-40") !important;
    background-color: themed("red-5") !important;
  }
}

.b-toast-warning .toast {
  border-left-color: theme-color("warning") !important;
  background-color: theme-color-light("warning") !important;
}