Summary Files Commits Branches @commit @diff @stats
path: root / src / toasts.less
blob: a495e894dd6a313e0059a3abdbd38b054b2d5ede (plain) (blame)
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
// Toasts
.toast {
  background-color: @core-border-color;
  border: .1rem solid darken(@core-border-color, 2%);
  border-radius: .3rem;
  color: #666;
  display: block;
  padding: 1.4rem;
  width: 100%;

  &.toast-primary {
    .toast-variant(@core-color);
  }
  &.toast-success {
    .toast-variant(@control-color-success);
  }
  &.toast-info {
    .toast-variant(@control-color-info);
  }
  &.toast-warning {
    .toast-variant(@control-color-warning);
  }
  &.toast-danger {
    .toast-variant(@control-color-danger);
  }

  &:first-child:not(:last-child) {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
  &:not(:first-child):not(:last-child) {
    border-radius: 0;
    margin-top: -.1rem;
  }
  &:last-child:not(:first-child) {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    margin-top: -.1rem;
  }
}