blob: 7c3076204056103f61e1a46d6cd6effedac8b619 [file] [log] [blame]
Michael Davis971cfba2017-03-27 13:14:02 -05001// Event Log SCSS
Michael Davis971cfba2017-03-27 13:14:02 -05002#event-log {
3
Michael Davis3a0d4712017-03-27 14:01:34 -05004 .accord-trigger {
5 transform: rotate(90deg);
6 font-size: 1.5em;
7 color: lighten($darkgrey, 10%);
8 padding: .3em;
9 display: block;
10 margin: 0 auto;
11 transition: all .2s ease;
12 &:after {
13 content: '\276F'
Michael Davis971cfba2017-03-27 13:14:02 -050014 }
Michael Davis3a0d4712017-03-27 14:01:34 -050015 &.active {
16 transform: rotate(-90deg);
17 color: $darkbg__accent;
Michael Davis971cfba2017-03-27 13:14:02 -050018 }
Michael Davis3a0d4712017-03-27 14:01:34 -050019 &:focus {
20 outline: 0;
21 color: $darkbg__accent;
22 }
23 }
24 .row {
Michael Davis6af13462017-04-04 14:07:02 -050025 //padding: 0;
Michael Davis3a0d4712017-03-27 14:01:34 -050026 margin-left: 0;
27 }
Michael Davis971cfba2017-03-27 13:14:02 -050028
Michael Davis3a0d4712017-03-27 14:01:34 -050029 // Dropwdowns filter
30 .dropdown__date.row {
31 padding: .5em;
Michael Davis971cfba2017-03-27 13:14:02 -050032 }
33
34 //Timezone select
Michael Davis3a0d4712017-03-27 14:01:34 -050035 .event-log__timezone,
36 .event-log__timezone button {
37 position: relative;
Michael Davis971cfba2017-03-27 13:14:02 -050038 text-transform: uppercase;
39 color: $lightbg__primary;
Michael Davis3a0d4712017-03-27 14:01:34 -050040 font-size: .9em;
Michael Davis971cfba2017-03-27 13:14:02 -050041 font-weight: 700;
Michael Davis3a0d4712017-03-27 14:01:34 -050042 }
43
44}
45
Michael Davis3a0d4712017-03-27 14:01:34 -050046.event-log__filters {
47 position: relative;
48 padding-bottom: .5em;
49 padding-top: .5em;
50
51 @media (min-width: 1333px) {
52 float: right;
53 display: inline-block;
54 }
55}
56
57// Event Log Events
58#event-log__events {
59 display: block;
60 margin-top: 1.6em;
61 border-top: 1px solid $lightgrey;
62 position: relative;
63 overflow: hidden;
64
Michael Davis6af13462017-04-04 14:07:02 -050065 .inline__confirm {
66 height: auto;
Michael Davis3a0d4712017-03-27 14:01:34 -050067 margin-left: 0;
Michael Davis6af13462017-04-04 14:07:02 -050068 left: 0;
69 padding: 1em 2em 1em 2em
70 }
Michael Davis3a0d4712017-03-27 14:01:34 -050071
Michael Davis6af13462017-04-04 14:07:02 -050072 .inline__confirm-message {
73 margin-top: 5px;
74 margin-bottom: -10px;
75 }
76 .inline__confirm-buttons .btn-primary {
77 padding: .5em 2em;
78 min-height: 25px;
79 margin-top: .5em;
80 @include mediaQuery(medium) {
81 margin-top: 0;
Michael Davis3a0d4712017-03-27 14:01:34 -050082 }
83 }
84
85 .event-log__col-check {
86 max-width: 60px;
87 text-align: center;
88 }
89 .col-logged-events {
90 span {
91 display: inline-block;
92 font-weight: 700;
93 margin-right: .3em;
94 }
95 }
96
97 //Export log
98 .btn-export, .btn-meta-copy,
99 .btn-delete,
100 .btn-resolve {
101 text-transform: capitalize;
102 color: $black;
103 font-size: .9em;
104 font-weight: 700;
105 position: relative;
106 padding: 0 0 1em 2em;
107 &:hover {
108 text-decoration: underline;
109 }
110 }
111 .btn-export {
112 margin-top: 7px;
113 padding-bottom: 0;
114 }
115 .btn-export:before {
116 content: '\21E5';
117 position: absolute;
118 font-size: 1.7em;
119 vertical-align: middle;
120 transform: rotate(90deg);
121 display: inline-block;
122 left: 2px;
123 top: -5px;
124 }
125
126 .btn-meta-copy,
127 .btn-delete,
128 .btn-resolve {
129 margin-left: 5px;
130 padding: .5em .5em;
131 }
132
133 // Single event log card
134 .event-log__single-event {
Michael Davis6af13462017-04-04 14:07:02 -0500135 position: relative;
Michael Davis3a0d4712017-03-27 14:01:34 -0500136 border-top: 1px solid $lightgrey;
Michael Davis6af13462017-04-04 14:07:02 -0500137 padding: 1em 1em 1em 0em;
Michael Davis3a0d4712017-03-27 14:01:34 -0500138 background: $lightblue;
Michael Davis6af13462017-04-04 14:07:02 -0500139 overflow: hidden;
Michael Davis3a0d4712017-03-27 14:01:34 -0500140 &.active,
141 &.selected {
142 background: $white;
143 }
144 &:hover {
145 background: $white;
146 }
147 }
148
149 .event-log__event-info {
150 &:hover {
151 cursor: pointer;
152 }
153 }
154
155 //Event priorities
156 .event__priority {
157 color: $white;
158 font-size: .8em;
159 text-transform: uppercase;
160 padding: 2px 2em;
161 font-weight: 700;
162 line-height: inherit;
163 min-width: 103px;
164 text-align: center;
165
166 &.high-priority {
167 background: $error-color;
168
169 }
170 &.med-priority {
171 background: $alert__warning;
172
173 }
174 &.low-priority {
175 background: $lightbg__primary;
176 }
177 &.event-resolved {
178 background: $purple;
179 padding: 2px 1em;
180 }
181 }
182
183 //Event Severity
184 .event__severity {
185 font-size: .7em;
186 text-transform: uppercase;
187 color: $darkgrey;
188 font-weight: 700;
189 margin: 0 1em;
190 min-width: 103px;
191 }
192
193 //Event description
194 .event__description {
195 font-weight: 400;
196 }
197
198 //Event ID
199 .event__id {
200 @include fontCourierBold;
201 font-size: .9em;
202 color: $darkgrey;
203 }
204
205 .event__timestamp {
206 @include fontCourierBold;
207 font-size: .9em;
208 color: #999999;
209 margin-left: 1.2em;
210 }
211
212 // Event metadata row
213 .event__metadata-row {
Michael Davis6af13462017-04-04 14:07:02 -0500214 max-height: 0;
Michael Davis3a0d4712017-03-27 14:01:34 -0500215 overflow: hidden;
Michael Davis6af13462017-04-04 14:07:02 -0500216 -webkit-transition: 0.5s linear max-height;
217 transition: 0.5s linear max-height;
Michael Davis3a0d4712017-03-27 14:01:34 -0500218 &.active {
Michael Davis6af13462017-04-04 14:07:02 -0500219 max-height: 1000px; //max-height used to allow flexible height of content and still allow transition
Michael Davis3a0d4712017-03-27 14:01:34 -0500220 @include mediaQuery(small) {
Michael Davis6af13462017-04-04 14:07:02 -0500221 max-height: 1000px;
Michael Davis3a0d4712017-03-27 14:01:34 -0500222 }
223 @include mediaQuery(medium) {
Michael Davis6af13462017-04-04 14:07:02 -0500224 max-height: 1000px;
Michael Davis3a0d4712017-03-27 14:01:34 -0500225 }
226 }
227 }
228
229 //Event metadata
230 .event__metadata {
231 height: 200px;
232 overflow-y: scroll;
233 border: 1px solid $lightgrey;
234 padding: .5em .5em 0;
235 background: $white;
236 display: block;
237 margin-bottom: 1.5em;
238 &::-webkit-scrollbar {
239 -webkit-appearance: none;
240 width: 7px;
241 }
242
243 &::-webkit-scrollbar-thumb {
244 border-radius: 4px;
245 background-color: rgba(0, 0, 0, .5);
246 -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5);
247 }
248 }
249
250 //Event Related Items
251 .event__related {
252 width: 100%;
253 }
254 .event__related-label {
255 font-weight: 700;
256 margin-right: 1.2em;
257 padding-top: .3em;
258 }
259
260 .event__related-item {
261 margin-right: 1em;
262 padding-top: .3em;
Michael Davis6af13462017-04-04 14:07:02 -0500263 display: inline-block;
264 float: left;
265 clear: both;
Michael Davis3a0d4712017-03-27 14:01:34 -0500266 }
267 .event__actions {
268 margin-left: -1em;
269 //margin-bottom: 1em;
270 @include mediaQuery(medium) {
271 float: right;
272 }
273 }
274
275 .event__icon {
276 width: 20px;
277 height: 20px;
278 font-weight: normal;
279 margin-right: .5em;
280 margin-top: -3px;
281 display: inline-block;
282 }
283
284}
285
286//end event-log__events
287
288
289