|
20 | 20 | * at runtime from the About dialog for additional information.
|
21 | 21 | *****************************************************************************/
|
22 | 22 | @import "bourbon";
|
23 |
| - |
24 | 23 | @import "../../../../commonUI/general/res/sass/constants";
|
25 | 24 | @import "../../../../commonUI/general/res/sass/mixins";
|
26 | 25 | @import "../../../../commonUI/general/res/sass/mobile/constants";
|
27 | 26 | @import "../../../../commonUI/general/res/sass/mobile/mixins";
|
28 | 27 | @import "../../../../commonUI/themes/espresso/res/sass/constants";
|
29 | 28 | @import "../../../../commonUI/themes/espresso/res/sass/mixins";
|
30 | 29 | @import "../../../../commonUI/general/res/sass/icons";
|
31 |
| - |
32 |
| -$ueTimeConductorH: (25px, 6px, 20px); |
| 30 | +@import "constants"; |
33 | 31 |
|
34 | 32 | @mixin toiLineHovEffects() {
|
35 | 33 | &:before,
|
@@ -158,38 +156,48 @@ $ueTimeConductorH: (25px, 6px, 20px);
|
158 | 156 | }
|
159 | 157 |
|
160 | 158 | .l-time-conductor-inputs-holder {
|
161 |
| - $trInputW: 180px; |
162 |
| - $hmInputW: 60px; |
163 | 159 | $ticksBlockerFadeW: 50px;
|
164 | 160 | $iconCalendarW: 16px;
|
165 | 161 | $wBgColor: $colorBodyBg;
|
166 | 162 |
|
167 | 163 | height: $r1H;
|
168 | 164 | position: absolute;
|
169 |
| - top: 0; right: 0; bottom: 0; left: 0; |
| 165 | + top: 0; |
| 166 | + right: 0; |
| 167 | + bottom: 0; |
| 168 | + left: 0; |
170 | 169 | z-index: 1;
|
171 | 170 | .l-time-range-w {
|
172 | 171 | // Wraps a datetime text input field
|
173 | 172 | height: 100%;
|
174 | 173 | position: absolute;
|
| 174 | + .title { |
| 175 | + display: inline-block; |
| 176 | + margin-right: $interiorMarginSm; |
| 177 | + } |
175 | 178 | &.start-w {
|
176 | 179 | @include background-image(linear-gradient(270deg, transparent, $wBgColor $ticksBlockerFadeW));
|
177 | 180 | padding-right: $ticksBlockerFadeW;
|
| 181 | + .title:before { |
| 182 | + content: 'Start'; |
| 183 | + } |
178 | 184 | }
|
179 | 185 | &.end-w {
|
180 | 186 | @include background-image(linear-gradient(90deg, transparent, $wBgColor $ticksBlockerFadeW));
|
181 | 187 | padding-left: $ticksBlockerFadeW;
|
182 | 188 | right: 0;
|
183 |
| - text-align: right; |
| 189 | + .title:before { |
| 190 | + content: 'End'; |
| 191 | + } |
184 | 192 | }
|
185 | 193 | input[type="text"] {
|
186 | 194 | @include trans-prop-nice(padding, 250ms);
|
187 | 195 | }
|
188 |
| - .time-range-input input { |
189 |
| - width: $trInputW; |
| 196 | + .time-range-input input[type="text"] { |
| 197 | + width: $timeCondInputTimeSysDefW; |
190 | 198 | }
|
191 |
| - .hrs-min-input input { |
192 |
| - width: $hmInputW; |
| 199 | + .hrs-min-input input[type="text"] { |
| 200 | + width: $timeCondInputDeltaDefW; |
193 | 201 | }
|
194 | 202 | .icon-calendar {
|
195 | 203 | margin-top: 4px;
|
@@ -250,18 +258,13 @@ $ueTimeConductorH: (25px, 6px, 20px);
|
250 | 258 | color: $colorTick;
|
251 | 259 | }
|
252 | 260 | }
|
253 |
| - |
254 | 261 | }
|
255 |
| - // Fixed |
256 |
| - &.fixed-mode { |
257 |
| - .time-conductor-icon div[class*="hand"] { |
258 |
| - &.hand-little { |
259 |
| - @include transform(rotate(120deg)); |
260 |
| - } |
261 |
| - } |
| 262 | + |
| 263 | + .l-data-visualization { |
| 264 | + background: $colorTimeCondDataVisRtBg !important |
262 | 265 | }
|
263 | 266 |
|
264 |
| - // Realtime, latest modes |
| 267 | + // Real-time, latest modes |
265 | 268 | &.realtime-mode,
|
266 | 269 | &.latest-mode {
|
267 | 270 | .time-conductor-icon {
|
@@ -297,69 +300,92 @@ $ueTimeConductorH: (25px, 6px, 20px);
|
297 | 300 | &.end-date {
|
298 | 301 | pointer-events: none;
|
299 | 302 | input[type="text"] {
|
300 |
| - color: $colorTimeCondKeyBg; |
| 303 | + color: pullForward($colorTimeCondKeyBg, 5%); |
301 | 304 | margin-right: $interiorMargin;
|
302 |
| - text-align: right; |
| 305 | + tab-index: -1; |
303 | 306 | }
|
304 | 307 | }
|
305 | 308 | }
|
306 | 309 | }
|
307 | 310 |
|
308 |
| - &.realtime-mode .time-conductor-icon div[class*="hand"] { @include animation-name(clock-hands); } |
309 |
| - &.latest-mode .time-conductor-icon div[class*="hand"] { |
310 |
| - @include animation-name(clock-hands-sticky); |
311 |
| - &.hand-big { @include animation-duration(5s); } |
312 |
| - &.hand-little { @include animation-duration(60s); } |
313 |
| - } |
314 |
| - |
315 |
| - .l-data-visualization { |
316 |
| - background: $colorTimeCondDataVisRtBg !important |
317 |
| - } |
318 | 311 | .mode-selector .s-menu-btn {
|
319 | 312 | @include btnSubtle($colorTimeCondKeyBg, pullForward($colorTimeCondKeyBg, $ltGamma), $colorTimeCondKeyFg);
|
320 | 313 | }
|
321 | 314 | }
|
| 315 | + |
| 316 | + // Fixed mode |
322 | 317 | &.fixed-mode {
|
323 | 318 | $i: $glyphIconFixed;
|
| 319 | + .time-conductor-icon div[class*="hand"] { |
| 320 | + &.hand-little { |
| 321 | + @include transform(rotate(120deg)); |
| 322 | + } |
| 323 | + } |
324 | 324 | .mode-selector .s-menu-btn:before {
|
325 | 325 | content: $i;
|
326 | 326 | }
|
327 | 327 | }
|
| 328 | + |
| 329 | + // Realtime mode |
328 | 330 | &.realtime-mode {
|
329 | 331 | $i: $glyphIconRealtime;
|
| 332 | + .time-conductor-icon div[class*="hand"] { |
| 333 | + @include animation-name(clock-hands); |
| 334 | + } |
330 | 335 | .time-delta:before {
|
331 | 336 | content: $i;
|
332 | 337 | }
|
| 338 | + .l-time-conductor-inputs-holder .l-time-range-w.end-w .title:before { |
| 339 | + content: 'Now'; |
| 340 | + } |
333 | 341 | .mode-selector .s-menu-btn:before {
|
334 | 342 | content: $i;
|
335 | 343 | }
|
336 | 344 | }
|
| 345 | + |
| 346 | + // LAD mode |
337 | 347 | &.latest-mode {
|
338 | 348 | $i: $glyphIconLatest;
|
| 349 | + .time-conductor-icon div[class*="hand"] { |
| 350 | + @include animation-name(clock-hands-sticky); |
| 351 | + &.hand-big { |
| 352 | + @include animation-duration(5s); |
| 353 | + } |
| 354 | + &.hand-little { |
| 355 | + @include animation-duration(60s); |
| 356 | + } |
| 357 | + } |
339 | 358 | .time-delta:before {
|
340 | 359 | content: $i;
|
341 | 360 | }
|
| 361 | + .l-time-conductor-inputs-holder .l-time-range-w.end-w .title:before { |
| 362 | + content: 'LAD'; |
| 363 | + } |
342 | 364 | .mode-selector .s-menu-btn:before {
|
343 | 365 | content: $i;
|
344 | 366 | }
|
345 | 367 | }
|
346 | 368 | }
|
347 | 369 |
|
348 |
| -.s-time-range-val { |
349 |
| - border-radius: $controlCr; |
350 |
| - background-color: $colorInputBg; |
351 |
| - padding: 1px 1px 0 $interiorMargin; |
352 |
| -} |
353 |
| - |
354 | 370 | /******************************************************************** MOBILE */
|
355 | 371 |
|
356 |
| -//@include phoneandtablet {} |
| 372 | +@include phoneandtablet { |
| 373 | + .l-time-conductor-holder { min-width: 0 !important; } |
| 374 | + .super-menu.mini { |
| 375 | + width: 200px; |
| 376 | + height: 100px; |
| 377 | + .pane.menu-item-description { |
| 378 | + display: none; |
| 379 | + } |
| 380 | + } |
| 381 | +} |
357 | 382 |
|
358 | 383 | @include phone {
|
359 | 384 | .l-time-conductor {
|
360 | 385 | min-width: 0;
|
361 |
| - .l-time-conductor-inputs-and-ticks mct-conductor-axis { display: none; } |
362 |
| - //TODO: mode menu smaller, hide right side |
| 386 | + .l-time-conductor-inputs-and-ticks mct-conductor-axis { |
| 387 | + display: none; |
| 388 | + } |
363 | 389 | }
|
364 | 390 | }
|
365 | 391 |
|
@@ -387,16 +413,21 @@ $ueTimeConductorH: (25px, 6px, 20px);
|
387 | 413 | &:not(:first-child) {
|
388 | 414 | margin-top: $interiorMargin;
|
389 | 415 | }
|
| 416 | + .title { |
| 417 | + width: 30px; |
| 418 | + } |
390 | 419 | }
|
391 | 420 | }
|
392 | 421 | }
|
393 | 422 |
|
394 |
| - // Realtime, latest modes |
| 423 | + // Real-time, latest modes |
395 | 424 | &.realtime-mode,
|
396 | 425 | &.latest-mode {
|
397 |
| - // TODO: hide all of start-w |
398 | 426 | .l-time-conductor-inputs-and-ticks {
|
399 | 427 | .l-time-range-w {
|
| 428 | + .title { |
| 429 | + width: 30px; |
| 430 | + } |
400 | 431 | &.start-w {
|
401 | 432 | display: none;
|
402 | 433 | }
|
|
0 commit comments