Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 1 | .icon { |
| 2 | display: inline-block; |
| 3 | width: 20px; |
| 4 | height: 20px; |
| 5 | position: relative; |
| 6 | speak: none; |
Michael Davis | 5104ade | 2017-07-27 14:55:53 -0500 | [diff] [blame] | 7 | font-style: normal; |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 8 | &.icon-as-spacer { |
| 9 | text-indent: -9999px; |
| 10 | } |
| 11 | } |
| 12 | |
| 13 | .icon__more { |
| 14 | fill: $medblue; |
| 15 | stroke: $medblue; |
Michael Davis | 75f94d9 | 2017-08-08 14:00:03 -0500 | [diff] [blame] | 16 | background: transparent; |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 17 | overflow: visible; |
Iftekharul Islam | 4390b02 | 2017-06-05 09:44:50 -0500 | [diff] [blame] | 18 | &:hover { |
| 19 | cursor: pointer; |
| 20 | } |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 21 | } |
| 22 | |
| 23 | .icon__more-dropdown { |
| 24 | background: $lightgrey; |
| 25 | position: absolute; |
| 26 | right: 3px; |
| 27 | white-space: normal; |
| 28 | word-wrap: normal; |
| 29 | z-index: 200; |
| 30 | padding: 1em; |
| 31 | font-size: 1em; |
| 32 | box-shadow: 2px 4px 5px $medgrey; |
| 33 | } |
| 34 | |
| 35 | .icon__bar-arrow { |
| 36 | &:before { |
| 37 | content: '\21E5'; |
| 38 | position: absolute; |
| 39 | font-size: 1.7em; |
| 40 | vertical-align: middle; |
| 41 | transform: rotate(90deg); |
| 42 | display: inline-block; |
| 43 | left: 0px; |
| 44 | top: -5px; |
| 45 | } |
| 46 | } |
| 47 | |
Michael Davis | 5104ade | 2017-07-27 14:55:53 -0500 | [diff] [blame] | 48 | .icon-angle { |
| 49 | &:before { |
| 50 | content: '\276F'; |
| 51 | display: inline-block; |
| 52 | font-size: 1em; |
| 53 | margin-left: 1em; |
| 54 | color: lighten($darkgrey, 4%); |
| 55 | } |
| 56 | } |
| 57 | //Status icons |
| 58 | @mixin status-icon { |
Iftekharul Islam | 4390b02 | 2017-06-05 09:44:50 -0500 | [diff] [blame] | 59 | background-repeat: no-repeat; |
| 60 | vertical-align: middle; |
Michael Davis | 9632d71 | 2017-08-28 18:36:53 -0500 | [diff] [blame] | 61 | width: 16px; |
| 62 | height: 16px; |
Michael Davis | 5104ade | 2017-07-27 14:55:53 -0500 | [diff] [blame] | 63 | margin-right: .4em; |
Iftekharul Islam | ec6bcd1 | 2017-09-06 10:49:07 -0500 | [diff] [blame^] | 64 | margin-left: .3em; |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 65 | } |
| 66 | |
Michael Davis | 5104ade | 2017-07-27 14:55:53 -0500 | [diff] [blame] | 67 | .icon__warning { |
| 68 | @include status-icon; |
| 69 | background-image: url(/assets/images/icon-warning.svg); |
| 70 | } |
| 71 | |
Iftekharul Islam | ec6bcd1 | 2017-09-06 10:49:07 -0500 | [diff] [blame^] | 72 | .modal .icon__warning { |
| 73 | width: 30px; |
| 74 | height: 30px; |
| 75 | } |
| 76 | |
Michael Davis | 5104ade | 2017-07-27 14:55:53 -0500 | [diff] [blame] | 77 | .icon__critical { |
| 78 | @include status-icon; |
Michael Davis | 6dc5f18 | 2017-06-26 13:07:27 -0500 | [diff] [blame] | 79 | background-image: url(/assets/images/icon-critical.svg); |
Michael Davis | 5104ade | 2017-07-27 14:55:53 -0500 | [diff] [blame] | 80 | } |
| 81 | |
| 82 | .icon__good { |
| 83 | @include status-icon; |
| 84 | background-image: url(/assets/images/icon-on.svg); |
Michael Davis | 6dc5f18 | 2017-06-26 13:07:27 -0500 | [diff] [blame] | 85 | } |
| 86 | |
Michael Davis | 44621a8 | 2017-07-31 18:18:32 -0500 | [diff] [blame] | 87 | .icon__off { |
| 88 | @include status-icon; |
| 89 | background-image: url(/assets/images/icon-off.svg); |
| 90 | } |
| 91 | |
Michael Davis | 640d28a | 2017-08-15 16:58:07 -0500 | [diff] [blame] | 92 | .icon__return { |
| 93 | @include status-icon; |
| 94 | background-image: url(/assets/images/icon-return.svg); |
| 95 | } |
| 96 | |
Michael Davis | 348f7a8 | 2017-08-25 10:55:21 -0500 | [diff] [blame] | 97 | .icon__standby { |
| 98 | @include status-icon; |
| 99 | background-image: url(/assets/images/icon-standby.svg); |
| 100 | } |
| 101 | |
| 102 | .icon__plus { |
| 103 | @include status-icon; |
| 104 | background-image: url(/assets/images/icon-plus.svg); |
| 105 | } |
| 106 | |
Iftekharul Islam | c016139 | 2017-06-14 15:46:15 -0500 | [diff] [blame] | 107 | .icon__info{ |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 108 | margin-top: -4px; |
| 109 | margin-right: .5em; |
| 110 | width: 25px; |
| 111 | height: 25px; |
| 112 | fill: $medblue; |
| 113 | float: left; |
| 114 | } |
| 115 | |
| 116 | .icon__up-arrow { |
Michael Davis | c8a099e | 2017-08-03 13:39:03 -0500 | [diff] [blame] | 117 | margin-right: .4em; |
| 118 | margin-bottom: -15px; |
| 119 | background: url(/assets/images/icon-arrow-blue.svg) center center no-repeat; |
| 120 | height: 40px; |
| 121 | width: 30px; |
| 122 | &.icon-as-spacer { |
| 123 | background: url(/assets/images/icon-arrow-gray.svg) center center no-repeat; |
Iftekharul Islam | 4390b02 | 2017-06-05 09:44:50 -0500 | [diff] [blame] | 124 | } |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 125 | } |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 126 | .icon__down-arrow { |
Michael Davis | c8a099e | 2017-08-03 13:39:03 -0500 | [diff] [blame] | 127 | @extend .icon__up-arrow; |
| 128 | transform: rotate(180deg); |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 129 | } |