Skip to content

Commit b0f114b

Browse files
committed
style fixes
1 parent ec03177 commit b0f114b

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

src/components/alert/styles.scss

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.alert {
2-
background: var(--accent-2);
32
margin-bottom: 1rem;
43
padding: 0.5rem 1rem;
54
border-radius: 6px;
@@ -8,6 +7,7 @@
87
flex-direction: row;
98
gap: 0.7em;
109
line-height: 1.75em;
10+
border: 1px solid var(--alert-highlight-color);
1111

1212
p {
1313
margin-bottom: 0.5rem;
@@ -28,32 +28,31 @@
2828
padding-inline-start: 0;
2929
margin: 0;
3030
}
31+
32+
.alert-header {
33+
font-weight: 500;
34+
color: inherit;
35+
}
3136
}
3237

3338
.alert-icon {
3439
flex: 1em 0 0;
3540
height: 1.75em;
36-
}
37-
38-
.alert-header {
39-
font-weight: 500;
41+
color: var(--alert-highlight-color);
4042
}
4143

4244
.alert-info {
45+
--alert-highlight-color: var(--desatPurple5);
4346
background: var(--desatPurple15);
44-
background: color-mix(in srgb, var(--desatPurple15), transparent 10%);
4547
}
4648

4749
.alert-success {
50+
--alert-highlight-color: var(--successGreen);
4851
background: var(--successGreen);
4952
background: color-mix(in srgb, var(--successGreen), transparent 85%);
5053
}
5154

5255
.alert-warning {
56+
--alert-highlight-color: var(--flame0);
5357
background: var(--desatFlame8);
54-
background: color-mix(in srgb, var(--desatFlame8), transparent 10%);
55-
56-
> .alert-icon {
57-
color: var(--flame5);
58-
}
5958
}

0 commit comments

Comments
 (0)