1 | .adm-slider {
|
2 | --fill-color: var(--adm-color-primary);
|
3 | padding: 5px 14px;
|
4 | list-style: none;
|
5 | -webkit-user-select: none;
|
6 | user-select: none;
|
7 | }
|
8 | .adm-slider-track-container {
|
9 | padding: 8px 0;
|
10 | }
|
11 | .adm-slider-track {
|
12 | position: relative;
|
13 | width: 100%;
|
14 | height: 3px;
|
15 | background-color: var(--adm-color-fill-content);
|
16 | border-radius: 3px;
|
17 | }
|
18 | .adm-slider-fill {
|
19 | position: absolute;
|
20 | z-index: 1;
|
21 | height: 3px;
|
22 | border-radius: 3px;
|
23 | background-color: var(--fill-color);
|
24 | }
|
25 | .adm-slider-ticks {
|
26 | position: absolute;
|
27 | width: 100%;
|
28 | height: 3px;
|
29 | background: transparent;
|
30 | }
|
31 | .adm-slider-tick {
|
32 | position: absolute;
|
33 | top: -2px;
|
34 | width: 7px;
|
35 | height: 7px;
|
36 | margin-left: -3px;
|
37 | background-color: var(--adm-color-fill-content);
|
38 | border-radius: 50%;
|
39 | }
|
40 | .adm-slider-tick-active {
|
41 | background-color: var(--fill-color);
|
42 | }
|
43 | .adm-slider-thumb {
|
44 | width: 28px;
|
45 | height: 28px;
|
46 | margin: 2px;
|
47 | border-radius: 50%;
|
48 | text-align: center;
|
49 | line-height: 28px;
|
50 | background: var(--adm-color-text-light-solid);
|
51 | box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.12);
|
52 | color: var(--fill-color);
|
53 | }
|
54 | .adm-slider-thumb:focus {
|
55 | outline: none;
|
56 | }
|
57 | .adm-slider-thumb-icon {
|
58 | width: 12px;
|
59 | height: 12px;
|
60 | margin: 8px;
|
61 | -webkit-user-select: none;
|
62 | user-select: none;
|
63 | }
|
64 | .adm-slider-thumb-container {
|
65 | cursor: -webkit-grab;
|
66 | cursor: grab;
|
67 | touch-action: none;
|
68 | position: absolute;
|
69 | z-index: 2;
|
70 | width: 32px;
|
71 | height: 32px;
|
72 | border-radius: 50%;
|
73 | top: 50%;
|
74 | transform: translate(-50%, -50%);
|
75 | }
|
76 | .adm-slider-mark {
|
77 | position: relative;
|
78 | width: 100%;
|
79 | overflow: visible;
|
80 | font-size: var(--adm-font-size-3);
|
81 | height: 11px;
|
82 | margin-top: 10px;
|
83 | }
|
84 | .adm-slider-mark-text {
|
85 | position: absolute;
|
86 | display: inline-block;
|
87 | line-height: 1;
|
88 | color: var(--adm-color-text);
|
89 | text-align: center;
|
90 | word-break: keep-all;
|
91 | -webkit-user-select: none;
|
92 | user-select: none;
|
93 | transform: translateX(-50%);
|
94 | }
|
95 | .adm-slider-disabled .adm-slider-mark,
|
96 | .adm-slider-disabled .adm-slider-thumb-icon {
|
97 | opacity: 0.4;
|
98 | }
|
99 | .adm-slider-disabled .adm-slider-tick-active::after,
|
100 | .adm-slider-disabled .adm-slider-fill::after {
|
101 | content: '';
|
102 | position: absolute;
|
103 | left: 0;
|
104 | top: 0;
|
105 | right: 0;
|
106 | bottom: 0;
|
107 | border-radius: inherit;
|
108 | background-color: rgba(255, 255, 255, 0.6);
|
109 | }
|
110 | .adm-slider-disabled .adm-slider-thumb {
|
111 | cursor: not-allowed;
|
112 | box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.06);
|
113 | }
|
114 | .adm-slider-disabled .adm-slider-mark-text,
|
115 | .adm-slider-disabled .adm-slider-tick {
|
116 | cursor: not-allowed;
|
117 | box-shadow: none;
|
118 | }
|