-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotifications.css
79 lines (68 loc) · 1.18 KB
/
notifications.css
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
.notifications {
position: fixed;
width: 25em;
right: 0;
top: 0;
padding: 0 0.5em;
}
.notification,
#notifClearAll {
min-height: 50px;
border-radius: 0.5em;
padding: 0.25em;
margin: 10px 0;
box-sizing: border-box;
font-family: sans-serif;
opacity: 0.7;
transition: opacity 0.5s ease-in-out;
}
#notifClearAll {
display: none;
width: 100%;
min-height: 1.2em;
background-color: #333;
border: 1px solid black;
color: white;
text-align: center;
user-select: none;
}
#notifClearAll:not(:only-child) {
display: block;
}
.notification:hover,
#notifClearAll:hover {
opacity: 1;
}
.notifHeader,
.notifHeaderRight {
display: flex;
justify-content: space-between;
margin-bottom: 0.2em;
}
.notifStatusINFO {
background-color: #e1f2f9;
border: 1px solid navy;
color: navy;
}
.notifStatusERROR {
background-color: #ffc7ce;
border: 1px solid #9c0006;
color: #9c0006;
}
.notifStatusWARNING {
background-color: #ffeb9c;
border: 1px solid #9c5700;
color: #9c5700;
}
.notifHeaderRight {
margin-left: auto;
margin-right: 0;
align-self: flex-end;
}
.notifClose {
margin-left: 1em;
cursor: pointer;
}
.notifTitle {
font-weight: bold;
}