summaryrefslogtreecommitdiff
path: root/src/resources/error.css
blob: e64cd859b0339ec393ea5219d38f8630fc34aa07 (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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
/* Global CSS for error pages */

html {
    /* Adwaita colors */
    --bg-color: #f6f5f4;
    --fg-color: #2e3436;
    --base-color: #fff;
    --text-color: #000;
    --borders: #d3d7cf;

    /* Misc colors */
    --header-color: #999;
    --header-text-color: white;
    --row-hover-color: rgba(0, 0, 0, .1);
}

@media (prefers-color-scheme: dark) {
    html {
        /* Adwaita colors */
        --bg-color: #353535;
        --fg-color: #eeeeec;
        --base-color: #2d2d2d;
        --text-color: #fff;
        --borders: #1b1b1b;

        /* Misc colors */
        --header-color: #666;
        --row-hover-color: rgba(255, 255, 255, .1);
    }
}

html {
    font-family: -webkit-system-font, Cantarell, sans-serif;
    color: var(--fg-color);
    background-color: var(--bg-color);
    height: 100%;
}

.error-body {
    box-sizing:border-box;
    display:flex;
    flex-direction: column;
    justify-content: center;
    max-width:40em;
    margin: auto;
    padding-left: 12px;
    padding-right: 12px;
    line-height: 1.5;
    height: 100%;
}

.error-body .hidden {
    display: none;
}

.error-body .visible {
    display: block;
}

.error-body .clickable {
    cursor: pointer;
    color: #888a85;
}

.error-body .clickable:hover,
.error-body .clickable:focus {
    color: #a6ad9c;
}

#msg-title {
    opacity: 0.55; /* Adwaita's dim-label */
    text-align:center;
}

#msg-title.default {
    color: #2e3436;
}

#msg-title.danger {
    color: #cc0000;
}

#msg-details {
    margin-top: 10px;
    margin-bottom: 10px;
}

#msg-details div {
    font-size: 11pt;
    margin-top: 5px;
    margin-bottom: 5px;
}

#footer {
    margin-top: 35px;
    margin-bottom: 0;
}

.btn {
    min-width: 200px;
    height: 32px;
    margin-top: 15px;
    margin-bottom: 0;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
}

.btn:focus,
.btn:active:focus,
.btn.active:focus {
    outline: thin dotted;
    outline: 5px auto -webkit-focus-ring-color;
    outline-offset: -2px;
}

.btn:hover,
.btn:focus {
    color: #333;
    text-decoration: none;
}

.suggested-action {
    color: white;
    border-color: #1b6acb;
    background-image: linear-gradient(to top, #2379e2 2px, #3584e4);
}

.suggested-action:hover,
.suggested-action:focus,
.suggested-action:active,
.suggested-action.active {
    color: white;
    background-image: linear-gradient(to top, #3584e4, #3987e5 1px);
}

.destructive-action {
    color: white;
    border-color: #b2161d;
    background-image: linear-gradient(to top, #ce1921 2px, #e01b24);
}

.destructive-action:hover,
.destructive-action:focus,
.destructive-action:active,
.destructive-action.active {
    color: white;
    background-image: linear-gradient(to top, #e01b24, #e41c26 1px);
}

details > summary::-webkit-details-marker {
  color: black;
}