Michael Davis | e15a956 | 2017-03-03 14:30:24 -0600 | [diff] [blame] | 1 | //status light states |
Michael Davis | 1d5de5d | 2017-07-27 15:05:08 -0500 | [diff] [blame] | 2 | @mixin status-light-before { |
3 | content: ''; | ||||
Michael Davis | e15a956 | 2017-03-03 14:30:24 -0600 | [diff] [blame] | 4 | display: inline-block; |
Michael Davis | 1d5de5d | 2017-07-27 15:05:08 -0500 | [diff] [blame] | 5 | margin-right: -12%; |
6 | transform: translateY(-2px); | ||||
Michael Davis | 1d5de5d | 2017-07-27 15:05:08 -0500 | [diff] [blame] | 7 | left: 0; |
8 | top: 0; | ||||
9 | width: 20px; | ||||
10 | height: 20px; | ||||
11 | position: absolute; | ||||
Michael Davis | e15a956 | 2017-03-03 14:30:24 -0600 | [diff] [blame] | 12 | } |
13 | |||||
Michael Davis | 1d5de5d | 2017-07-27 15:05:08 -0500 | [diff] [blame] | 14 | @mixin status-light-header { |
15 | padding-left: 1.6em; | ||||
16 | margin-top: .7em; | ||||
17 | position: relative; | ||||
18 | } | ||||
Michael Davis | e15a956 | 2017-03-03 14:30:24 -0600 | [diff] [blame] | 19 | @mixin status-light__good { |
Michael Davis | 1d5de5d | 2017-07-27 15:05:08 -0500 | [diff] [blame] | 20 | @include status-light-before; |
Michael Davis | e15a956 | 2017-03-03 14:30:24 -0600 | [diff] [blame] | 21 | } |
22 | |||||
23 | @mixin status-light__error { | ||||
Michael Davis | 1d5de5d | 2017-07-27 15:05:08 -0500 | [diff] [blame] | 24 | @include status-light-before; |
Michael Davis | e15a956 | 2017-03-03 14:30:24 -0600 | [diff] [blame] | 25 | } |
26 | |||||
27 | @mixin status-light__disabled { | ||||
Michael Davis | 1d5de5d | 2017-07-27 15:05:08 -0500 | [diff] [blame] | 28 | @include status-light-before; |
Michael Davis | e15a956 | 2017-03-03 14:30:24 -0600 | [diff] [blame] | 29 | } |
30 | |||||
31 | @mixin status-light__warn { | ||||
Michael Davis | 1d5de5d | 2017-07-27 15:05:08 -0500 | [diff] [blame] | 32 | @include status-light-before; |
Michael Davis | e15a956 | 2017-03-03 14:30:24 -0600 | [diff] [blame] | 33 | |
34 | } | ||||
35 | |||||
36 | .status-light__disabled { | ||||
Michael Davis | 1d5de5d | 2017-07-27 15:05:08 -0500 | [diff] [blame] | 37 | @include status-light-header; |
Michael Davis | e15a956 | 2017-03-03 14:30:24 -0600 | [diff] [blame] | 38 | &::before { |
39 | @include status-light__disabled; | ||||
Michael Davis | 20389ab | 2017-07-31 18:49:32 -0500 | [diff] [blame] | 40 | @extend .icon__off; |
Michael Davis | e15a956 | 2017-03-03 14:30:24 -0600 | [diff] [blame] | 41 | } |
42 | } | ||||
43 | |||||
44 | .status-light__good { | ||||
Michael Davis | 1d5de5d | 2017-07-27 15:05:08 -0500 | [diff] [blame] | 45 | @include status-light-header; |
Michael Davis | e15a956 | 2017-03-03 14:30:24 -0600 | [diff] [blame] | 46 | &::before { |
47 | @include status-light__good; | ||||
Michael Davis | 1d5de5d | 2017-07-27 15:05:08 -0500 | [diff] [blame] | 48 | @extend .icon__good; |
Michael Davis | e15a956 | 2017-03-03 14:30:24 -0600 | [diff] [blame] | 49 | } |
50 | } | ||||
51 | |||||
52 | .status-light__error { | ||||
Michael Davis | 1d5de5d | 2017-07-27 15:05:08 -0500 | [diff] [blame] | 53 | @include status-light-header; |
Michael Davis | e15a956 | 2017-03-03 14:30:24 -0600 | [diff] [blame] | 54 | &::before { |
55 | @include status-light__error; | ||||
Michael Davis | 1d5de5d | 2017-07-27 15:05:08 -0500 | [diff] [blame] | 56 | @extend .icon__critical; |
Michael Davis | e15a956 | 2017-03-03 14:30:24 -0600 | [diff] [blame] | 57 | } |
Michael Davis | 1d5de5d | 2017-07-27 15:05:08 -0500 | [diff] [blame] | 58 | |
Michael Davis | e15a956 | 2017-03-03 14:30:24 -0600 | [diff] [blame] | 59 | } |
60 | |||||
61 | .status-light__warn { | ||||
Michael Davis | 1d5de5d | 2017-07-27 15:05:08 -0500 | [diff] [blame] | 62 | @include status-light-header; |
Michael Davis | e15a956 | 2017-03-03 14:30:24 -0600 | [diff] [blame] | 63 | &::before { |
Michael Davis | 5a752b2 | 2017-03-09 09:41:08 -0600 | [diff] [blame] | 64 | @include status-light__warn; |
Michael Davis | 1d5de5d | 2017-07-27 15:05:08 -0500 | [diff] [blame] | 65 | @extend .icon__warning; |
Michael Davis | e15a956 | 2017-03-03 14:30:24 -0600 | [diff] [blame] | 66 | } |
67 | } |