|
1 | 1 | @mixin toiLineHovEffects() {
|
2 |
| - &:before, |
3 |
| - &:after { |
4 |
| - background-color: $timeControllerToiLineColorHov; |
5 |
| - } |
| 2 | + &:before, |
| 3 | + &:after { |
| 4 | + background-color: $timeControllerToiLineColorHov; |
| 5 | + } |
6 | 6 | }
|
7 | 7 |
|
8 | 8 | .l-time-conductor {
|
9 |
| - $minW: 500px; |
10 |
| - $knobHOffset: 0px; |
11 |
| - $rangeValPad: $interiorMargin; |
12 |
| - $rangeValOffset: $sliderKnobW + $interiorMargin; |
13 |
| - $r1H: nth($ueTimeControlH,1); |
14 |
| - $r2H: nth($ueTimeControlH,2); |
15 |
| - $r3H: nth($ueTimeControlH,3); |
| 9 | + $minW: 500px; |
| 10 | + $knobHOffset: 0px; |
| 11 | + $rangeValPad: $interiorMargin; |
| 12 | + $rangeValOffset: $sliderKnobW + $interiorMargin; |
| 13 | + $r1H: nth($ueTimeControlH, 1); |
| 14 | + $r2H: nth($ueTimeControlH, 2); |
| 15 | + $r3H: nth($ueTimeControlH, 3); |
16 | 16 |
|
17 | 17 | // Glyphs Todo: replace with refactored CSS approach when that is merged into master
|
18 | 18 | $glyphIconFixed: '\e604';
|
|
24 | 24 | min-width: $minW;
|
25 | 25 | position: relative;
|
26 | 26 |
|
27 |
| - >.l-row-elem { |
| 27 | + > .l-row-elem { |
28 | 28 | // First order row elements
|
29 |
| - box-sizing: border-box; |
| 29 | + box-sizing: border-box; |
30 | 30 | width: 100%;
|
31 | 31 | position: relative;
|
32 |
| - &:not(:first-child) { |
33 |
| - margin-top: $interiorMargin; |
| 32 | + } |
| 33 | + |
| 34 | + .mode-selector .s-menu-btn, |
| 35 | + .time-delta { |
| 36 | + &:before { |
| 37 | + @extend .ui-symbol; |
| 38 | + margin-right: $interiorMarginSm; |
34 | 39 | }
|
35 |
| - } |
| 40 | + } |
| 41 | + |
| 42 | + .time-delta { |
| 43 | + &:before { |
| 44 | + color: $colorTimeCondKeyBg; |
| 45 | + } |
| 46 | + } |
36 | 47 |
|
37 | 48 | .l-time-conductor-inputs-holder,
|
38 | 49 | .l-time-conductor-ticks {
|
39 | 50 | font-size: 0.8rem;
|
40 | 51 | }
|
41 | 52 |
|
42 |
| - .l-time-conductor-inputs-holder { |
43 |
| - $inputW: 180px; |
44 |
| - $ticksBlockerFadeW: 25px; |
| 53 | + .l-time-conductor-inputs-holder { |
| 54 | + $trInputW: 180px; |
| 55 | + $hmInputW: 80px; |
| 56 | + $ticksBlockerFadeW: 50px; |
45 | 57 | $iconCalendarW: 16px;
|
46 | 58 | $wBgColor: $colorBodyBg;
|
47 |
| - //$wBgColor: green; |
48 |
| - $wBgW: $inputW + $interiorMargin + $iconCalendarW; |
49 | 59 |
|
50 | 60 | height: $r1H;
|
51 | 61 | z-index: 1;
|
52 |
| - .l-time-range-input-w { |
| 62 | + .l-time-range-w { |
53 | 63 | // Wraps a datetime text input field
|
| 64 | + height: 100%; |
54 | 65 | position: absolute;
|
55 |
| - width: $wBgW + $ticksBlockerFadeW; |
56 |
| - &.start-date { |
57 |
| - @include background-image(linear-gradient(90deg, $wBgColor $wBgW, transparent 100%)); |
| 66 | + &.start-w { |
| 67 | + @include background-image(linear-gradient(270deg, transparent, $wBgColor $ticksBlockerFadeW)); |
| 68 | + padding-right: $ticksBlockerFadeW; |
58 | 69 | }
|
59 |
| - &.end-date { |
60 |
| - @include background-image(linear-gradient(270deg, $wBgColor $wBgW, transparent 100%)); |
| 70 | + &.end-w { |
| 71 | + @include background-image(linear-gradient(90deg, transparent, $wBgColor $ticksBlockerFadeW)); |
| 72 | + padding-left: $ticksBlockerFadeW; |
61 | 73 | right: 0;
|
62 | 74 | text-align: right;
|
63 | 75 | }
|
64 | 76 | input[type="text"] {
|
65 |
| - width: $inputW; |
| 77 | + @include trans-prop-nice(padding, 250ms); |
| 78 | + } |
| 79 | + .time-range-input input { |
| 80 | + width: $trInputW; |
| 81 | + } |
| 82 | + .hrs-min-input input { |
| 83 | + width: $hmInputW; |
66 | 84 | }
|
67 | 85 | .icon-calendar {
|
68 | 86 | margin-top: 4px;
|
69 | 87 | }
|
70 | 88 | }
|
71 |
| - } |
| 89 | + } |
72 | 90 |
|
73 |
| - .l-time-conductor-ticks { |
| 91 | + .l-time-conductor-ticks { |
74 | 92 | $c: $colorTick;
|
75 |
| - height: $r1H; |
| 93 | + height: $r1H; |
76 | 94 | mct-conductor-axis {
|
77 |
| - @include transform(translateY(3px)); |
| 95 | + //@include transform(translateY(1px)); |
78 | 96 | display: block;
|
79 | 97 | position: relative;
|
80 | 98 | width: 100%;
|
|
85 | 103 | width: 100%;
|
86 | 104 | svg {
|
87 | 105 | text-rendering: geometricPrecision;
|
88 |
| - width: 100%; height: 100%; |
| 106 | + width: 100%; |
| 107 | + height: 100%; |
89 | 108 | > g {
|
90 | 109 | font-size: 0.9em;
|
91 | 110 | }
|
92 |
| - path {display: none;} |
93 |
| - line {stroke: $c;} |
94 |
| - text { fill: $c; } |
| 111 | + path { |
| 112 | + display: none; |
| 113 | + } |
| 114 | + line { |
| 115 | + stroke: $c; |
| 116 | + } |
| 117 | + text { |
| 118 | + fill: $c; |
| 119 | + } |
95 | 120 | }
|
96 | 121 | }
|
97 |
| - } |
| 122 | + } |
98 | 123 | .l-data-visualization {
|
99 | 124 | background: rgba($colorTick, 0.3);
|
100 | 125 | height: $r2H;
|
101 | 126 | }
|
102 | 127 |
|
103 |
| - .mode-selector .s-menu-btn { |
104 |
| - &:before { |
105 |
| - @extend .ui-symbol; |
106 |
| - margin-right: $interiorMarginSm; |
107 |
| - content: $glyphIconFixed; |
108 |
| - } |
| 128 | + .l-time-conductor-controls { |
| 129 | + margin-top: $interiorMargin; |
109 | 130 | }
|
110 | 131 |
|
111 | 132 | // Realtime, latest modes
|
112 | 133 | &.realtime-mode,
|
113 | 134 | &.latest-mode {
|
114 | 135 | .l-time-conductor-inputs-holder {
|
115 | 136 | .l-time-range-input-w {
|
116 |
| - input:not(:hover) { |
| 137 | + input[type="text"]:not(.error) { |
117 | 138 | background: transparent;
|
118 | 139 | box-shadow: none;
|
119 | 140 | border-radius: 0;
|
| 141 | + padding-left: 0; |
| 142 | + padding-right: 0; |
| 143 | + &:hover { |
| 144 | + @include nice-input(); |
| 145 | + padding: $inputTextP; |
| 146 | + } |
| 147 | + } |
| 148 | + &.start-date { |
| 149 | + pointer-events: none; |
120 | 150 | }
|
121 | 151 | .icon-calendar {
|
122 | 152 | display: none;
|
|
128 | 158 | }
|
129 | 159 |
|
130 | 160 | .l-data-visualization {
|
131 |
| - background: rgba($colorTimeCondKey, 0.5) !important |
| 161 | + background: rgba($colorTimeCondKeyBg, 0.5) !important |
132 | 162 | }
|
133 | 163 | .mode-selector .s-menu-btn {
|
134 |
| - @include btnSubtle($colorTimeCondKey, pullForward($colorTimeCondKey, $ltGamma)); |
| 164 | + @include btnSubtle($colorTimeCondKeyBg, pullForward($colorTimeCondKeyBg, $ltGamma), $colorTimeCondKeyFg); |
| 165 | + } |
| 166 | + } |
| 167 | + &.fixed-mode { |
| 168 | + $i: $glyphIconFixed; |
| 169 | + .mode-selector .s-menu-btn:before { |
| 170 | + content: $i; |
| 171 | + } |
| 172 | + } |
| 173 | + &.realtime-mode { |
| 174 | + $i: $glyphIconRealtime; |
| 175 | + .time-delta:before { |
| 176 | + content: $i; |
| 177 | + } |
| 178 | + .mode-selector .s-menu-btn:before { |
| 179 | + content: $i; |
| 180 | + } |
| 181 | + } |
| 182 | + &.latest-mode { |
| 183 | + $i: $glyphIconLatest; |
| 184 | + .time-delta:before { |
| 185 | + content: $i; |
| 186 | + } |
| 187 | + .mode-selector .s-menu-btn:before { |
| 188 | + content: $i; |
135 | 189 | }
|
136 | 190 | }
|
137 |
| - |
138 |
| - &.realtime-mode .mode-selector .s-menu-btn:before { content: $glyphIconRealtime; } |
139 |
| - &.latest-mode .mode-selector .s-menu-btn:before { content: $glyphIconLatest; } |
140 | 191 | }
|
141 | 192 |
|
142 | 193 | .s-time-range-val {
|
143 |
| - border-radius: $controlCr; |
144 |
| - background-color: $colorInputBg; |
145 |
| - padding: 1px 1px 0 $interiorMargin; |
| 194 | + border-radius: $controlCr; |
| 195 | + background-color: $colorInputBg; |
| 196 | + padding: 1px 1px 0 $interiorMargin; |
146 | 197 | }
|
147 | 198 |
|
148 | 199 | /******************************************************************** MOBILE */
|
|
178 | 229 | margin-right: 0;
|
179 | 230 | }
|
180 | 231 | .l-time-range-inputs-elem {
|
181 |
| - &.lbl { display: none; } |
| 232 | + &.lbl { |
| 233 | + display: none; |
| 234 | + } |
182 | 235 | }
|
183 | 236 | }
|
184 | 237 | }
|
|
0 commit comments