Skip to content

Commit 31fe1a8

Browse files
committed
new warning color & warning alerts
1 parent c330707 commit 31fe1a8

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

src/scss/components/alerts.scss

+17-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
border: 1px solid transparent;
33
color: #fff;
44
position: relative;
5-
text-shadow: 0 0 1px rgba(#000, .25);
5+
text-shadow: 0 0 1px 1px rgba(#000, .4);
66
border-radius: $alertRadius;
77
font-weight: $alertFontWeight;
88
margin: 0 0 $marginBottom 0;
@@ -21,28 +21,36 @@
2121
border-color: $success;
2222
background: fade-out($success, .2);
2323
&:before {
24-
content: '\f20b';
24+
content: '\f145';
2525
}
2626
}
2727
&.error {
2828
border-color: $error;
2929
background: fade-out($error, .2);
3030
&:before {
31-
content: '\f150';
31+
content: '\f144';
32+
}
33+
}
34+
&.warning {
35+
border-color: $warning;
36+
background: fade-out($warning, .2);
37+
&:before {
38+
content: '\f226';
3239
}
3340
}
3441
&.info {
3542
border-color: $info;
3643
background: fade-out($info, .2);
3744
&:before {
38-
content: '\f121';
45+
content: '\f14a';
3946
}
4047
}
4148
&.light {
4249
background: none;
4350
text-shadow: none;
4451
font-weight: normal;
4552
color: $dark40;
53+
text-shadow: none;
4654
&.success {
4755
&:before {
4856
color: $success;
@@ -53,6 +61,11 @@
5361
color: $error;
5462
}
5563
}
64+
&.warning {
65+
&:before {
66+
color: $warning;
67+
}
68+
}
5669
&.info {
5770
&:before {
5871
color: $info;

src/scss/vars.scss

+3-2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ $light: #F5F6FA;
2121

2222
$success: #69DD95;
2323
$error: #F26175;
24+
$warning: #F8C93F;
2425
$info: $secondary;
2526

2627
// Base
@@ -187,10 +188,10 @@ $tableBorder: $border;
187188
$tablePaddingV: $inputPaddingV;
188189
$tablePaddingH: $inputPaddingH;
189190
$tableLineHeight: $lineHeight;
190-
$tableHover: $line;
191+
$tableHover: $light;
191192
$tableThBackground: none;
192193
$tableTdBackground: none;
193-
$tableStripeBackground: $light;
194+
$tableStripeBackground: rgba($light, .6);
194195

195196
// Helper
196197

0 commit comments

Comments
 (0)