PluginProbe
WP Click to Chat – Email, Live Chat, Call & Book Now Buttons / trunk
WP Click to Chat – Email, Live Chat, Call & Book Now Buttons vtrunk
trunk 1.2.2 2.0 2.1 2.2 2.3 2.3.1 2.3.2 2.3.3 2.3.4 2.3.6
support-chat / assets / admin / css / ui-range.css

ui-range.css in WP Click to Chat – Email, Live Chat, Call & Book Now Buttons trunk, at assets/admin/css/ui-range.css

176 lines 5.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 .range {
2 --primaryColor: #2271b1;
3 --value-active-color: white;
4 --value-background: white;
5 --value-font: 700 12px/1 Arial;
6 --progress-color: #8fcae5;
7 --progress-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1) inset;
8 --fill-color: var(--primaryColor);
9 --thumb-size: 16px;
10 --track-height: calc(var(--thumb-size) / 2);
11 --thumb-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
12 --ticks-thickness: 1px;
13 --ticks-height: 5px;
14 --ticks-color: silver;
15 --step: 1;
16 --ticks-count: (var(--max) - var(--min)) / var(--step);
17 --maxTicksAllowed: 30;
18 --too-many-ticks: Min(1, Max(var(--ticks-count) - var(--maxTicksAllowed), 0));
19 --x-step: Max(var(--step), var(--too-many-ticks) * (var(--max) - var(--min)));
20 --tickInterval: 100/ ((var(--max) - var(--min)) / var(--step)) * var(--tickEvery, 1);
21 --tickIntervalPerc: calc((100% - var(--thumb-size)) / ((var(--max) - var(--min)) / var(--x-step)) * var(--tickEvery, 1));
22 --completed: calc((var(--value) - var(--min)) / (var(--max) - var(--min)) * 100);
23 --LTR: 1;
24 display: inline-block;
25 width: 25em;
26 margin-top: 10px;
27 height: Max(var(--track-height), var(--thumb-size));
28 background: linear-gradient(to right, var(--ticks-color) var(--ticks-thickness), transparent 1px) repeat-x;
29 background-size: var(--tickIntervalPerc) var(--ticks-height);
30 background-position-x: calc(var(--thumb-size) / 2);
31 background-position-y: var(--flip-y, bottom);
32 position: relative;
33 z-index: 1;
34 padding-bottom: var(--flip-y, var(--ticks-height));
35 padding-top: calc(var(--flip-y) * var(--ticks-height));
36 margin-bottom: 20px;
37 }
38 [dir='rtl'] .range {
39 --LTR: -1;
40 }
41 .range[data-ticks-position='top'] {
42 --flip-y: 1;
43 }
44 .range::before,
45 .range::after {
46 --offset: calc(var(--thumb-size) / 2);
47 content: counter(x);
48 display: var(--show-min-max, block);
49 font: 12px Arial;
50 position: absolute;
51 bottom: var(--flip-y, -2.5ch);
52 top: calc(-2.5ch * var(--flip-y));
53 opacity: var(--min-max-opacity, 0.5);
54 pointer-events: none;
55 }
56 .range::before {
57 counter-reset: x var(--min);
58 left: var(--offset);
59 transform: translateX(calc(-50% * var(--LTR)));
60 }
61 [dir='rtl'] .range::before {
62 left: auto;
63 right: var(--offset);
64 }
65 .range::after {
66 counter-reset: x var(--max);
67 right: var(--offset);
68 transform: translateX(calc(50% * var(--LTR)));
69 }
70 [dir='rtl'] .range::after {
71 right: auto;
72 left: var(--offset);
73 }
74 .range__progress {
75 position: absolute;
76 left: 0;
77 top: calc(50% - var(--ticks-height) / 2);
78 transform: var(--flip-y, translateY(-50%) translateZ(0));
79 width: 100%;
80 height: calc(var(--track-height));
81 pointer-events: none;
82 z-index: -1;
83 /* box-shadow: var(--progress-shadow); */
84 border-radius: 20px;
85 background: var(--fill-color, white);
86 }
87 .range__progress::after {
88 content: '';
89 display: block;
90 margin-left: auto;
91 margin-right: -1px;
92 width: calc((100% - var(--completed) * 1%) + (var(--completed) / 100) * var(--thumb-size) / 2);
93 height: 100%;
94 background: var(--progress-color, #eee);
95 box-shadow: inherit;
96 border-radius: 0 20px 20px 0;
97 }
98 [dir='rtl'] .range__progress::after {
99 margin-right: auto;
100 margin-left: -1px;
101 border-radius: 20px 0 0 20px;
102 }
103 .range > input {
104 -webkit-appearance: none;
105 width: 100%;
106 height: var(--thumb-size);
107 margin: 0;
108 cursor: -webkit-grab;
109 cursor: grab;
110 outline: none;
111 background: none;
112 }
113 .range > input::-webkit-slider-thumb {
114 appearance: none;
115 height: var(--thumb-size);
116 width: var(--thumb-size);
117 border-radius: 50%;
118 background: var(--thumb-color, white);
119 border: 1px solid silver;
120 box-shadow: var(--inner-shadow, 0 0), var(--thumb-shadow);
121 }
122 .range > input::-moz-slider-thumb {
123 appearance: none;
124 height: var(--thumb-size);
125 width: var(--thumb-size);
126 border-radius: 50%;
127 background: var(--thumb-color, white);
128 border: 1px solid silver;
129 box-shadow: var(--inner-shadow, 0 0), var(--thumb-shadow);
130 }
131 .range > input::-ms-thumb {
132 appearance: none;
133 height: var(--thumb-size);
134 width: var(--thumb-size);
135 border-radius: 50%;
136 background: var(--thumb-color, white);
137 border: 1px solid silver;
138 box-shadow: var(--inner-shadow, 0 0), var(--thumb-shadow);
139 }
140 .range > input:active {
141 cursor: grabbing;
142 --thumb-color: var(--fill-color);
143 --inner-shadow: 0 0 0 calc(var(--thumb-size) / 4) inset white;
144 }
145 .range > input:active + output {
146 transition: 0s;
147 }
148 .range > input:hover + output {
149 --value-background: var(--primaryColor);
150 color: var(--value-active-color);
151 transform: translate(var(--x-offset), 0);
152 box-shadow: 0 0 0 3px var(--value-background);
153 }
154 .range > output {
155 --x-offset: calc(var(--completed) * -1% * var(--LTR));
156 --pos: calc(((var(--value) - var(--min)) / (var(--max) - var(--min))) * 100%);
157 pointer-events: none;
158 position: absolute;
159 z-index: 5;
160 background: var(--value-background);
161 border-radius: 10px;
162 padding: 0 4px;
163 top: -3ch;
164 left: var(--pos);
165 transform: translate(var(--x-offset), 6px);
166 transition: all 0.12s ease-out, left 0s, top 0s;
167 }
168 [dir='rtl'] .range > output {
169 left: auto;
170 right: var(--pos);
171 }
172 .range > output::after {
173 content: var(--text-value);
174 font: var(--value-font);
175 }
176