blob: aa505e35218b3890c8705a2fb868814d3b4d091a [file] [log] [blame]
Michael Davis971cfba2017-03-27 13:14:02 -05001// Event Log SCSS
Michael Davis971cfba2017-03-27 13:14:02 -05002#event-log {
Michael Davis971cfba2017-03-27 13:14:02 -05003
Gunnar Mills84e114a2018-11-14 13:44:41 -06004 .row {
5 width: 100%;
6 }
Michael Davis3a0d4712017-03-27 14:01:34 -05007 // Dropwdowns filter
8 .dropdown__date.row {
9 padding: .5em;
Michael Davis971cfba2017-03-27 13:14:02 -050010 }
11
12 //Timezone select
Michael Davis3a0d4712017-03-27 14:01:34 -050013 .event-log__timezone,
14 .event-log__timezone button {
15 position: relative;
Michael Davis971cfba2017-03-27 13:14:02 -050016 text-transform: uppercase;
17 color: $lightbg__primary;
Michael Davis3a0d4712017-03-27 14:01:34 -050018 font-size: .9em;
Michael Davis971cfba2017-03-27 13:14:02 -050019 font-weight: 700;
Michael Davis0c262342017-04-10 11:48:52 -050020 border: 0;
Michael Davis3a0d4712017-03-27 14:01:34 -050021 }
Michael Davis0c262342017-04-10 11:48:52 -050022 .content__search {
Iftekharul Islam8b4828a2017-04-19 14:37:55 -050023 float: none;
Michael Davis0c262342017-04-10 11:48:52 -050024 @include mediaQuery(x-large) {
Michael Davis0c262342017-04-10 11:48:52 -050025 @include fastTransition-all;
26 }
27 }
28}
29
30#event-filter {
31 .filter-label {
Michael Davisc1530fa2017-07-20 14:11:45 -050032 color: $darkgrey;
Michael Davis0c262342017-04-10 11:48:52 -050033 text-transform: uppercase;
34 font-weight: 700;
35 font-size: .75em;
36 margin-bottom: 3px;
37 }
38 .event__severity-filter {
Michael Davisdc7479b2017-07-31 18:27:49 -050039 float:left;
Michael Davis0c262342017-04-10 11:48:52 -050040 margin-right: 2em;
41 margin-bottom: 1em;
42 button {
Michael Davisdc7479b2017-07-31 18:27:49 -050043 margin: 0px -3px;
Michael Davis0c262342017-04-10 11:48:52 -050044 padding: .6em 2em;
45 min-height: 2.1em;
46 font-size: .9em;
47 font-weight: 700;
48 border-radius: 0;
49 &.first,
50 &.last {
51 border-radius: 3px;
52 }
Michael Davis473397c2017-07-27 15:09:53 -050053 @media (min-width: 583px) {
54 &.last {
55 border-left: 0;
56 }
Michael Davis0c262342017-04-10 11:48:52 -050057 }
58 }
59 .btn-primary {
60 border: 2px solid $primebtn__bg;
61 }
Michael Davis0c262342017-04-10 11:48:52 -050062 }
63 .event__date-filter {
64 margin-right: 1.5em;
65 color: $darkgrey;
Michael Davisdc7479b2017-07-31 18:27:49 -050066 float:left;
Michael Davis0c262342017-04-10 11:48:52 -050067 input {
68 width: 170px;
69 height: 2.1rem;
70 }
71 label {
72 height: 0;
Michael Davis272297b2017-04-24 12:11:53 -050073 text-indent: -9999px;
Michael Davis0c262342017-04-10 11:48:52 -050074 }
75 }
Michael Davis473397c2017-07-27 15:09:53 -050076 .event__status-filter {
Michael Davisdc7479b2017-07-31 18:27:49 -050077 float:left;
Michael Davis473397c2017-07-27 15:09:53 -050078 @include mediaQuery(medium) {
79 width: 25%;
80 }
81 .dropdown__wrapper,
82 .dropdown__button {
83 width: 100%;
84 text-align: left;
85 }
Michael Davisedb195a2017-07-13 19:07:19 -050086 }
Michael Davis3a0d4712017-03-27 14:01:34 -050087}
88
Michael Davis3a0d4712017-03-27 14:01:34 -050089.event-log__filters {
90 position: relative;
91 padding-bottom: .5em;
92 padding-top: .5em;
93
94 @media (min-width: 1333px) {
95 float: right;
96 display: inline-block;
97 }
98}
beccabroekdde251d2019-03-13 10:29:08 -050099.empty__logs {
100 border: 1px solid $lightbg__grey;
101 margin-top: .5em;
102 text-align: center;
103 padding: 2em;
104}
Michael Davis3a0d4712017-03-27 14:01:34 -0500105
Michael Davis83608e12017-07-20 15:58:50 -0500106.accord-trigger {
107 position: absolute;
108 right: 1em;
109 top: .3em;
110}
111
Michael Davis522a5522017-06-09 13:51:05 -0500112#event-log__events,
113.event-log__events {
Michael Davis3a0d4712017-03-27 14:01:34 -0500114 display: block;
115 margin-top: 1.6em;
Michael Davis3a0d4712017-03-27 14:01:34 -0500116 position: relative;
117 overflow: hidden;
Michael Davis0c262342017-04-10 11:48:52 -0500118 .header__actions-bar {
119 .btn-export,
120 .btn-delete,
121 .btn-resolve {
122 color: $white;
123 }
Michael Davisedb195a2017-07-13 19:07:19 -0500124 .event-log__col-check {
125 text-align: left;
126 max-width: 30px;
127 .control-check {
Michael Davis473397c2017-07-27 15:09:53 -0500128 margin-left: -6px;
Michael Davisedb195a2017-07-13 19:07:19 -0500129 }
130 }
Michael Davis0c262342017-04-10 11:48:52 -0500131 }
Michael Davis6af13462017-04-04 14:07:02 -0500132 .inline__confirm {
133 height: auto;
Michael Davis3a0d4712017-03-27 14:01:34 -0500134 margin-left: 0;
Michael Davis6af13462017-04-04 14:07:02 -0500135 left: 0;
136 padding: 1em 2em 1em 2em
137 }
Michael Davis6af13462017-04-04 14:07:02 -0500138 .inline__confirm-message {
139 margin-top: 5px;
140 margin-bottom: -10px;
141 }
142 .inline__confirm-buttons .btn-primary {
143 padding: .5em 2em;
144 min-height: 25px;
145 margin-top: .5em;
146 @include mediaQuery(medium) {
147 margin-top: 0;
Michael Davis3a0d4712017-03-27 14:01:34 -0500148 }
149 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500150 .event-log__col-check {
151 max-width: 60px;
152 text-align: center;
153 }
154 .col-logged-events {
155 span {
156 display: inline-block;
157 font-weight: 700;
158 margin-right: .3em;
159 }
160 }
161
162 //Export log
163 .btn-export, .btn-meta-copy,
164 .btn-delete,
165 .btn-resolve {
Michael Davis0c262342017-04-10 11:48:52 -0500166 color: black;
Michael Davis3a0d4712017-03-27 14:01:34 -0500167 font-size: .9em;
168 font-weight: 700;
169 position: relative;
170 padding: 0 0 1em 2em;
171 &:hover {
172 text-decoration: underline;
173 }
174 }
Iftekharul Islam08054412017-08-25 10:29:57 -0500175 .btn-resolve.disabled:hover,
176 .btn-delete.disabled:hover{
Michael Davisdc7479b2017-07-31 18:27:49 -0500177 cursor: default;
178 text-decoration: none;
179 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500180 .btn-export {
181 margin-top: 7px;
182 padding-bottom: 0;
183 }
184 .btn-export:before {
185 content: '\21E5';
186 position: absolute;
187 font-size: 1.7em;
188 vertical-align: middle;
189 transform: rotate(90deg);
190 display: inline-block;
191 left: 2px;
192 top: -5px;
193 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500194 .btn-meta-copy,
195 .btn-delete,
196 .btn-resolve {
197 margin-left: 5px;
198 padding: .5em .5em;
199 }
200
201 // Single event log card
202 .event-log__single-event {
Michael Davis522a5522017-06-09 13:51:05 -0500203 border: 1px solid $medgrey;
Michael Davis0c262342017-04-10 11:48:52 -0500204 padding: 1em 1em 1em .7em;
Michael Davis522a5522017-06-09 13:51:05 -0500205 margin: .5em 0 .5em 0;
206 position: relative;
Michael Davisb76d5f02017-06-19 14:23:45 -0500207 overflow: hidden;
Michael Davisedb195a2017-07-13 19:07:19 -0500208 @include fastTransition-all;
209 &.active {
210 background-color: $lightgrey;
211 @include slowTransition-all;
212 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500213 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500214 .event-log__event-info {
215 &:hover {
216 cursor: pointer;
217 }
218 }
219
220 //Event priorities
221 .event__priority {
222 color: $white;
223 font-size: .8em;
224 text-transform: uppercase;
225 padding: 2px 2em;
226 font-weight: 700;
227 line-height: inherit;
228 min-width: 103px;
229 text-align: center;
Michael Davis3a0d4712017-03-27 14:01:34 -0500230 &.high-priority {
Michael Davisedb195a2017-07-13 19:07:19 -0500231 background: $highPriority-bg;
232 border: 2px solid $highPriorityColor;
233 color: darken($highPriorityColor, 5%);
Michael Davis3a0d4712017-03-27 14:01:34 -0500234 }
235 &.med-priority {
Michael Davisedb195a2017-07-13 19:07:19 -0500236 background: $medPriorty-bg;
237 border: 2px solid $medPriorityColor;
238 color: darken($medPriorityColor, 15%);
Michael Davis3a0d4712017-03-27 14:01:34 -0500239 }
240 &.low-priority {
Michael Davisedb195a2017-07-13 19:07:19 -0500241 background: $lowPriorty-bg;
242 border: 2px solid $lowPriorityColor;
243 color: darken($lowPriorityColor, 5%);
Michael Davis3a0d4712017-03-27 14:01:34 -0500244 }
245 &.event-resolved {
Michael Davisedb195a2017-07-13 19:07:19 -0500246 background: $resolved-bg;
247 border: 2px solid $resolvedColor;
248 color: $resolvedColor;
Michael Davis3a0d4712017-03-27 14:01:34 -0500249 }
250 }
251
252 //Event Severity
253 .event__severity {
254 font-size: .7em;
255 text-transform: uppercase;
Michael Davis3a0d4712017-03-27 14:01:34 -0500256 font-weight: 700;
Michael Davis3a0d4712017-03-27 14:01:34 -0500257 min-width: 103px;
Michael Davis522a5522017-06-09 13:51:05 -0500258 @include mediaQuery(medium) {
Michael Davisedb195a2017-07-13 19:07:19 -0500259 margin: 0 1em 0 1.5em;
260 }
261 &.high-priority {
262 color: darken($highPriorityColor, 5%);
263 }
264 &.med-priority {
265 color: darken($medPriorityColor, 15%);
266 }
267 &.low-priority {
268 color: darken($lowPriorityColor, 5%);
269 }
270 &.event-resolved {
271 color: $resolvedColor;
Michael Davis522a5522017-06-09 13:51:05 -0500272 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500273 }
274
275 //Event description
276 .event__description {
277 font-weight: 400;
Michael Davisedb195a2017-07-13 19:07:19 -0500278 margin-left: 1em;
279 @include mediaQuery(small) {
Gunnar Mills84e114a2018-11-14 13:44:41 -0600280 margin-left: 1.5em;
Michael Davisedb195a2017-07-13 19:07:19 -0500281 margin-right: 1em;
282 }
283 word-break: break-all;
Michael Davis3a0d4712017-03-27 14:01:34 -0500284 }
285
286 //Event ID
287 .event__id {
288 @include fontCourierBold;
289 font-size: .9em;
290 color: $darkgrey;
Michael Davis522a5522017-06-09 13:51:05 -0500291 margin-right: 1em;
Michael Davis3a0d4712017-03-27 14:01:34 -0500292 }
293
294 .event__timestamp {
beccabroek569ccf62018-10-29 13:46:53 -0500295 text-align: right;
Michael Davis3a0d4712017-03-27 14:01:34 -0500296 @include fontCourierBold;
297 font-size: .9em;
Michael Davis83608e12017-07-20 15:58:50 -0500298 color: $darkgrey;
beccabroek569ccf62018-10-29 13:46:53 -0500299 max-width: 18em;
300 @media (min-width: 1105px) {
Michael Davis522a5522017-06-09 13:51:05 -0500301 float: right;
302 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500303 }
304
305 // Event metadata row
306 .event__metadata-row {
Michael Davis6af13462017-04-04 14:07:02 -0500307 max-height: 0;
Michael Davis3a0d4712017-03-27 14:01:34 -0500308 overflow: hidden;
Michael Davis6af13462017-04-04 14:07:02 -0500309 -webkit-transition: 0.5s linear max-height;
310 transition: 0.5s linear max-height;
Michael Davis3a0d4712017-03-27 14:01:34 -0500311 &.active {
Michael Davis62bb80f2017-09-11 16:31:42 -0500312 max-height: 1000px;
Michael Davis3a0d4712017-03-27 14:01:34 -0500313 @include mediaQuery(small) {
Michael Davis6af13462017-04-04 14:07:02 -0500314 max-height: 1000px;
Michael Davis3a0d4712017-03-27 14:01:34 -0500315 }
316 @include mediaQuery(medium) {
Michael Davis6af13462017-04-04 14:07:02 -0500317 max-height: 1000px;
Michael Davis3a0d4712017-03-27 14:01:34 -0500318 }
319 }
320 }
321
322 //Event metadata
323 .event__metadata {
324 height: 200px;
325 overflow-y: scroll;
Michael Davis19ac8f82017-05-08 11:20:12 -0500326 border: 1px solid $medgrey;
Michael Davis3a0d4712017-03-27 14:01:34 -0500327 padding: .5em .5em 0;
328 background: $white;
329 display: block;
330 margin-bottom: 1.5em;
331 &::-webkit-scrollbar {
332 -webkit-appearance: none;
333 width: 7px;
334 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500335 &::-webkit-scrollbar-thumb {
336 border-radius: 4px;
337 background-color: rgba(0, 0, 0, .5);
338 -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5);
339 }
340 }
341
342 //Event Related Items
343 .event__related {
344 width: 100%;
345 }
346 .event__related-label {
347 font-weight: 700;
348 margin-right: 1.2em;
349 padding-top: .3em;
Michael Davis3e2fe422017-08-08 14:13:10 -0500350 float: left;
Michael Davis3a0d4712017-03-27 14:01:34 -0500351 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500352 .event__related-item {
353 margin-right: 1em;
354 padding-top: .3em;
Michael Davis6af13462017-04-04 14:07:02 -0500355 display: inline-block;
356 float: left;
357 clear: both;
Michael Davis3a0d4712017-03-27 14:01:34 -0500358 }
359 .event__actions {
360 margin-left: -1em;
Michael Davis473397c2017-07-27 15:09:53 -0500361 margin-top: .5em;
362 @include mediaQuery(medium) {
363 float: right;
364 margin-top: -5px;
365 }
Iftekharul Islam0b0e26d2018-11-15 10:44:59 -0600366 .disabled {
367 opacity: 0.2;
368 pointer-events: none;
369 cursor: default;
370 text-decoration: none;
371 }
372 .disabled:hover {
373 text-decoration: none;
374 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500375 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500376 .event__icon {
377 width: 20px;
378 height: 20px;
379 font-weight: normal;
380 margin-right: .5em;
381 margin-top: -3px;
382 display: inline-block;
383 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500384}
Michael Davis3a0d4712017-03-27 14:01:34 -0500385//end event-log__events
386
387
388