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 | 5104ade | 2017-07-27 14:55:53 -0500 | [diff] [blame] | 61 | width: 20px; |
| 62 | height: 20px; |
| 63 | margin-right: .4em; |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 64 | } |
| 65 | |
Michael Davis | 5104ade | 2017-07-27 14:55:53 -0500 | [diff] [blame] | 66 | .icon__warning { |
| 67 | @include status-icon; |
| 68 | background-image: url(/assets/images/icon-warning.svg); |
| 69 | } |
| 70 | |
| 71 | .icon__critical { |
| 72 | @include status-icon; |
Michael Davis | 6dc5f18 | 2017-06-26 13:07:27 -0500 | [diff] [blame] | 73 | background-image: url(/assets/images/icon-critical.svg); |
Michael Davis | 5104ade | 2017-07-27 14:55:53 -0500 | [diff] [blame] | 74 | } |
| 75 | |
| 76 | .icon__good { |
| 77 | @include status-icon; |
| 78 | background-image: url(/assets/images/icon-on.svg); |
Michael Davis | 6dc5f18 | 2017-06-26 13:07:27 -0500 | [diff] [blame] | 79 | } |
| 80 | |
Michael Davis | 44621a8 | 2017-07-31 18:18:32 -0500 | [diff] [blame] | 81 | .icon__off { |
| 82 | @include status-icon; |
| 83 | background-image: url(/assets/images/icon-off.svg); |
| 84 | } |
| 85 | |
Iftekharul Islam | c016139 | 2017-06-14 15:46:15 -0500 | [diff] [blame] | 86 | .icon__info{ |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 87 | margin-top: -4px; |
| 88 | margin-right: .5em; |
| 89 | width: 25px; |
| 90 | height: 25px; |
| 91 | fill: $medblue; |
| 92 | float: left; |
| 93 | } |
| 94 | |
| 95 | .icon__up-arrow { |
Michael Davis | c8a099e | 2017-08-03 13:39:03 -0500 | [diff] [blame] | 96 | margin-right: .4em; |
| 97 | margin-bottom: -15px; |
| 98 | background: url(/assets/images/icon-arrow-blue.svg) center center no-repeat; |
| 99 | height: 40px; |
| 100 | width: 30px; |
| 101 | &.icon-as-spacer { |
| 102 | background: url(/assets/images/icon-arrow-gray.svg) center center no-repeat; |
Iftekharul Islam | 4390b02 | 2017-06-05 09:44:50 -0500 | [diff] [blame] | 103 | } |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 104 | } |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 105 | .icon__down-arrow { |
Michael Davis | c8a099e | 2017-08-03 13:39:03 -0500 | [diff] [blame] | 106 | @extend .icon__up-arrow; |
| 107 | transform: rotate(180deg); |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 108 | } |