Skip to content

Commit 9a3d3dc

Browse files
Toast better styling
1 parent cbe8800 commit 9a3d3dc

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

source/client/scss/toast/toast.scss

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
@import "../mixins";
22
@import "../const";
33

4+
$messagesAlpha: .8;
5+
46
.toast {
57

68
position: fixed;
@@ -11,23 +13,20 @@
1113

1214
> .body {
1315

14-
font-size: 12pt;
15-
margin: 3px;
16-
padding: .3em;
16+
font-size: $fontNormal;
17+
margin: 1em;
18+
padding: .5em;
19+
border-radius: $defaultPadding/2;;
1720
background: rgba(255, 255, 255, 0.8);
1821
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
1922

2023
&.info {
21-
background: #fffcc8;
22-
}
23-
24-
&.info:before {
25-
content: "[INFO] ";
24+
background: rgba($colorP1, $messagesAlpha);
2625
}
2726

2827
&.warning {
2928

30-
background: #e8ab1f;
29+
background: rgba($colorP4, $messagesAlpha);
3130

3231
> .icon {
3332
color: white;
@@ -38,11 +37,11 @@
3837
&.error {
3938
color: white;
4039
text-shadow: 0 0 1px black;
41-
background: #ff4300;
40+
background: rgba($colorP2, $messagesAlpha);
4241
}
4342

4443
&.done {
45-
background: $colorP3;
44+
background: rgba($colorP3, $messagesAlpha);
4645
}
4746

4847
}

0 commit comments

Comments
 (0)