Michael Davis | 971cfba | 2017-03-27 13:14:02 -0500 | [diff] [blame] | 1 | // Event Log SCSS |
Michael Davis | 971cfba | 2017-03-27 13:14:02 -0500 | [diff] [blame] | 2 | #event-log { |
| 3 | |
Michael Davis | 3a0d471 | 2017-03-27 14:01:34 -0500 | [diff] [blame] | 4 | .accord-trigger { |
| 5 | transform: rotate(90deg); |
| 6 | font-size: 1.5em; |
| 7 | color: lighten($darkgrey, 10%); |
| 8 | padding: .3em; |
| 9 | display: block; |
| 10 | margin: 0 auto; |
| 11 | transition: all .2s ease; |
| 12 | &:after { |
| 13 | content: '\276F' |
Michael Davis | 971cfba | 2017-03-27 13:14:02 -0500 | [diff] [blame] | 14 | } |
Michael Davis | 3a0d471 | 2017-03-27 14:01:34 -0500 | [diff] [blame] | 15 | &.active { |
| 16 | transform: rotate(-90deg); |
| 17 | color: $darkbg__accent; |
Michael Davis | 971cfba | 2017-03-27 13:14:02 -0500 | [diff] [blame] | 18 | } |
Michael Davis | 3a0d471 | 2017-03-27 14:01:34 -0500 | [diff] [blame] | 19 | &:focus { |
| 20 | outline: 0; |
| 21 | color: $darkbg__accent; |
| 22 | } |
| 23 | } |
| 24 | .row { |
Michael Davis | 6af1346 | 2017-04-04 14:07:02 -0500 | [diff] [blame^] | 25 | //padding: 0; |
Michael Davis | 3a0d471 | 2017-03-27 14:01:34 -0500 | [diff] [blame] | 26 | margin-left: 0; |
| 27 | } |
Michael Davis | 971cfba | 2017-03-27 13:14:02 -0500 | [diff] [blame] | 28 | |
Michael Davis | 3a0d471 | 2017-03-27 14:01:34 -0500 | [diff] [blame] | 29 | // Dropwdowns filter |
| 30 | .dropdown__date.row { |
| 31 | padding: .5em; |
Michael Davis | 971cfba | 2017-03-27 13:14:02 -0500 | [diff] [blame] | 32 | } |
| 33 | |
| 34 | //Timezone select |
Michael Davis | 3a0d471 | 2017-03-27 14:01:34 -0500 | [diff] [blame] | 35 | .event-log__timezone, |
| 36 | .event-log__timezone button { |
| 37 | position: relative; |
Michael Davis | 971cfba | 2017-03-27 13:14:02 -0500 | [diff] [blame] | 38 | text-transform: uppercase; |
| 39 | color: $lightbg__primary; |
Michael Davis | 3a0d471 | 2017-03-27 14:01:34 -0500 | [diff] [blame] | 40 | font-size: .9em; |
Michael Davis | 971cfba | 2017-03-27 13:14:02 -0500 | [diff] [blame] | 41 | font-weight: 700; |
Michael Davis | 3a0d471 | 2017-03-27 14:01:34 -0500 | [diff] [blame] | 42 | } |
| 43 | |
| 44 | } |
| 45 | |
Michael Davis | 3a0d471 | 2017-03-27 14:01:34 -0500 | [diff] [blame] | 46 | .event-log__filters { |
| 47 | position: relative; |
| 48 | padding-bottom: .5em; |
| 49 | padding-top: .5em; |
| 50 | |
| 51 | @media (min-width: 1333px) { |
| 52 | float: right; |
| 53 | display: inline-block; |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | // Event Log Events |
| 58 | #event-log__events { |
| 59 | display: block; |
| 60 | margin-top: 1.6em; |
| 61 | border-top: 1px solid $lightgrey; |
| 62 | position: relative; |
| 63 | overflow: hidden; |
| 64 | |
Michael Davis | 6af1346 | 2017-04-04 14:07:02 -0500 | [diff] [blame^] | 65 | .inline__confirm { |
| 66 | height: auto; |
Michael Davis | 3a0d471 | 2017-03-27 14:01:34 -0500 | [diff] [blame] | 67 | margin-left: 0; |
Michael Davis | 6af1346 | 2017-04-04 14:07:02 -0500 | [diff] [blame^] | 68 | left: 0; |
| 69 | padding: 1em 2em 1em 2em |
| 70 | } |
Michael Davis | 3a0d471 | 2017-03-27 14:01:34 -0500 | [diff] [blame] | 71 | |
Michael Davis | 6af1346 | 2017-04-04 14:07:02 -0500 | [diff] [blame^] | 72 | .inline__confirm-message { |
| 73 | margin-top: 5px; |
| 74 | margin-bottom: -10px; |
| 75 | } |
| 76 | .inline__confirm-buttons .btn-primary { |
| 77 | padding: .5em 2em; |
| 78 | min-height: 25px; |
| 79 | margin-top: .5em; |
| 80 | @include mediaQuery(medium) { |
| 81 | margin-top: 0; |
Michael Davis | 3a0d471 | 2017-03-27 14:01:34 -0500 | [diff] [blame] | 82 | } |
| 83 | } |
| 84 | |
| 85 | .event-log__col-check { |
| 86 | max-width: 60px; |
| 87 | text-align: center; |
| 88 | } |
| 89 | .col-logged-events { |
| 90 | span { |
| 91 | display: inline-block; |
| 92 | font-weight: 700; |
| 93 | margin-right: .3em; |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | //Export log |
| 98 | .btn-export, .btn-meta-copy, |
| 99 | .btn-delete, |
| 100 | .btn-resolve { |
| 101 | text-transform: capitalize; |
| 102 | color: $black; |
| 103 | font-size: .9em; |
| 104 | font-weight: 700; |
| 105 | position: relative; |
| 106 | padding: 0 0 1em 2em; |
| 107 | &:hover { |
| 108 | text-decoration: underline; |
| 109 | } |
| 110 | } |
| 111 | .btn-export { |
| 112 | margin-top: 7px; |
| 113 | padding-bottom: 0; |
| 114 | } |
| 115 | .btn-export:before { |
| 116 | content: '\21E5'; |
| 117 | position: absolute; |
| 118 | font-size: 1.7em; |
| 119 | vertical-align: middle; |
| 120 | transform: rotate(90deg); |
| 121 | display: inline-block; |
| 122 | left: 2px; |
| 123 | top: -5px; |
| 124 | } |
| 125 | |
| 126 | .btn-meta-copy, |
| 127 | .btn-delete, |
| 128 | .btn-resolve { |
| 129 | margin-left: 5px; |
| 130 | padding: .5em .5em; |
| 131 | } |
| 132 | |
| 133 | // Single event log card |
| 134 | .event-log__single-event { |
Michael Davis | 6af1346 | 2017-04-04 14:07:02 -0500 | [diff] [blame^] | 135 | position: relative; |
Michael Davis | 3a0d471 | 2017-03-27 14:01:34 -0500 | [diff] [blame] | 136 | border-top: 1px solid $lightgrey; |
Michael Davis | 6af1346 | 2017-04-04 14:07:02 -0500 | [diff] [blame^] | 137 | padding: 1em 1em 1em 0em; |
Michael Davis | 3a0d471 | 2017-03-27 14:01:34 -0500 | [diff] [blame] | 138 | background: $lightblue; |
Michael Davis | 6af1346 | 2017-04-04 14:07:02 -0500 | [diff] [blame^] | 139 | overflow: hidden; |
Michael Davis | 3a0d471 | 2017-03-27 14:01:34 -0500 | [diff] [blame] | 140 | &.active, |
| 141 | &.selected { |
| 142 | background: $white; |
| 143 | } |
| 144 | &:hover { |
| 145 | background: $white; |
| 146 | } |
| 147 | } |
| 148 | |
| 149 | .event-log__event-info { |
| 150 | &:hover { |
| 151 | cursor: pointer; |
| 152 | } |
| 153 | } |
| 154 | |
| 155 | //Event priorities |
| 156 | .event__priority { |
| 157 | color: $white; |
| 158 | font-size: .8em; |
| 159 | text-transform: uppercase; |
| 160 | padding: 2px 2em; |
| 161 | font-weight: 700; |
| 162 | line-height: inherit; |
| 163 | min-width: 103px; |
| 164 | text-align: center; |
| 165 | |
| 166 | &.high-priority { |
| 167 | background: $error-color; |
| 168 | |
| 169 | } |
| 170 | &.med-priority { |
| 171 | background: $alert__warning; |
| 172 | |
| 173 | } |
| 174 | &.low-priority { |
| 175 | background: $lightbg__primary; |
| 176 | } |
| 177 | &.event-resolved { |
| 178 | background: $purple; |
| 179 | padding: 2px 1em; |
| 180 | } |
| 181 | } |
| 182 | |
| 183 | //Event Severity |
| 184 | .event__severity { |
| 185 | font-size: .7em; |
| 186 | text-transform: uppercase; |
| 187 | color: $darkgrey; |
| 188 | font-weight: 700; |
| 189 | margin: 0 1em; |
| 190 | min-width: 103px; |
| 191 | } |
| 192 | |
| 193 | //Event description |
| 194 | .event__description { |
| 195 | font-weight: 400; |
| 196 | } |
| 197 | |
| 198 | //Event ID |
| 199 | .event__id { |
| 200 | @include fontCourierBold; |
| 201 | font-size: .9em; |
| 202 | color: $darkgrey; |
| 203 | } |
| 204 | |
| 205 | .event__timestamp { |
| 206 | @include fontCourierBold; |
| 207 | font-size: .9em; |
| 208 | color: #999999; |
| 209 | margin-left: 1.2em; |
| 210 | } |
| 211 | |
| 212 | // Event metadata row |
| 213 | .event__metadata-row { |
Michael Davis | 6af1346 | 2017-04-04 14:07:02 -0500 | [diff] [blame^] | 214 | max-height: 0; |
Michael Davis | 3a0d471 | 2017-03-27 14:01:34 -0500 | [diff] [blame] | 215 | overflow: hidden; |
Michael Davis | 6af1346 | 2017-04-04 14:07:02 -0500 | [diff] [blame^] | 216 | -webkit-transition: 0.5s linear max-height; |
| 217 | transition: 0.5s linear max-height; |
Michael Davis | 3a0d471 | 2017-03-27 14:01:34 -0500 | [diff] [blame] | 218 | &.active { |
Michael Davis | 6af1346 | 2017-04-04 14:07:02 -0500 | [diff] [blame^] | 219 | max-height: 1000px; //max-height used to allow flexible height of content and still allow transition |
Michael Davis | 3a0d471 | 2017-03-27 14:01:34 -0500 | [diff] [blame] | 220 | @include mediaQuery(small) { |
Michael Davis | 6af1346 | 2017-04-04 14:07:02 -0500 | [diff] [blame^] | 221 | max-height: 1000px; |
Michael Davis | 3a0d471 | 2017-03-27 14:01:34 -0500 | [diff] [blame] | 222 | } |
| 223 | @include mediaQuery(medium) { |
Michael Davis | 6af1346 | 2017-04-04 14:07:02 -0500 | [diff] [blame^] | 224 | max-height: 1000px; |
Michael Davis | 3a0d471 | 2017-03-27 14:01:34 -0500 | [diff] [blame] | 225 | } |
| 226 | } |
| 227 | } |
| 228 | |
| 229 | //Event metadata |
| 230 | .event__metadata { |
| 231 | height: 200px; |
| 232 | overflow-y: scroll; |
| 233 | border: 1px solid $lightgrey; |
| 234 | padding: .5em .5em 0; |
| 235 | background: $white; |
| 236 | display: block; |
| 237 | margin-bottom: 1.5em; |
| 238 | &::-webkit-scrollbar { |
| 239 | -webkit-appearance: none; |
| 240 | width: 7px; |
| 241 | } |
| 242 | |
| 243 | &::-webkit-scrollbar-thumb { |
| 244 | border-radius: 4px; |
| 245 | background-color: rgba(0, 0, 0, .5); |
| 246 | -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5); |
| 247 | } |
| 248 | } |
| 249 | |
| 250 | //Event Related Items |
| 251 | .event__related { |
| 252 | width: 100%; |
| 253 | } |
| 254 | .event__related-label { |
| 255 | font-weight: 700; |
| 256 | margin-right: 1.2em; |
| 257 | padding-top: .3em; |
| 258 | } |
| 259 | |
| 260 | .event__related-item { |
| 261 | margin-right: 1em; |
| 262 | padding-top: .3em; |
Michael Davis | 6af1346 | 2017-04-04 14:07:02 -0500 | [diff] [blame^] | 263 | display: inline-block; |
| 264 | float: left; |
| 265 | clear: both; |
Michael Davis | 3a0d471 | 2017-03-27 14:01:34 -0500 | [diff] [blame] | 266 | } |
| 267 | .event__actions { |
| 268 | margin-left: -1em; |
| 269 | //margin-bottom: 1em; |
| 270 | @include mediaQuery(medium) { |
| 271 | float: right; |
| 272 | } |
| 273 | } |
| 274 | |
| 275 | .event__icon { |
| 276 | width: 20px; |
| 277 | height: 20px; |
| 278 | font-weight: normal; |
| 279 | margin-right: .5em; |
| 280 | margin-top: -3px; |
| 281 | display: inline-block; |
| 282 | } |
| 283 | |
| 284 | } |
| 285 | |
| 286 | //end event-log__events |
| 287 | |
| 288 | |
| 289 | |