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