summaryrefslogtreecommitdiff
path: root/src/assets/styles/vendor-overrides/bootstrap/_alert.scss
blob: 0b7b518ad0a1347f10c72d889ac95d9a64111ae1 (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
.alert {
    display: flex;
    padding: $spacer;
    border-width: 0 0 0 3px;
    color: $gray-800;
    margin-bottom: $spacer;

    &.small {
      padding: $spacer / 2;
      font-size: 1rem;
    }

    .close {
      font-weight: 300;
      opacity: 1;
    }

    .alert-icon {
      display: inline-flex;
      align-items: center;
      margin-right: $spacer;
      margin-bottom: $spacer;

      @include media-breakpoint-up(sm) {
        margin-bottom: 0;
      }
    }

    .alert-content {
      flex: 1 1 auto;
    }

    .alert-title {
      margin-bottom: $spacer / 2;
    }

    .alert-msg {
      p + p {
        margin-bottom: $spacer;
      }

      p:last-of-type {
        margin-bottom: 0;
      }
    }

    &.alert-info {
      border-left-color: $info;
      background-color: $info-light;
      fill: $info;
    }

    &.alert-danger {
      border-left-color: $danger;
      background-color: $danger-light;
      fill: $danger;
    }

    &.alert-warning {
      border-left-color: $warning;
      background-color: $warning-light;
      fill: $warning;
    }
  }