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
82
83
84
85
86
87
88
89
|
@import "../../styles/mixins";
@mixin theme() {
width: 100%;
display: flex;
padding: 10px;
background: none;
border: none;
}
// Fill Background
.bgInfo, div.bgInfo{
background: material-color('blue', '300');
button{
color: material-color('blue', '900');
}
}
.bgSuccess, div.bgSuccess{
background: material-color('green', '300');
button{
color: material-color('green', '900');
}
}
.bgWarning, div.bgWarning{
background: material-color('orange', '300');
button{
color: material-color('orange', '900');
}
}
.bgError, div.bgError{
background: material-color('red', '300');
button{
color: material-color('red', '900');
}
}
.bgDefault, div.bgDefault{
background: material-color('grey', '700')
}
// Fill Background Table Row
table tr{
&.bgInfo{
background: material-color('blue', '50')
}
&.bgSuccess{
background: material-color('green', '50')
}
&.bgWarning{
background: material-color('orange', '50')
}
&.bgError{
background: material-color('red', '50')
}
&.bgDefault{
background: #FFF
}
}
// Icon Background
.messageInfo{
@include theme();
.icon{
background: material-color('blue', '300')
}
}
.messageSuccess{
@include theme();
.icon{
background: material-color('green', '300')
}
}
.messageWarning{
@include theme();
.icon{
background: material-color('orange', '300')
}
}
.messageError{
@include theme();
.icon{
background: material-color('red', '300')
}
}
.messageDefault{
@include theme();
.icon{
background: material-color('grey', '300')
}
}
|