blob: 66ff7aacae1023b0ac581364b66234afd47d8fcd [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 Davis57738ea2017-03-06 23:21:19 -06007 @include slowTransition-all;
Michael Davis1d5de5d2017-07-27 15:05:08 -05008 left: 0;
9 top: 0;
10 width: 20px;
11 height: 20px;
12 position: absolute;
Michael Davise15a9562017-03-03 14:30:24 -060013}
14
Michael Davis1d5de5d2017-07-27 15:05:08 -050015@mixin status-light-header {
16 padding-left: 1.6em;
17 margin-top: .7em;
18 position: relative;
19}
Michael Davise15a9562017-03-03 14:30:24 -060020@mixin status-light__good {
Michael Davis1d5de5d2017-07-27 15:05:08 -050021 @include status-light-before;
Michael Davise15a9562017-03-03 14:30:24 -060022}
23
24@mixin status-light__error {
Michael Davis1d5de5d2017-07-27 15:05:08 -050025 @include status-light-before;
Michael Davise15a9562017-03-03 14:30:24 -060026}
27
28@mixin status-light__disabled {
Michael Davis1d5de5d2017-07-27 15:05:08 -050029 @include status-light-before;
Michael Davise15a9562017-03-03 14:30:24 -060030}
31
32@mixin status-light__warn {
Michael Davis1d5de5d2017-07-27 15:05:08 -050033 @include status-light-before;
Michael Davise15a9562017-03-03 14:30:24 -060034
35}
36
37.status-light__disabled {
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;
41 }
42}
43
44.status-light__good {
Michael Davis1d5de5d2017-07-27 15:05:08 -050045 @include status-light-header;
Michael Davise15a9562017-03-03 14:30:24 -060046 &::before {
47 @include status-light__good;
Michael Davis1d5de5d2017-07-27 15:05:08 -050048 @extend .icon__good;
Michael Davise15a9562017-03-03 14:30:24 -060049 }
50}
51
52.status-light__error {
Michael Davis1d5de5d2017-07-27 15:05:08 -050053 @include status-light-header;
Michael Davise15a9562017-03-03 14:30:24 -060054 &::before {
55 @include status-light__error;
Michael Davis1d5de5d2017-07-27 15:05:08 -050056 @extend .icon__critical;
Michael Davise15a9562017-03-03 14:30:24 -060057 }
Michael Davis1d5de5d2017-07-27 15:05:08 -050058
Michael Davise15a9562017-03-03 14:30:24 -060059}
60
61.status-light__warn {
Michael Davis1d5de5d2017-07-27 15:05:08 -050062 @include status-light-header;
Michael Davise15a9562017-03-03 14:30:24 -060063 &::before {
Michael Davis5a752b22017-03-09 09:41:08 -060064 @include status-light__warn;
Michael Davis1d5de5d2017-07-27 15:05:08 -050065 @extend .icon__warning;
Michael Davise15a9562017-03-03 14:30:24 -060066 }
67}