Skip to content

Commit e3cfe02

Browse files
committed
Update Infobox.module.css
1 parent 50c8764 commit e3cfe02

File tree

1 file changed

+29
-7
lines changed

1 file changed

+29
-7
lines changed

src/components/Ui/Infobox/Infobox.module.css

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,11 @@
99
}
1010

1111
.icon {
12-
font-size: 4.5rem;
1312
flex-shrink: 0;
1413
width: 1.5rem;
1514
height: 1.5rem;
1615
color: #fff;
17-
18-
margin-right: 1rem;
16+
margin-right: 1.25rem;
1917
}
2018

2119
.content {
@@ -44,19 +42,19 @@
4442
}
4543

4644
.variant-normal {
47-
background: linear-gradient(135deg, #6e8efb, #a777e3);
45+
background: var(--sapNeutralTextColor);
4846
}
4947

5048
.variant-success {
51-
background: linear-gradient(135deg, #56ab2f, #a8e063);
49+
background: var(--sapPositiveTextColor);
5250
}
5351

5452
.variant-warning {
55-
background: linear-gradient(135deg, #ffc837, #ff8008);
53+
background: var(--sapCriticalTextColor);
5654
}
5755

5856
.variant-danger {
59-
background: linear-gradient(135deg, #e53935, #e35d5b);
57+
background: var(--sapErrorTextColor);
6058
}
6159

6260
.content > *:not(:last-child) {
@@ -76,3 +74,27 @@
7674
color: #000;
7775
}
7876
}
77+
78+
/* .variant-normal {
79+
border-color: var(--sapNeutralTextColor);
80+
background-color: var(--sapNeutralBackground);
81+
color: var(--sapNeutralTextColor);
82+
}
83+
84+
.variant-success {
85+
border-color: var(--sapPositiveTextColor);
86+
background-color: var(--sapPositiveBackground);
87+
color: var(--sapPositiveTextColor);
88+
}
89+
90+
.variant-warning {
91+
border-color: var(--sapCriticalTextColor);
92+
background-color: var(--sapCriticalBackground);
93+
color: var(--sapCriticalTextColor);
94+
}
95+
96+
.variant-danger {
97+
border-color: var(--sapNegativeTextColor);
98+
background-color: var(--sapErrorBackground);
99+
color: var(--sapNegativeTextColor);
100+
} */

0 commit comments

Comments
 (0)