blob: f1a5e8c06e42b21d56bfa9e664dc48b8a1e04221 [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 Davis3a0d4712017-03-27 14:01:34 -05003 .accord-trigger {
4 transform: rotate(90deg);
5 font-size: 1.5em;
6 color: lighten($darkgrey, 10%);
7 padding: .3em;
8 display: block;
9 margin: 0 auto;
10 transition: all .2s ease;
11 &:after {
12 content: '\276F'
Michael Davis971cfba2017-03-27 13:14:02 -050013 }
Michael Davis3a0d4712017-03-27 14:01:34 -050014 &.active {
15 transform: rotate(-90deg);
16 color: $darkbg__accent;
Michael Davis971cfba2017-03-27 13:14:02 -050017 }
Michael Davis3a0d4712017-03-27 14:01:34 -050018 &:focus {
19 outline: 0;
20 color: $darkbg__accent;
21 }
22 }
Michael Davis971cfba2017-03-27 13:14:02 -050023
Michael Davis3a0d4712017-03-27 14:01:34 -050024 // Dropwdowns filter
25 .dropdown__date.row {
26 padding: .5em;
Michael Davis971cfba2017-03-27 13:14:02 -050027 }
28
29 //Timezone select
Michael Davis3a0d4712017-03-27 14:01:34 -050030 .event-log__timezone,
31 .event-log__timezone button {
32 position: relative;
Michael Davis971cfba2017-03-27 13:14:02 -050033 text-transform: uppercase;
34 color: $lightbg__primary;
Michael Davis3a0d4712017-03-27 14:01:34 -050035 font-size: .9em;
Michael Davis971cfba2017-03-27 13:14:02 -050036 font-weight: 700;
Michael Davis0c262342017-04-10 11:48:52 -050037 border: 0;
Michael Davis3a0d4712017-03-27 14:01:34 -050038 }
Michael Davis0c262342017-04-10 11:48:52 -050039 .content__search {
Iftekharul Islam8b4828a2017-04-19 14:37:55 -050040 float: none;
Michael Davis0c262342017-04-10 11:48:52 -050041 @include mediaQuery(x-large) {
42 max-width: 61%;
43 @include fastTransition-all;
44 }
45 }
46}
47
48#event-filter {
49 .filter-label {
50 color: darken($lightgrey, 10%);
51 text-transform: uppercase;
52 font-weight: 700;
53 font-size: .75em;
54 margin-bottom: 3px;
55 }
56 .event__severity-filter {
57 margin-right: 2em;
58 margin-bottom: 1em;
59 button {
60 margin: 3px -3px;
61 padding: .6em 2em;
62 min-height: 2.1em;
63 font-size: .9em;
64 font-weight: 700;
65 border-radius: 0;
66 &.first,
67 &.last {
68 border-radius: 3px;
69 }
70 &.last {
71 border-left: 0;
72 }
73 }
74 .btn-primary {
75 border: 2px solid $primebtn__bg;
76 }
77
78 }
79 .event__date-filter {
80 margin-right: 1.5em;
81 color: $darkgrey;
82 input {
83 width: 170px;
84 height: 2.1rem;
85 }
86 label {
87 height: 0;
88 text-indent: -999px;
89 }
90 }
Michael Davis3a0d4712017-03-27 14:01:34 -050091}
92
Michael Davis3a0d4712017-03-27 14:01:34 -050093.event-log__filters {
94 position: relative;
95 padding-bottom: .5em;
96 padding-top: .5em;
97
98 @media (min-width: 1333px) {
99 float: right;
100 display: inline-block;
101 }
102}
103
104// Event Log Events
Michael Davis0c262342017-04-10 11:48:52 -0500105#event-log__events.row {
106 padding-left: 0;
107 padding-right: 0;
108}
Michael Davis3a0d4712017-03-27 14:01:34 -0500109#event-log__events {
110 display: block;
111 margin-top: 1.6em;
Michael Davis3a0d4712017-03-27 14:01:34 -0500112 position: relative;
113 overflow: hidden;
Michael Davis0c262342017-04-10 11:48:52 -0500114 .header__actions-bar {
115 .btn-export,
116 .btn-delete,
117 .btn-resolve {
118 color: $white;
119 }
120 }
Michael Davis6af13462017-04-04 14:07:02 -0500121 .inline__confirm {
122 height: auto;
Michael Davis3a0d4712017-03-27 14:01:34 -0500123 margin-left: 0;
Michael Davis6af13462017-04-04 14:07:02 -0500124 left: 0;
125 padding: 1em 2em 1em 2em
126 }
Michael Davis6af13462017-04-04 14:07:02 -0500127 .inline__confirm-message {
128 margin-top: 5px;
129 margin-bottom: -10px;
130 }
131 .inline__confirm-buttons .btn-primary {
132 padding: .5em 2em;
133 min-height: 25px;
134 margin-top: .5em;
135 @include mediaQuery(medium) {
136 margin-top: 0;
Michael Davis3a0d4712017-03-27 14:01:34 -0500137 }
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;
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 }
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;
Michael Davis0c262342017-04-10 11:48:52 -0500191 padding: 1em 1em 1em .7em;
Michael Davis3a0d4712017-03-27 14:01:34 -0500192 }
193
194 .event-log__event-info {
195 &:hover {
196 cursor: pointer;
197 }
198 }
199
200 //Event priorities
201 .event__priority {
202 color: $white;
203 font-size: .8em;
204 text-transform: uppercase;
205 padding: 2px 2em;
206 font-weight: 700;
207 line-height: inherit;
208 min-width: 103px;
209 text-align: center;
210
211 &.high-priority {
212 background: $error-color;
213
214 }
215 &.med-priority {
216 background: $alert__warning;
217
218 }
219 &.low-priority {
220 background: $lightbg__primary;
221 }
222 &.event-resolved {
223 background: $purple;
224 padding: 2px 1em;
225 }
226 }
227
228 //Event Severity
229 .event__severity {
230 font-size: .7em;
231 text-transform: uppercase;
232 color: $darkgrey;
233 font-weight: 700;
234 margin: 0 1em;
235 min-width: 103px;
236 }
237
238 //Event description
239 .event__description {
240 font-weight: 400;
241 }
242
243 //Event ID
244 .event__id {
245 @include fontCourierBold;
246 font-size: .9em;
247 color: $darkgrey;
248 }
249
250 .event__timestamp {
251 @include fontCourierBold;
252 font-size: .9em;
253 color: #999999;
254 margin-left: 1.2em;
255 }
256
257 // Event metadata row
258 .event__metadata-row {
Michael Davis6af13462017-04-04 14:07:02 -0500259 max-height: 0;
Michael Davis3a0d4712017-03-27 14:01:34 -0500260 overflow: hidden;
Michael Davis6af13462017-04-04 14:07:02 -0500261 -webkit-transition: 0.5s linear max-height;
262 transition: 0.5s linear max-height;
Michael Davis3a0d4712017-03-27 14:01:34 -0500263 &.active {
Michael Davis6af13462017-04-04 14:07:02 -0500264 max-height: 1000px; //max-height used to allow flexible height of content and still allow transition
Michael Davis3a0d4712017-03-27 14:01:34 -0500265 @include mediaQuery(small) {
Michael Davis6af13462017-04-04 14:07:02 -0500266 max-height: 1000px;
Michael Davis3a0d4712017-03-27 14:01:34 -0500267 }
268 @include mediaQuery(medium) {
Michael Davis6af13462017-04-04 14:07:02 -0500269 max-height: 1000px;
Michael Davis3a0d4712017-03-27 14:01:34 -0500270 }
271 }
272 }
273
274 //Event metadata
275 .event__metadata {
276 height: 200px;
277 overflow-y: scroll;
278 border: 1px solid $lightgrey;
279 padding: .5em .5em 0;
280 background: $white;
281 display: block;
282 margin-bottom: 1.5em;
283 &::-webkit-scrollbar {
284 -webkit-appearance: none;
285 width: 7px;
286 }
287
288 &::-webkit-scrollbar-thumb {
289 border-radius: 4px;
290 background-color: rgba(0, 0, 0, .5);
291 -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5);
292 }
293 }
294
295 //Event Related Items
296 .event__related {
297 width: 100%;
298 }
299 .event__related-label {
300 font-weight: 700;
301 margin-right: 1.2em;
302 padding-top: .3em;
303 }
304
305 .event__related-item {
306 margin-right: 1em;
307 padding-top: .3em;
Michael Davis6af13462017-04-04 14:07:02 -0500308 display: inline-block;
309 float: left;
310 clear: both;
Michael Davis3a0d4712017-03-27 14:01:34 -0500311 }
312 .event__actions {
313 margin-left: -1em;
314 //margin-bottom: 1em;
315 @include mediaQuery(medium) {
316 float: right;
317 }
318 }
319
320 .event__icon {
321 width: 20px;
322 height: 20px;
323 font-weight: normal;
324 margin-right: .5em;
325 margin-top: -3px;
326 display: inline-block;
327 }
328
329}
330
331//end event-log__events
332
333
334