Michael Davis | e15a956 | 2017-03-03 14:30:24 -0600 | [diff] [blame] | 1 | //status light states |
| 2 | @mixin status-light { |
| 3 | content: '\25CF'; |
| 4 | display: inline-block; |
| 5 | font-size: 2em; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 6 | color: $status-ok; |
Michael Davis | e15a956 | 2017-03-03 14:30:24 -0600 | [diff] [blame] | 7 | margin-right: .1em; |
| 8 | transform: translateY(2px); |
Michael Davis | 57738ea | 2017-03-06 23:21:19 -0600 | [diff] [blame] | 9 | @include slowTransition-all; |
Michael Davis | e15a956 | 2017-03-03 14:30:24 -0600 | [diff] [blame] | 10 | } |
| 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 Davis | 5a752b2 | 2017-03-09 09:41:08 -0600 | [diff] [blame] | 32 | color: $status-warn; |
Michael Davis | e15a956 | 2017-03-03 14:30:24 -0600 | [diff] [blame] | 33 | |
| 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 Davis | 5a752b2 | 2017-03-09 09:41:08 -0600 | [diff] [blame] | 59 | @include status-light__warn; |
Michael Davis | e15a956 | 2017-03-03 14:30:24 -0600 | [diff] [blame] | 60 | } |
| 61 | } |