blob: 50c19b60349801e8eadc934b7264de0dd4892622 [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
Michael Davis3a0d4712017-03-27 14:01:34 -05004 // Dropwdowns filter
5 .dropdown__date.row {
6 padding: .5em;
Michael Davis971cfba2017-03-27 13:14:02 -05007 }
8
9 //Timezone select
Michael Davis3a0d4712017-03-27 14:01:34 -050010 .event-log__timezone,
11 .event-log__timezone button {
12 position: relative;
Michael Davis971cfba2017-03-27 13:14:02 -050013 text-transform: uppercase;
14 color: $lightbg__primary;
Michael Davis3a0d4712017-03-27 14:01:34 -050015 font-size: .9em;
Michael Davis971cfba2017-03-27 13:14:02 -050016 font-weight: 700;
Michael Davis0c262342017-04-10 11:48:52 -050017 border: 0;
Michael Davis3a0d4712017-03-27 14:01:34 -050018 }
Michael Davis0c262342017-04-10 11:48:52 -050019 .content__search {
Iftekharul Islam8b4828a2017-04-19 14:37:55 -050020 float: none;
Michael Davis0c262342017-04-10 11:48:52 -050021 @include mediaQuery(x-large) {
Michael Davis0c262342017-04-10 11:48:52 -050022 @include fastTransition-all;
23 }
24 }
25}
26
27#event-filter {
28 .filter-label {
Michael Davisc1530fa2017-07-20 14:11:45 -050029 color: $darkgrey;
Michael Davis0c262342017-04-10 11:48:52 -050030 text-transform: uppercase;
31 font-weight: 700;
32 font-size: .75em;
33 margin-bottom: 3px;
34 }
35 .event__severity-filter {
Michael Davisdc7479b2017-07-31 18:27:49 -050036 float:left;
Michael Davis0c262342017-04-10 11:48:52 -050037 margin-right: 2em;
38 margin-bottom: 1em;
39 button {
Michael Davisdc7479b2017-07-31 18:27:49 -050040 margin: 0px -3px;
Michael Davis0c262342017-04-10 11:48:52 -050041 padding: .6em 2em;
42 min-height: 2.1em;
43 font-size: .9em;
44 font-weight: 700;
45 border-radius: 0;
46 &.first,
47 &.last {
48 border-radius: 3px;
49 }
Michael Davis473397c2017-07-27 15:09:53 -050050 @media (min-width: 583px) {
51 &.last {
52 border-left: 0;
53 }
Michael Davis0c262342017-04-10 11:48:52 -050054 }
55 }
56 .btn-primary {
57 border: 2px solid $primebtn__bg;
58 }
Michael Davis0c262342017-04-10 11:48:52 -050059 }
60 .event__date-filter {
61 margin-right: 1.5em;
62 color: $darkgrey;
Michael Davisdc7479b2017-07-31 18:27:49 -050063 float:left;
Michael Davis0c262342017-04-10 11:48:52 -050064 input {
65 width: 170px;
66 height: 2.1rem;
67 }
68 label {
69 height: 0;
Michael Davis272297b2017-04-24 12:11:53 -050070 text-indent: -9999px;
Michael Davis0c262342017-04-10 11:48:52 -050071 }
72 }
Michael Davis473397c2017-07-27 15:09:53 -050073 .event__status-filter {
Michael Davisdc7479b2017-07-31 18:27:49 -050074 float:left;
Michael Davis473397c2017-07-27 15:09:53 -050075 @include mediaQuery(medium) {
76 width: 25%;
77 }
78 .dropdown__wrapper,
79 .dropdown__button {
80 width: 100%;
81 text-align: left;
82 }
Michael Davisedb195a2017-07-13 19:07:19 -050083 }
Michael Davis3a0d4712017-03-27 14:01:34 -050084}
85
Michael Davis3a0d4712017-03-27 14:01:34 -050086.event-log__filters {
87 position: relative;
88 padding-bottom: .5em;
89 padding-top: .5em;
90
91 @media (min-width: 1333px) {
92 float: right;
93 display: inline-block;
94 }
95}
96
Michael Davis83608e12017-07-20 15:58:50 -050097.accord-trigger {
98 position: absolute;
99 right: 1em;
100 top: .3em;
101}
102
Michael Davis522a5522017-06-09 13:51:05 -0500103#event-log__events,
104.event-log__events {
Michael Davis3a0d4712017-03-27 14:01:34 -0500105 display: block;
106 margin-top: 1.6em;
Michael Davis3a0d4712017-03-27 14:01:34 -0500107 position: relative;
108 overflow: hidden;
Michael Davis0c262342017-04-10 11:48:52 -0500109 .header__actions-bar {
110 .btn-export,
111 .btn-delete,
112 .btn-resolve {
113 color: $white;
114 }
Michael Davisedb195a2017-07-13 19:07:19 -0500115 .event-log__col-check {
116 text-align: left;
117 max-width: 30px;
118 .control-check {
Michael Davis473397c2017-07-27 15:09:53 -0500119 margin-left: -6px;
Michael Davisedb195a2017-07-13 19:07:19 -0500120 }
121 }
Michael Davis0c262342017-04-10 11:48:52 -0500122 }
Michael Davis6af13462017-04-04 14:07:02 -0500123 .inline__confirm {
124 height: auto;
Michael Davis3a0d4712017-03-27 14:01:34 -0500125 margin-left: 0;
Michael Davis6af13462017-04-04 14:07:02 -0500126 left: 0;
127 padding: 1em 2em 1em 2em
128 }
Michael Davis6af13462017-04-04 14:07:02 -0500129 .inline__confirm-message {
130 margin-top: 5px;
131 margin-bottom: -10px;
132 }
133 .inline__confirm-buttons .btn-primary {
134 padding: .5em 2em;
135 min-height: 25px;
136 margin-top: .5em;
137 @include mediaQuery(medium) {
138 margin-top: 0;
Michael Davis3a0d4712017-03-27 14:01:34 -0500139 }
140 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500141 .event-log__col-check {
142 max-width: 60px;
143 text-align: center;
144 }
145 .col-logged-events {
146 span {
147 display: inline-block;
148 font-weight: 700;
149 margin-right: .3em;
150 }
151 }
152
153 //Export log
154 .btn-export, .btn-meta-copy,
155 .btn-delete,
156 .btn-resolve {
Michael Davis0c262342017-04-10 11:48:52 -0500157 color: black;
Michael Davis3a0d4712017-03-27 14:01:34 -0500158 font-size: .9em;
159 font-weight: 700;
160 position: relative;
161 padding: 0 0 1em 2em;
162 &:hover {
163 text-decoration: underline;
164 }
165 }
Iftekharul Islam08054412017-08-25 10:29:57 -0500166 .btn-resolve.disabled:hover,
167 .btn-delete.disabled:hover{
Michael Davisdc7479b2017-07-31 18:27:49 -0500168 cursor: default;
169 text-decoration: none;
170 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500171 .btn-export {
172 margin-top: 7px;
173 padding-bottom: 0;
174 }
175 .btn-export:before {
176 content: '\21E5';
177 position: absolute;
178 font-size: 1.7em;
179 vertical-align: middle;
180 transform: rotate(90deg);
181 display: inline-block;
182 left: 2px;
183 top: -5px;
184 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500185 .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 {
Michael Davis522a5522017-06-09 13:51:05 -0500194 border: 1px solid $medgrey;
Michael Davis0c262342017-04-10 11:48:52 -0500195 padding: 1em 1em 1em .7em;
Michael Davis522a5522017-06-09 13:51:05 -0500196 margin: .5em 0 .5em 0;
197 position: relative;
Michael Davisb76d5f02017-06-19 14:23:45 -0500198 overflow: hidden;
Michael Davisedb195a2017-07-13 19:07:19 -0500199 @include fastTransition-all;
200 &.active {
201 background-color: $lightgrey;
202 @include slowTransition-all;
203 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500204 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500205 .event-log__event-info {
206 &:hover {
207 cursor: pointer;
208 }
209 }
210
211 //Event priorities
212 .event__priority {
213 color: $white;
214 font-size: .8em;
215 text-transform: uppercase;
216 padding: 2px 2em;
217 font-weight: 700;
218 line-height: inherit;
219 min-width: 103px;
220 text-align: center;
Michael Davis3a0d4712017-03-27 14:01:34 -0500221 &.high-priority {
Michael Davisedb195a2017-07-13 19:07:19 -0500222 background: $highPriority-bg;
223 border: 2px solid $highPriorityColor;
224 color: darken($highPriorityColor, 5%);
Michael Davis3a0d4712017-03-27 14:01:34 -0500225 }
226 &.med-priority {
Michael Davisedb195a2017-07-13 19:07:19 -0500227 background: $medPriorty-bg;
228 border: 2px solid $medPriorityColor;
229 color: darken($medPriorityColor, 15%);
Michael Davis3a0d4712017-03-27 14:01:34 -0500230 }
231 &.low-priority {
Michael Davisedb195a2017-07-13 19:07:19 -0500232 background: $lowPriorty-bg;
233 border: 2px solid $lowPriorityColor;
234 color: darken($lowPriorityColor, 5%);
Michael Davis3a0d4712017-03-27 14:01:34 -0500235 }
236 &.event-resolved {
Michael Davisedb195a2017-07-13 19:07:19 -0500237 background: $resolved-bg;
238 border: 2px solid $resolvedColor;
239 color: $resolvedColor;
Michael Davis3a0d4712017-03-27 14:01:34 -0500240 }
241 }
242
243 //Event Severity
244 .event__severity {
245 font-size: .7em;
246 text-transform: uppercase;
Michael Davis3a0d4712017-03-27 14:01:34 -0500247 font-weight: 700;
Michael Davis3a0d4712017-03-27 14:01:34 -0500248 min-width: 103px;
Michael Davis522a5522017-06-09 13:51:05 -0500249 @include mediaQuery(medium) {
Michael Davisedb195a2017-07-13 19:07:19 -0500250 margin: 0 1em 0 1.5em;
251 }
252 &.high-priority {
253 color: darken($highPriorityColor, 5%);
254 }
255 &.med-priority {
256 color: darken($medPriorityColor, 15%);
257 }
258 &.low-priority {
259 color: darken($lowPriorityColor, 5%);
260 }
261 &.event-resolved {
262 color: $resolvedColor;
Michael Davis522a5522017-06-09 13:51:05 -0500263 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500264 }
265
266 //Event description
267 .event__description {
268 font-weight: 400;
Michael Davisedb195a2017-07-13 19:07:19 -0500269 margin-left: 1em;
270 @include mediaQuery(small) {
271 margin-left: 4.5em;
272 margin-right: 1em;
273 }
274 word-break: break-all;
Michael Davis3a0d4712017-03-27 14:01:34 -0500275 }
276
277 //Event ID
278 .event__id {
279 @include fontCourierBold;
280 font-size: .9em;
281 color: $darkgrey;
Michael Davis522a5522017-06-09 13:51:05 -0500282 margin-right: 1em;
Michael Davis3a0d4712017-03-27 14:01:34 -0500283 }
284
285 .event__timestamp {
beccabroek569ccf62018-10-29 13:46:53 -0500286 text-align: right;
Michael Davis3a0d4712017-03-27 14:01:34 -0500287 @include fontCourierBold;
288 font-size: .9em;
Michael Davis83608e12017-07-20 15:58:50 -0500289 color: $darkgrey;
beccabroek569ccf62018-10-29 13:46:53 -0500290 max-width: 18em;
291 @media (min-width: 1105px) {
Michael Davis522a5522017-06-09 13:51:05 -0500292 float: right;
293 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500294 }
295
296 // Event metadata row
297 .event__metadata-row {
Michael Davis6af13462017-04-04 14:07:02 -0500298 max-height: 0;
Michael Davis3a0d4712017-03-27 14:01:34 -0500299 overflow: hidden;
Michael Davis6af13462017-04-04 14:07:02 -0500300 -webkit-transition: 0.5s linear max-height;
301 transition: 0.5s linear max-height;
Michael Davis3a0d4712017-03-27 14:01:34 -0500302 &.active {
Michael Davis62bb80f2017-09-11 16:31:42 -0500303 max-height: 1000px;
Michael Davis3a0d4712017-03-27 14:01:34 -0500304 @include mediaQuery(small) {
Michael Davis6af13462017-04-04 14:07:02 -0500305 max-height: 1000px;
Michael Davis3a0d4712017-03-27 14:01:34 -0500306 }
307 @include mediaQuery(medium) {
Michael Davis6af13462017-04-04 14:07:02 -0500308 max-height: 1000px;
Michael Davis3a0d4712017-03-27 14:01:34 -0500309 }
310 }
311 }
312
313 //Event metadata
314 .event__metadata {
315 height: 200px;
316 overflow-y: scroll;
Michael Davis19ac8f82017-05-08 11:20:12 -0500317 border: 1px solid $medgrey;
Michael Davis3a0d4712017-03-27 14:01:34 -0500318 padding: .5em .5em 0;
319 background: $white;
320 display: block;
321 margin-bottom: 1.5em;
322 &::-webkit-scrollbar {
323 -webkit-appearance: none;
324 width: 7px;
325 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500326 &::-webkit-scrollbar-thumb {
327 border-radius: 4px;
328 background-color: rgba(0, 0, 0, .5);
329 -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5);
330 }
331 }
332
333 //Event Related Items
334 .event__related {
335 width: 100%;
336 }
337 .event__related-label {
338 font-weight: 700;
339 margin-right: 1.2em;
340 padding-top: .3em;
Michael Davis3e2fe422017-08-08 14:13:10 -0500341 float: left;
Michael Davis3a0d4712017-03-27 14:01:34 -0500342 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500343 .event__related-item {
344 margin-right: 1em;
345 padding-top: .3em;
Michael Davis6af13462017-04-04 14:07:02 -0500346 display: inline-block;
347 float: left;
348 clear: both;
Michael Davis3a0d4712017-03-27 14:01:34 -0500349 }
350 .event__actions {
351 margin-left: -1em;
Michael Davis473397c2017-07-27 15:09:53 -0500352 margin-top: .5em;
353 @include mediaQuery(medium) {
354 float: right;
355 margin-top: -5px;
356 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500357 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500358 .event__icon {
359 width: 20px;
360 height: 20px;
361 font-weight: normal;
362 margin-right: .5em;
363 margin-top: -3px;
364 display: inline-block;
365 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500366}
Michael Davis3a0d4712017-03-27 14:01:34 -0500367//end event-log__events
368
369
370