blob: b6cdc9d9af2c050cc3f2c5cf755d317026704c48 [file] [log] [blame]
Michael Davise15a9562017-03-03 14:30:24 -06001//status light states
Michael Davis1d5de5d2017-07-27 15:05:08 -05002@mixin status-light-before {
3 content: '';
Michael Davise15a9562017-03-03 14:30:24 -06004 display: inline-block;
Michael Davis1d5de5d2017-07-27 15:05:08 -05005 margin-right: -12%;
6 transform: translateY(-2px);
Michael Davis1d5de5d2017-07-27 15:05:08 -05007 left: 0;
8 top: 0;
Michael Davis9632d712017-08-28 18:36:53 -05009 width: 16px;
10 height: 16px;
Michael Davis1d5de5d2017-07-27 15:05:08 -050011 position: absolute;
Michael Davise15a9562017-03-03 14:30:24 -060012}
13
Michael Davis1d5de5d2017-07-27 15:05:08 -050014@mixin status-light-header {
15 padding-left: 1.6em;
16 margin-top: .7em;
17 position: relative;
18}
Michael Davise15a9562017-03-03 14:30:24 -060019@mixin status-light__good {
Michael Davis1d5de5d2017-07-27 15:05:08 -050020 @include status-light-before;
Michael Davise15a9562017-03-03 14:30:24 -060021}
22
23@mixin status-light__error {
Michael Davis1d5de5d2017-07-27 15:05:08 -050024 @include status-light-before;
Michael Davise15a9562017-03-03 14:30:24 -060025}
26
27@mixin status-light__disabled {
Michael Davis1d5de5d2017-07-27 15:05:08 -050028 @include status-light-before;
Michael Davise15a9562017-03-03 14:30:24 -060029}
30
31@mixin status-light__warn {
Michael Davis1d5de5d2017-07-27 15:05:08 -050032 @include status-light-before;
Michael Davise15a9562017-03-03 14:30:24 -060033
34}
35
Michael Davis54013ac2017-08-09 11:38:27 -050036.status-light__disabled,
37.status-light__off{
Michael Davis1d5de5d2017-07-27 15:05:08 -050038 @include status-light-header;
Michael Davise15a9562017-03-03 14:30:24 -060039 &::before {
40 @include status-light__disabled;
Michael Davis20389ab2017-07-31 18:49:32 -050041 @extend .icon__off;
Michael Davise15a9562017-03-03 14:30:24 -060042 }
43}
44
45.status-light__good {
Michael Davis1d5de5d2017-07-27 15:05:08 -050046 @include status-light-header;
Michael Davise15a9562017-03-03 14:30:24 -060047 &::before {
48 @include status-light__good;
Michael Davis1d5de5d2017-07-27 15:05:08 -050049 @extend .icon__good;
Michael Davise15a9562017-03-03 14:30:24 -060050 }
51}
52
53.status-light__error {
Michael Davis1d5de5d2017-07-27 15:05:08 -050054 @include status-light-header;
Michael Davise15a9562017-03-03 14:30:24 -060055 &::before {
56 @include status-light__error;
Michael Davis1d5de5d2017-07-27 15:05:08 -050057 @extend .icon__critical;
Michael Davise15a9562017-03-03 14:30:24 -060058 }
Michael Davis1d5de5d2017-07-27 15:05:08 -050059
Michael Davise15a9562017-03-03 14:30:24 -060060}
61
62.status-light__warn {
Michael Davis1d5de5d2017-07-27 15:05:08 -050063 @include status-light-header;
Michael Davise15a9562017-03-03 14:30:24 -060064 &::before {
Michael Davis5a752b22017-03-09 09:41:08 -060065 @include status-light__warn;
Michael Davis1d5de5d2017-07-27 15:05:08 -050066 @extend .icon__warning;
Michael Davise15a9562017-03-03 14:30:24 -060067 }
68}