blob: a0ab2ebdbdfa564016dcda2ac6c152e46d7b86ba [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) {
22 max-width: 61%;
23 @include fastTransition-all;
24 }
25 }
26}
27
28#event-filter {
29 .filter-label {
Michael Davis51946552017-05-01 10:30:38 -050030 color: darken($medgrey, 10%);
Michael Davis0c262342017-04-10 11:48:52 -050031 text-transform: uppercase;
32 font-weight: 700;
33 font-size: .75em;
34 margin-bottom: 3px;
35 }
36 .event__severity-filter {
37 margin-right: 2em;
38 margin-bottom: 1em;
39 button {
40 margin: 3px -3px;
41 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 }
50 &.last {
51 border-left: 0;
52 }
53 }
54 .btn-primary {
55 border: 2px solid $primebtn__bg;
56 }
Michael Davis0c262342017-04-10 11:48:52 -050057 }
58 .event__date-filter {
59 margin-right: 1.5em;
60 color: $darkgrey;
61 input {
62 width: 170px;
63 height: 2.1rem;
64 }
65 label {
66 height: 0;
Michael Davis272297b2017-04-24 12:11:53 -050067 text-indent: -9999px;
Michael Davis0c262342017-04-10 11:48:52 -050068 }
69 }
Michael Davis3a0d4712017-03-27 14:01:34 -050070}
71
Michael Davis3a0d4712017-03-27 14:01:34 -050072.event-log__filters {
73 position: relative;
74 padding-bottom: .5em;
75 padding-top: .5em;
76
77 @media (min-width: 1333px) {
78 float: right;
79 display: inline-block;
80 }
81}
82
83// Event Log Events
Michael Davis0c262342017-04-10 11:48:52 -050084#event-log__events.row {
85 padding-left: 0;
86 padding-right: 0;
87}
Michael Davis272297b2017-04-24 12:11:53 -050088
Michael Davis522a5522017-06-09 13:51:05 -050089#event-log__events,
90.event-log__events {
Michael Davis3a0d4712017-03-27 14:01:34 -050091 display: block;
92 margin-top: 1.6em;
Michael Davis3a0d4712017-03-27 14:01:34 -050093 position: relative;
94 overflow: hidden;
Michael Davis0c262342017-04-10 11:48:52 -050095 .header__actions-bar {
96 .btn-export,
97 .btn-delete,
98 .btn-resolve {
99 color: $white;
100 }
101 }
Michael Davis6af13462017-04-04 14:07:02 -0500102 .inline__confirm {
103 height: auto;
Michael Davis3a0d4712017-03-27 14:01:34 -0500104 margin-left: 0;
Michael Davis6af13462017-04-04 14:07:02 -0500105 left: 0;
106 padding: 1em 2em 1em 2em
107 }
Michael Davis6af13462017-04-04 14:07:02 -0500108 .inline__confirm-message {
109 margin-top: 5px;
110 margin-bottom: -10px;
111 }
112 .inline__confirm-buttons .btn-primary {
113 padding: .5em 2em;
114 min-height: 25px;
115 margin-top: .5em;
116 @include mediaQuery(medium) {
117 margin-top: 0;
Michael Davis3a0d4712017-03-27 14:01:34 -0500118 }
119 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500120 .event-log__col-check {
121 max-width: 60px;
122 text-align: center;
123 }
124 .col-logged-events {
125 span {
126 display: inline-block;
127 font-weight: 700;
128 margin-right: .3em;
129 }
130 }
131
132 //Export log
133 .btn-export, .btn-meta-copy,
134 .btn-delete,
135 .btn-resolve {
136 text-transform: capitalize;
Michael Davis0c262342017-04-10 11:48:52 -0500137 color: black;
Michael Davis3a0d4712017-03-27 14:01:34 -0500138 font-size: .9em;
139 font-weight: 700;
140 position: relative;
141 padding: 0 0 1em 2em;
142 &:hover {
143 text-decoration: underline;
144 }
145 }
146 .btn-export {
147 margin-top: 7px;
148 padding-bottom: 0;
149 }
150 .btn-export:before {
151 content: '\21E5';
152 position: absolute;
153 font-size: 1.7em;
154 vertical-align: middle;
155 transform: rotate(90deg);
156 display: inline-block;
157 left: 2px;
158 top: -5px;
159 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500160 .btn-meta-copy,
161 .btn-delete,
162 .btn-resolve {
163 margin-left: 5px;
164 padding: .5em .5em;
165 }
166
167 // Single event log card
168 .event-log__single-event {
Michael Davis522a5522017-06-09 13:51:05 -0500169 border: 1px solid $medgrey;
Michael Davis0c262342017-04-10 11:48:52 -0500170 padding: 1em 1em 1em .7em;
Michael Davis522a5522017-06-09 13:51:05 -0500171 margin: .5em 0 .5em 0;
172 position: relative;
Michael Davisb76d5f02017-06-19 14:23:45 -0500173 overflow: hidden;
Michael Davis3a0d4712017-03-27 14:01:34 -0500174 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500175 .event-log__event-info {
176 &:hover {
177 cursor: pointer;
178 }
179 }
180
181 //Event priorities
182 .event__priority {
183 color: $white;
184 font-size: .8em;
185 text-transform: uppercase;
186 padding: 2px 2em;
187 font-weight: 700;
188 line-height: inherit;
189 min-width: 103px;
190 text-align: center;
Michael Davis3a0d4712017-03-27 14:01:34 -0500191 &.high-priority {
192 background: $error-color;
193
194 }
195 &.med-priority {
196 background: $alert__warning;
197
198 }
199 &.low-priority {
200 background: $lightbg__primary;
201 }
202 &.event-resolved {
203 background: $purple;
204 padding: 2px 1em;
205 }
206 }
207
208 //Event Severity
209 .event__severity {
210 font-size: .7em;
211 text-transform: uppercase;
212 color: $darkgrey;
213 font-weight: 700;
Michael Davis3a0d4712017-03-27 14:01:34 -0500214 min-width: 103px;
Michael Davis522a5522017-06-09 13:51:05 -0500215 @include mediaQuery(medium) {
216 margin: 0 1em;
217 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500218 }
219
220 //Event description
221 .event__description {
222 font-weight: 400;
223 }
224
225 //Event ID
226 .event__id {
227 @include fontCourierBold;
228 font-size: .9em;
229 color: $darkgrey;
Michael Davis522a5522017-06-09 13:51:05 -0500230 margin-right: 1em;
Michael Davis3a0d4712017-03-27 14:01:34 -0500231 }
232
233 .event__timestamp {
234 @include fontCourierBold;
235 font-size: .9em;
236 color: #999999;
Michael Davis522a5522017-06-09 13:51:05 -0500237 @media (min-width: 1105px ) {
238 float: right;
239 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500240 }
241
242 // Event metadata row
243 .event__metadata-row {
Michael Davis6af13462017-04-04 14:07:02 -0500244 max-height: 0;
Michael Davis3a0d4712017-03-27 14:01:34 -0500245 overflow: hidden;
Michael Davis6af13462017-04-04 14:07:02 -0500246 -webkit-transition: 0.5s linear max-height;
247 transition: 0.5s linear max-height;
Michael Davis3a0d4712017-03-27 14:01:34 -0500248 &.active {
Michael Davis6af13462017-04-04 14:07:02 -0500249 max-height: 1000px; //max-height used to allow flexible height of content and still allow transition
Michael Davis3a0d4712017-03-27 14:01:34 -0500250 @include mediaQuery(small) {
Michael Davis6af13462017-04-04 14:07:02 -0500251 max-height: 1000px;
Michael Davis3a0d4712017-03-27 14:01:34 -0500252 }
253 @include mediaQuery(medium) {
Michael Davis6af13462017-04-04 14:07:02 -0500254 max-height: 1000px;
Michael Davis3a0d4712017-03-27 14:01:34 -0500255 }
256 }
257 }
258
259 //Event metadata
260 .event__metadata {
261 height: 200px;
262 overflow-y: scroll;
Michael Davis19ac8f82017-05-08 11:20:12 -0500263 border: 1px solid $medgrey;
Michael Davis3a0d4712017-03-27 14:01:34 -0500264 padding: .5em .5em 0;
265 background: $white;
266 display: block;
267 margin-bottom: 1.5em;
268 &::-webkit-scrollbar {
269 -webkit-appearance: none;
270 width: 7px;
271 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500272 &::-webkit-scrollbar-thumb {
273 border-radius: 4px;
274 background-color: rgba(0, 0, 0, .5);
275 -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5);
276 }
277 }
278
279 //Event Related Items
280 .event__related {
281 width: 100%;
282 }
283 .event__related-label {
284 font-weight: 700;
285 margin-right: 1.2em;
286 padding-top: .3em;
287 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500288 .event__related-item {
289 margin-right: 1em;
290 padding-top: .3em;
Michael Davis6af13462017-04-04 14:07:02 -0500291 display: inline-block;
292 float: left;
293 clear: both;
Michael Davis3a0d4712017-03-27 14:01:34 -0500294 }
295 .event__actions {
296 margin-left: -1em;
Michael Davis51946552017-05-01 10:30:38 -0500297 float: right;
Michael Davis3a0d4712017-03-27 14:01:34 -0500298 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500299 .event__icon {
300 width: 20px;
301 height: 20px;
302 font-weight: normal;
303 margin-right: .5em;
304 margin-top: -3px;
305 display: inline-block;
306 }
Michael Davis3a0d4712017-03-27 14:01:34 -0500307}
Michael Davis3a0d4712017-03-27 14:01:34 -0500308//end event-log__events
309
310
311