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
|
.notice {
position: relative;
padding: 1em 1em 1em 2.5em;
margin: 1em 0;
border-radius: 4px;
box-shadow: 0 6px 10px 0 alpha(var(--color-contrast-high), 0.15);
p:last-child {
margin: 0;
}
.notice-title {
position: absolute;
left: 0.8em;
.notice-icon {
width: 1.2em;
height: 1.2em;
}
}
&.error {
background: hsla(0, 65%, 65%, 0.25);
border-left: 5px solid hsl(0, 65%, 55%);
word-break: break-all;
.notice-title {
color: hsl(0, 65%, 55%);
}
}
&.warning {
background: hsla(30, 80%, 70%, 0.25);
border-left: 5px solid hsl(30, 80%, 55%);
word-break: break-all;
.notice-title {
color: hsl(30, 80%, 55%);
}
}
&.tip {
background: hsla(200, 65%, 65%, 0.25);
border-left: 5px solid hsl(200, 65%, 55%);
word-break: break-all;
.notice-title {
color: hsl(200, 65%, 55%);
}
}
&.success {
background: hsla(140, 65%, 65%, 0.25);
border-left: 5px solid hsl(140, 65%, 55%);
word-break: break-all;
.notice-title {
color: hsl(140, 65%, 55%);
}
}
}
[data-theme='dark'] .notice {
&.error {
background: hsla(0, 29%, 41%, 0.65);
border-left: 5px solid hsl(0, 67%, 50%);
.notice-title {
color: hsl(0, 67%, 50%);
}
}
&.warning {
background: hsla(28, 46%, 58%, 0.493);
border-left: 5px solid hsl(30, 72%, 50%);
.notice-title {
color: hsl(30, 72%, 50%);
}
}
&.tip {
background: hsla(200, 56%, 55%, 0.548);
border-left: 5px solid hsl(200, 74%, 57%);
.notice-title {
color: hsl(200, 74%, 57%);
}
}
&.success {
background: hsla(140, 35%, 44%, 0.603);
border-left: 5px solid hsl(140, 73%, 55%);
.notice-title {
color: hsl(140, 73%, 55%);
}
}
}
|