summaryrefslogtreecommitdiffstats
path: root/webapp/sass/components/_error-bar.scss
blob: 06a35df406f2bd8682d2d60aaa2b593aea63602d (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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
@charset 'UTF-8';

.error-bar {
    background-color: darken($primary-color, 5%);
    color: $white;
    padding: 5px 30px;
    position: fixed;
    text-align: center;
    top: 0;
    width: 100%;
    z-index: 9999;

    &.error-bar--fixed {
        overflow: hidden;
        padding: 1px 30px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    a {
        color: inherit !important;
        text-decoration: underline;

        &:hover,
        &:active,
        &:focus {
            color: inherit !important;
        }

        &.error-bar__close {
            color: $white;
            font-family: 'Open Sans', sans-serif;
            font-size: 20px;
            font-weight: 600;
            padding: 0 10px;
            position: absolute;
            right: 0;
            text-decoration: none;
            top: 0;

            &:hover {
                color: $white;
                text-decoration: none;
            }
        }
    }
}

.error-bar-critical {
    background-color: #B0171F;
    color: white;
    padding: 5px 30px;
    position: absolute;
    text-align: center;
    top: 0;
    width: 100%;
    z-index: 9999;

    a {
        &.error-bar__close {
            color: $white;
            font-family: 'Open Sans', sans-serif;
            font-size: 20px;
            font-weight: 600;
            padding: 0 10px;
            position: absolute;
            right: 0;
            text-decoration: none;
            top: 0;

            &:hover {
                color: $white;
                text-decoration: none;
            }
        }
    }
}

.error-bar-developer {
    background-color: purple;
    color: white;
    padding: 5px 30px;
    position: absolute;
    text-align: center;
    top: 0;
    width: 100%;
    z-index: 9999;

    a {
        &.error-bar__close {
            color: $white;
            font-family: 'Open Sans', sans-serif;
            font-size: 20px;
            font-weight: 600;
            padding: 0 10px;
            position: absolute;
            right: 0;
            text-decoration: none;
            top: 0;

            &:hover {
                color: $white;
                text-decoration: none;
            }
        }
    }
}