summaryrefslogtreecommitdiff
path: root/WebInterface/src/style/partials/front-layer/_notifications.scss
blob: d8e81599cb81905fc412dbc4d4661bb86769b836 (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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
@import '../colors';

.front-layer {
  .banner {
    background-color: white;
    border: none;
    border-radius: 16px 16px 0 0;
    display: flex;
    margin: 0;
    margin-bottom: 1rem;
    padding-top: 1rem;
    max-height: 10rem;
    flex-direction: row;
    flex-wrap: wrap;
    transform-origin: top;
    transition: max-height 200ms ease, transform 200ms ease, visibility 200ms step-start;
    min-height: 3.5rem;
    justify-items: center;
    justify-content: center;

    @media (max-height: 550px) {
      position: absolute;
      width: 100%;
      box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
    }

    &.hidden {
      transform: scaleY(0);
      visibility: hidden;
      max-height: 0;
      transition: max-height 200ms ease, transform 200ms ease, visibility 200ms step-end;
      min-height: 0;
      margin-bottom: 0;
    }

    .notification-badge {
      height: 1rem;
      min-width: 1rem;
      font-weight: bold;
      color: $secondary-text;
      font-size: 1rem;
      padding: 0.5rem;
      margin: 0.5rem 0 0.5rem 1rem;
      text-align: center;
      line-height: 1rem;
      background-color: $secondary;
      border: none;
      border-radius: 50%;

      &.hidden {
        display: none;
      }
    }

    .banner-text {
      align-self: left;
      margin: 1rem;
      flex-grow: 100;
    }

    .btn-container{
      display: flex;
      flex-grow: 1;
      text-align: right;


      .banner-button {
        color: $secondary-dark;
        padding: 8px 16px;
        margin: 0;
        margin-right: 1rem;
        letter-spacing: 0.125rem;
      }
    }

    hr {
      width: 100%;

      @media (max-height: 550px) {
        margin-bottom: 0;
      }
    }
  }
}