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