Iftekharul Islam | 8947e70 | 2017-07-27 10:28:07 -0500 | [diff] [blame^] | 1 | // Event Log SCSS |
| 2 | #sensors { |
| 3 | #sensors__detail { |
| 4 | display: block; |
| 5 | margin-top: 1.6em; |
| 6 | border-top: 1px solid $lightgrey; |
| 7 | position: relative; |
| 8 | overflow: hidden; |
| 9 | } |
| 10 | } |
| 11 | |
| 12 | //end sensors |
| 13 | |
| 14 | |
| 15 | |
| 16 | #sensor__details { |
| 17 | display: block; |
| 18 | margin-top: 1.6em; |
| 19 | border-top: 1px solid $lightgrey; |
| 20 | position: relative; |
| 21 | overflow: hidden; |
| 22 | |
| 23 | |
| 24 | //Export log |
| 25 | .btn-export { |
| 26 | text-transform: capitalize; |
| 27 | color: $black; |
| 28 | font-size: .9em; |
| 29 | font-weight: 700; |
| 30 | position: relative; |
| 31 | padding: 0 0 1em 2em; |
| 32 | &:hover { |
| 33 | text-decoration: underline; |
| 34 | } |
| 35 | } |
| 36 | .btn-export { |
| 37 | margin-top: 7px; |
| 38 | } |
| 39 | .btn-export:before { |
| 40 | content: '\21E5'; |
| 41 | position: absolute; |
| 42 | font-size: 1.7em; |
| 43 | vertical-align: middle; |
| 44 | transform: rotate(90deg); |
| 45 | display: inline-block; |
| 46 | left: 2px; |
| 47 | top: -5px; |
| 48 | } |
| 49 | |
| 50 | .sensor__info { |
| 51 | padding-top: 10px; |
| 52 | |
| 53 | &:hover { |
| 54 | cursor: pointer; |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | .accord-row { |
| 59 | .priority-tag { |
| 60 | margin: 0 2em 0 1em; |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | //Sensor info |
| 65 | .sensor__title { |
| 66 | font-weight: 400; |
| 67 | font-size: 1.3em; |
| 68 | } |
| 69 | .sensors__description { |
| 70 | font-weight: 400; |
| 71 | } |
| 72 | |
| 73 | //Event ID |
| 74 | .sensor__reading { |
| 75 | @include fontCourierBold; |
| 76 | font-size: 1.2em; |
| 77 | color: $darkgrey; |
| 78 | float: left; |
| 79 | margin-left: 1em; |
| 80 | @media (min-width: 950px) { |
| 81 | float: right; |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | // Event metadata row |
| 86 | .sensors__metadata-row { |
| 87 | max-height: 0; |
| 88 | overflow: hidden; |
| 89 | -webkit-transition: 0.5s linear max-height; |
| 90 | transition: 0.5s linear max-height; |
| 91 | padding: 0 1em; |
| 92 | &.active { |
| 93 | max-height: 1000px; //max-height used to allow flexible height of content and still allow transition |
| 94 | @include mediaQuery(small) { |
| 95 | max-height: 1000px; |
| 96 | } |
| 97 | @include mediaQuery(medium) { |
| 98 | max-height: 1000px; |
| 99 | } |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | |
| 104 | //Event Related Items |
| 105 | .sensors__related { |
| 106 | width: 100%; |
| 107 | } |
| 108 | .sensors__related-label { |
| 109 | font-weight: 700; |
| 110 | margin-right: 1.2em; |
| 111 | padding-top: .3em; |
| 112 | } |
| 113 | |
| 114 | .sensors__related-item { |
| 115 | margin-right: 1em; |
| 116 | padding-top: .3em; |
| 117 | display: inline-block; |
| 118 | float: left; |
| 119 | clear: both; |
| 120 | } |
| 121 | |
| 122 | .sensors__icon { |
| 123 | width: 20px; |
| 124 | height: 20px; |
| 125 | font-weight: normal; |
| 126 | margin-right: .5em; |
| 127 | margin-top: -3px; |
| 128 | display: inline-block; |
| 129 | } |
| 130 | |
| 131 | } |
| 132 | |
| 133 | //end sensors |