blob: 1af81ad56097ecbad923d5f377879e892e151ff5 [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 }
Michael Davis0c262342017-04-10 11:48:52 -050077 }
78 .event__date-filter {
79 margin-right: 1.5em;
80 color: $darkgrey;
81 input {
82 width: 170px;
83 height: 2.1rem;
84 }
85 label {
86 height: 0;
Michael Davis272297b2017-04-24 12:11:53 -050087 text-indent: -9999px;
Michael Davis0c262342017-04-10 11:48:52 -050088 }
89 }
Michael Davis3a0d4712017-03-27 14:01:34 -050090}
91
Michael Davis3a0d4712017-03-27 14:01:34 -050092.event-log__filters {
93 position: relative;
94 padding-bottom: .5em;
95 padding-top: .5em;
96
97 @media (min-width: 1333px) {
98 float: right;
99 display: inline-block;
100 }
101}
102
103// Event Log Events
Michael Davis0c262342017-04-10 11:48:52 -0500104#event-log__events.row {
105 padding-left: 0;
106 padding-right: 0;
107}
Michael Davis272297b2017-04-24 12:11:53 -0500108
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 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500139 .event-log__col-check {
140 max-width: 60px;
141 text-align: center;
142 }
143 .col-logged-events {
144 span {
145 display: inline-block;
146 font-weight: 700;
147 margin-right: .3em;
148 }
149 }
150
151 //Export log
152 .btn-export, .btn-meta-copy,
153 .btn-delete,
154 .btn-resolve {
155 text-transform: capitalize;
Michael Davis0c262342017-04-10 11:48:52 -0500156 color: black;
Michael Davis3a0d4712017-03-27 14:01:34 -0500157 font-size: .9em;
158 font-weight: 700;
159 position: relative;
160 padding: 0 0 1em 2em;
161 &:hover {
162 text-decoration: underline;
163 }
164 }
165 .btn-export {
166 margin-top: 7px;
167 padding-bottom: 0;
168 }
169 .btn-export:before {
170 content: '\21E5';
171 position: absolute;
172 font-size: 1.7em;
173 vertical-align: middle;
174 transform: rotate(90deg);
175 display: inline-block;
176 left: 2px;
177 top: -5px;
178 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500179 .btn-meta-copy,
180 .btn-delete,
181 .btn-resolve {
182 margin-left: 5px;
183 padding: .5em .5em;
184 }
185
186 // Single event log card
187 .event-log__single-event {
188 border-top: 1px solid $lightgrey;
Michael Davis0c262342017-04-10 11:48:52 -0500189 padding: 1em 1em 1em .7em;
Michael Davis3a0d4712017-03-27 14:01:34 -0500190 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500191 .event-log__event-info {
192 &:hover {
193 cursor: pointer;
194 }
195 }
196
197 //Event priorities
198 .event__priority {
199 color: $white;
200 font-size: .8em;
201 text-transform: uppercase;
202 padding: 2px 2em;
203 font-weight: 700;
204 line-height: inherit;
205 min-width: 103px;
206 text-align: center;
Michael Davis3a0d4712017-03-27 14:01:34 -0500207 &.high-priority {
208 background: $error-color;
209
210 }
211 &.med-priority {
212 background: $alert__warning;
213
214 }
215 &.low-priority {
216 background: $lightbg__primary;
217 }
218 &.event-resolved {
219 background: $purple;
220 padding: 2px 1em;
221 }
222 }
223
224 //Event Severity
225 .event__severity {
226 font-size: .7em;
227 text-transform: uppercase;
228 color: $darkgrey;
229 font-weight: 700;
230 margin: 0 1em;
231 min-width: 103px;
232 }
233
234 //Event description
235 .event__description {
236 font-weight: 400;
237 }
238
239 //Event ID
240 .event__id {
241 @include fontCourierBold;
242 font-size: .9em;
243 color: $darkgrey;
244 }
245
246 .event__timestamp {
247 @include fontCourierBold;
248 font-size: .9em;
249 color: #999999;
250 margin-left: 1.2em;
251 }
252
253 // Event metadata row
254 .event__metadata-row {
Michael Davis6af13462017-04-04 14:07:02 -0500255 max-height: 0;
Michael Davis3a0d4712017-03-27 14:01:34 -0500256 overflow: hidden;
Michael Davis6af13462017-04-04 14:07:02 -0500257 -webkit-transition: 0.5s linear max-height;
258 transition: 0.5s linear max-height;
Michael Davis3a0d4712017-03-27 14:01:34 -0500259 &.active {
Michael Davis6af13462017-04-04 14:07:02 -0500260 max-height: 1000px; //max-height used to allow flexible height of content and still allow transition
Michael Davis3a0d4712017-03-27 14:01:34 -0500261 @include mediaQuery(small) {
Michael Davis6af13462017-04-04 14:07:02 -0500262 max-height: 1000px;
Michael Davis3a0d4712017-03-27 14:01:34 -0500263 }
264 @include mediaQuery(medium) {
Michael Davis6af13462017-04-04 14:07:02 -0500265 max-height: 1000px;
Michael Davis3a0d4712017-03-27 14:01:34 -0500266 }
267 }
268 }
269
270 //Event metadata
271 .event__metadata {
272 height: 200px;
273 overflow-y: scroll;
274 border: 1px solid $lightgrey;
275 padding: .5em .5em 0;
276 background: $white;
277 display: block;
278 margin-bottom: 1.5em;
279 &::-webkit-scrollbar {
280 -webkit-appearance: none;
281 width: 7px;
282 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500283 &::-webkit-scrollbar-thumb {
284 border-radius: 4px;
285 background-color: rgba(0, 0, 0, .5);
286 -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5);
287 }
288 }
289
290 //Event Related Items
291 .event__related {
292 width: 100%;
293 }
294 .event__related-label {
295 font-weight: 700;
296 margin-right: 1.2em;
297 padding-top: .3em;
298 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500299 .event__related-item {
300 margin-right: 1em;
301 padding-top: .3em;
Michael Davis6af13462017-04-04 14:07:02 -0500302 display: inline-block;
303 float: left;
304 clear: both;
Michael Davis3a0d4712017-03-27 14:01:34 -0500305 }
306 .event__actions {
307 margin-left: -1em;
308 //margin-bottom: 1em;
309 @include mediaQuery(medium) {
310 float: right;
311 }
312 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500313 .event__icon {
314 width: 20px;
315 height: 20px;
316 font-weight: normal;
317 margin-right: .5em;
318 margin-top: -3px;
319 display: inline-block;
320 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500321}
Michael Davis3a0d4712017-03-27 14:01:34 -0500322//end event-log__events
323
324
325