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