blob: 7d9b57a29a03105d429a8eb3f5372557e1d2468c [file] [log] [blame]
Michael Davise15a9562017-03-03 14:30:24 -06001//status light states
2@mixin status-light {
3 content: '\25CF';
4 display: inline-block;
5 font-size: 2em;
Michael Davis51946552017-05-01 10:30:38 -05006 color: $status-ok;
Michael Davise15a9562017-03-03 14:30:24 -06007 margin-right: .1em;
8 transform: translateY(2px);
Michael Davis57738ea2017-03-06 23:21:19 -06009 @include slowTransition-all;
Michael Davise15a9562017-03-03 14:30:24 -060010}
11
12@mixin status-light__good {
13 @include status-light;
14 color: $status-ok;
15
16}
17
18@mixin status-light__error {
19 @include status-light;
20 color: $error-color;
21
22}
23
24@mixin status-light__disabled {
25 @include status-light;
26 color: $darkgrey;
27
28}
29
30@mixin status-light__warn {
31 @include status-light;
Michael Davis5a752b22017-03-09 09:41:08 -060032 color: $status-warn;
Michael Davise15a9562017-03-03 14:30:24 -060033
34}
35
36.status-light__disabled {
37 color: $darkgrey;
38 &::before {
39 @include status-light__disabled;
40 }
41}
42
43.status-light__good {
44 &::before {
45 @include status-light__good;
46 }
47}
48
49.status-light__error {
50 color: $error-color;
51 &::before {
52 @include status-light__error;
53 }
54}
55
56.status-light__warn {
57 color: $status-warn;
58 &::before {
Michael Davis5a752b22017-03-09 09:41:08 -060059 @include status-light__warn;
Michael Davise15a9562017-03-03 14:30:24 -060060 }
61}