|
14 | 14 | $r2H: nth($ueTimeControlH,2);
|
15 | 15 | $r3H: nth($ueTimeControlH,3);
|
16 | 16 |
|
| 17 | + // Glyphs Todo: replace with refactored CSS approach when that is merged into master |
| 18 | + $glyphIconFixed: '\e604'; |
| 19 | + $glyphIconRealtime: '\43'; |
| 20 | + $glyphIconLatest: '\44'; |
| 21 | + |
17 | 22 | border-top: 1px solid $colorInteriorBorder;
|
18 | 23 | padding-top: $interiorMargin;
|
19 | 24 | min-width: $minW;
|
20 |
| - font-size: 0.8rem; |
21 | 25 | position: relative;
|
22 | 26 |
|
23 | 27 | >.l-row-elem {
|
|
30 | 34 | }
|
31 | 35 | }
|
32 | 36 |
|
| 37 | + .l-time-conductor-inputs-holder, |
| 38 | + .l-time-conductor-ticks { |
| 39 | + font-size: 0.8rem; |
| 40 | + } |
| 41 | + |
33 | 42 | .l-time-conductor-inputs-holder {
|
34 |
| - $inputW: 200px; |
| 43 | + $inputW: 180px; |
35 | 44 | $ticksBlockerFadeW: 25px;
|
| 45 | + $iconCalendarW: 16px; |
| 46 | + $wBgColor: $colorBodyBg; |
| 47 | + //$wBgColor: green; |
| 48 | + $wBgW: $inputW + $interiorMargin + $iconCalendarW; |
| 49 | + |
36 | 50 | height: $r1H;
|
37 | 51 | z-index: 1;
|
38 | 52 | .l-time-range-input-w {
|
39 | 53 | // Wraps a datetime text input field
|
40 | 54 | position: absolute;
|
41 |
| - width: $inputW + $ticksBlockerFadeW; |
| 55 | + width: $wBgW + $ticksBlockerFadeW; |
42 | 56 | &.start-date {
|
43 |
| - @include background-image(linear-gradient(90deg, $colorBodyBg $inputW + $interiorMargin, transparent 100%)); |
| 57 | + @include background-image(linear-gradient(90deg, $wBgColor $wBgW, transparent 100%)); |
44 | 58 | }
|
45 | 59 | &.end-date {
|
46 |
| - @include background-image(linear-gradient(270deg, $colorBodyBg $inputW + $interiorMargin, transparent 100%)); |
| 60 | + @include background-image(linear-gradient(270deg, $wBgColor $wBgW, transparent 100%)); |
47 | 61 | right: 0;
|
48 | 62 | text-align: right;
|
49 | 63 | }
|
50 | 64 | input[type="text"] {
|
51 | 65 | width: $inputW;
|
52 | 66 | }
|
53 | 67 | .icon-calendar {
|
54 |
| - position: absolute; |
55 |
| - margin-left: -16px; |
56 | 68 | margin-top: 4px;
|
57 | 69 | }
|
58 | 70 | }
|
|
61 | 73 | .l-time-conductor-ticks {
|
62 | 74 | $c: $colorTick;
|
63 | 75 | height: $r1H;
|
64 |
| - margin-top: 0 !important; |
65 | 76 | mct-conductor-axis {
|
| 77 | + @include transform(translateY(3px)); |
66 | 78 | display: block;
|
67 | 79 | position: relative;
|
68 | 80 | width: 100%;
|
|
72 | 84 | position: relative;
|
73 | 85 | width: 100%;
|
74 | 86 | svg {
|
75 |
| - stroke: $c; |
| 87 | + text-rendering: geometricPrecision; |
| 88 | + color: transparent; |
| 89 | + fill: $c !important; // Todo: figure out why this isn't working |
76 | 90 | width: 100%; height: 100%;
|
77 | 91 | > g {
|
78 |
| - font-size: 0.8em; |
| 92 | + font-size: 0.9em; |
79 | 93 | }
|
80 | 94 | path {display: none;}
|
81 | 95 | line {stroke: $c;}
|
|
86 | 100 | background: rgba($colorTick, 0.3);
|
87 | 101 | height: $r2H;
|
88 | 102 | }
|
89 |
| - .l-time-domain-selector { |
90 |
| - position: absolute; |
91 |
| - right: 0px; |
92 |
| - top: $interiorMargin; |
93 |
| - } |
| 103 | + |
| 104 | + .mode-selector .s-menu-btn { |
| 105 | + &:before { |
| 106 | + @extend .ui-symbol; |
| 107 | + margin-right: $interiorMarginSm; |
| 108 | + content: $glyphIconFixed; |
| 109 | + } |
| 110 | + } |
| 111 | + |
| 112 | + // Realtime, latest modes |
| 113 | + &.realtime-mode, |
| 114 | + &.latest-mode { |
| 115 | + .l-time-conductor-inputs-holder { |
| 116 | + .l-time-range-input-w { |
| 117 | + input:not(:hover) { |
| 118 | + background: transparent; |
| 119 | + box-shadow: none; |
| 120 | + border-radius: 0; |
| 121 | + } |
| 122 | + .icon-calendar { |
| 123 | + display: none; |
| 124 | + } |
| 125 | + &.end-date { |
| 126 | + display: none; |
| 127 | + } |
| 128 | + } |
| 129 | + } |
| 130 | + |
| 131 | + .l-data-visualization { |
| 132 | + background: rgba($colorTimeCondKey, 0.5) !important |
| 133 | + } |
| 134 | + .mode-selector .s-menu-btn { |
| 135 | + @include btnSubtle($colorTimeCondKey, pullForward($colorTimeCondKey, $ltGamma)); |
| 136 | + } |
| 137 | + } |
| 138 | + |
| 139 | + &.realtime-mode .mode-selector .s-menu-btn:before { content: $glyphIconRealtime; } |
| 140 | + &.latest-mode .mode-selector .s-menu-btn:before { content: $glyphIconLatest; } |
94 | 141 | }
|
95 | 142 |
|
96 | 143 | .s-time-range-val {
|
|
0 commit comments