blob: 0e7174e59efeb2ebdaf2f053f4de096814d68bf9 [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}
99
Michael Davis83608e12017-07-20 15:58:50 -0500100.accord-trigger {
101 position: absolute;
102 right: 1em;
103 top: .3em;
104}
105
Michael Davis522a5522017-06-09 13:51:05 -0500106#event-log__events,
107.event-log__events {
Michael Davis3a0d4712017-03-27 14:01:34 -0500108 display: block;
109 margin-top: 1.6em;
Michael Davis3a0d4712017-03-27 14:01:34 -0500110 position: relative;
111 overflow: hidden;
Michael Davis0c262342017-04-10 11:48:52 -0500112 .header__actions-bar {
113 .btn-export,
114 .btn-delete,
115 .btn-resolve {
116 color: $white;
117 }
Michael Davisedb195a2017-07-13 19:07:19 -0500118 .event-log__col-check {
119 text-align: left;
120 max-width: 30px;
121 .control-check {
Michael Davis473397c2017-07-27 15:09:53 -0500122 margin-left: -6px;
Michael Davisedb195a2017-07-13 19:07:19 -0500123 }
124 }
Michael Davis0c262342017-04-10 11:48:52 -0500125 }
Michael Davis6af13462017-04-04 14:07:02 -0500126 .inline__confirm {
127 height: auto;
Michael Davis3a0d4712017-03-27 14:01:34 -0500128 margin-left: 0;
Michael Davis6af13462017-04-04 14:07:02 -0500129 left: 0;
130 padding: 1em 2em 1em 2em
131 }
Michael Davis6af13462017-04-04 14:07:02 -0500132 .inline__confirm-message {
133 margin-top: 5px;
134 margin-bottom: -10px;
135 }
136 .inline__confirm-buttons .btn-primary {
137 padding: .5em 2em;
138 min-height: 25px;
139 margin-top: .5em;
140 @include mediaQuery(medium) {
141 margin-top: 0;
Michael Davis3a0d4712017-03-27 14:01:34 -0500142 }
143 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500144 .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 {
Michael Davis0c262342017-04-10 11:48:52 -0500160 color: black;
Michael Davis3a0d4712017-03-27 14:01:34 -0500161 font-size: .9em;
162 font-weight: 700;
163 position: relative;
164 padding: 0 0 1em 2em;
165 &:hover {
166 text-decoration: underline;
167 }
168 }
Iftekharul Islam08054412017-08-25 10:29:57 -0500169 .btn-resolve.disabled:hover,
170 .btn-delete.disabled:hover{
Michael Davisdc7479b2017-07-31 18:27:49 -0500171 cursor: default;
172 text-decoration: none;
173 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500174 .btn-export {
175 margin-top: 7px;
176 padding-bottom: 0;
177 }
178 .btn-export:before {
179 content: '\21E5';
180 position: absolute;
181 font-size: 1.7em;
182 vertical-align: middle;
183 transform: rotate(90deg);
184 display: inline-block;
185 left: 2px;
186 top: -5px;
187 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500188 .btn-meta-copy,
189 .btn-delete,
190 .btn-resolve {
191 margin-left: 5px;
192 padding: .5em .5em;
193 }
194
195 // Single event log card
196 .event-log__single-event {
Michael Davis522a5522017-06-09 13:51:05 -0500197 border: 1px solid $medgrey;
Michael Davis0c262342017-04-10 11:48:52 -0500198 padding: 1em 1em 1em .7em;
Michael Davis522a5522017-06-09 13:51:05 -0500199 margin: .5em 0 .5em 0;
200 position: relative;
Michael Davisb76d5f02017-06-19 14:23:45 -0500201 overflow: hidden;
Michael Davisedb195a2017-07-13 19:07:19 -0500202 @include fastTransition-all;
203 &.active {
204 background-color: $lightgrey;
205 @include slowTransition-all;
206 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500207 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500208 .event-log__event-info {
209 &:hover {
210 cursor: pointer;
211 }
212 }
213
214 //Event priorities
215 .event__priority {
216 color: $white;
217 font-size: .8em;
218 text-transform: uppercase;
219 padding: 2px 2em;
220 font-weight: 700;
221 line-height: inherit;
222 min-width: 103px;
223 text-align: center;
Michael Davis3a0d4712017-03-27 14:01:34 -0500224 &.high-priority {
Michael Davisedb195a2017-07-13 19:07:19 -0500225 background: $highPriority-bg;
226 border: 2px solid $highPriorityColor;
227 color: darken($highPriorityColor, 5%);
Michael Davis3a0d4712017-03-27 14:01:34 -0500228 }
229 &.med-priority {
Michael Davisedb195a2017-07-13 19:07:19 -0500230 background: $medPriorty-bg;
231 border: 2px solid $medPriorityColor;
232 color: darken($medPriorityColor, 15%);
Michael Davis3a0d4712017-03-27 14:01:34 -0500233 }
234 &.low-priority {
Michael Davisedb195a2017-07-13 19:07:19 -0500235 background: $lowPriorty-bg;
236 border: 2px solid $lowPriorityColor;
237 color: darken($lowPriorityColor, 5%);
Michael Davis3a0d4712017-03-27 14:01:34 -0500238 }
239 &.event-resolved {
Michael Davisedb195a2017-07-13 19:07:19 -0500240 background: $resolved-bg;
241 border: 2px solid $resolvedColor;
242 color: $resolvedColor;
Michael Davis3a0d4712017-03-27 14:01:34 -0500243 }
244 }
245
246 //Event Severity
247 .event__severity {
248 font-size: .7em;
249 text-transform: uppercase;
Michael Davis3a0d4712017-03-27 14:01:34 -0500250 font-weight: 700;
Michael Davis3a0d4712017-03-27 14:01:34 -0500251 min-width: 103px;
Michael Davis522a5522017-06-09 13:51:05 -0500252 @include mediaQuery(medium) {
Michael Davisedb195a2017-07-13 19:07:19 -0500253 margin: 0 1em 0 1.5em;
254 }
255 &.high-priority {
256 color: darken($highPriorityColor, 5%);
257 }
258 &.med-priority {
259 color: darken($medPriorityColor, 15%);
260 }
261 &.low-priority {
262 color: darken($lowPriorityColor, 5%);
263 }
264 &.event-resolved {
265 color: $resolvedColor;
Michael Davis522a5522017-06-09 13:51:05 -0500266 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500267 }
268
269 //Event description
270 .event__description {
271 font-weight: 400;
Michael Davisedb195a2017-07-13 19:07:19 -0500272 margin-left: 1em;
273 @include mediaQuery(small) {
Gunnar Mills84e114a2018-11-14 13:44:41 -0600274 margin-left: 1.5em;
Michael Davisedb195a2017-07-13 19:07:19 -0500275 margin-right: 1em;
276 }
277 word-break: break-all;
Michael Davis3a0d4712017-03-27 14:01:34 -0500278 }
279
280 //Event ID
281 .event__id {
282 @include fontCourierBold;
283 font-size: .9em;
284 color: $darkgrey;
Michael Davis522a5522017-06-09 13:51:05 -0500285 margin-right: 1em;
Michael Davis3a0d4712017-03-27 14:01:34 -0500286 }
287
288 .event__timestamp {
beccabroek569ccf62018-10-29 13:46:53 -0500289 text-align: right;
Michael Davis3a0d4712017-03-27 14:01:34 -0500290 @include fontCourierBold;
291 font-size: .9em;
Michael Davis83608e12017-07-20 15:58:50 -0500292 color: $darkgrey;
beccabroek569ccf62018-10-29 13:46:53 -0500293 max-width: 18em;
294 @media (min-width: 1105px) {
Michael Davis522a5522017-06-09 13:51:05 -0500295 float: right;
296 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500297 }
298
299 // Event metadata row
300 .event__metadata-row {
Michael Davis6af13462017-04-04 14:07:02 -0500301 max-height: 0;
Michael Davis3a0d4712017-03-27 14:01:34 -0500302 overflow: hidden;
Michael Davis6af13462017-04-04 14:07:02 -0500303 -webkit-transition: 0.5s linear max-height;
304 transition: 0.5s linear max-height;
Michael Davis3a0d4712017-03-27 14:01:34 -0500305 &.active {
Michael Davis62bb80f2017-09-11 16:31:42 -0500306 max-height: 1000px;
Michael Davis3a0d4712017-03-27 14:01:34 -0500307 @include mediaQuery(small) {
Michael Davis6af13462017-04-04 14:07:02 -0500308 max-height: 1000px;
Michael Davis3a0d4712017-03-27 14:01:34 -0500309 }
310 @include mediaQuery(medium) {
Michael Davis6af13462017-04-04 14:07:02 -0500311 max-height: 1000px;
Michael Davis3a0d4712017-03-27 14:01:34 -0500312 }
313 }
314 }
315
316 //Event metadata
317 .event__metadata {
318 height: 200px;
319 overflow-y: scroll;
Michael Davis19ac8f82017-05-08 11:20:12 -0500320 border: 1px solid $medgrey;
Michael Davis3a0d4712017-03-27 14:01:34 -0500321 padding: .5em .5em 0;
322 background: $white;
323 display: block;
324 margin-bottom: 1.5em;
325 &::-webkit-scrollbar {
326 -webkit-appearance: none;
327 width: 7px;
328 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500329 &::-webkit-scrollbar-thumb {
330 border-radius: 4px;
331 background-color: rgba(0, 0, 0, .5);
332 -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5);
333 }
334 }
335
336 //Event Related Items
337 .event__related {
338 width: 100%;
339 }
340 .event__related-label {
341 font-weight: 700;
342 margin-right: 1.2em;
343 padding-top: .3em;
Michael Davis3e2fe422017-08-08 14:13:10 -0500344 float: left;
Michael Davis3a0d4712017-03-27 14:01:34 -0500345 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500346 .event__related-item {
347 margin-right: 1em;
348 padding-top: .3em;
Michael Davis6af13462017-04-04 14:07:02 -0500349 display: inline-block;
350 float: left;
351 clear: both;
Michael Davis3a0d4712017-03-27 14:01:34 -0500352 }
353 .event__actions {
354 margin-left: -1em;
Michael Davis473397c2017-07-27 15:09:53 -0500355 margin-top: .5em;
356 @include mediaQuery(medium) {
357 float: right;
358 margin-top: -5px;
359 }
Iftekharul Islam0b0e26d2018-11-15 10:44:59 -0600360 .disabled {
361 opacity: 0.2;
362 pointer-events: none;
363 cursor: default;
364 text-decoration: none;
365 }
366 .disabled:hover {
367 text-decoration: none;
368 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500369 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500370 .event__icon {
371 width: 20px;
372 height: 20px;
373 font-weight: normal;
374 margin-right: .5em;
375 margin-top: -3px;
376 display: inline-block;
377 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500378}
Michael Davis3a0d4712017-03-27 14:01:34 -0500379//end event-log__events
380
381
382