Skip to content

Commit 7cf69b9

Browse files
Fix/range styles (#685)
* #RI-2923- update range filter
1 parent c146be3 commit 7cf69b9

File tree

1 file changed

+39
-29
lines changed

1 file changed

+39
-29
lines changed

redisinsight/ui/src/components/range-filter/styles.module.scss

Lines changed: 39 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -42,32 +42,63 @@
4242
background-color: var(--euiColorPrimary);
4343
z-index: 2;
4444
transform: translateY(2px);
45+
46+
&:before {
47+
content: '';
48+
width: 1px;
49+
height: 6px;
50+
position: absolute;
51+
top: -5px;
52+
left: -1px;
53+
background-color: var(--euiColorPrimary);
54+
}
55+
56+
&:after {
57+
content: '';
58+
width: 1px;
59+
height: 6px;
60+
position: absolute;
61+
right: -1px;
62+
background-color: var(--euiColorPrimary);
63+
}
4564
}
4665

4766
.rangeWrapper:hover .sliderRange {
4867
height: 5px;
4968
transform: translateY(0px);
69+
70+
&:before {
71+
72+
width: 2px;
73+
height: 12px;
74+
top: -7px;
75+
}
76+
77+
&:after {
78+
width: 2px;
79+
height: 12px;
80+
}
5081
}
5182

5283
.sliderLeftValue,
5384
.sliderRightValue {
5485
width: max-content;
5586
color: var(--euiColorMediumShade);
5687
font: normal normal normal 12px/18px Graphik;
57-
margin-top: 20px;
88+
margin-top: 8px;
5889
}
5990

6091
.sliderLeftValue {
6192
left: 0;
62-
margin-top: -30px;
93+
margin-top: -25px;
6394
}
6495

6596
.rangeWrapper:hover .sliderLeftValue {
66-
margin-top: -28px;
97+
margin-top: -23px;
6798
}
6899

69100
.rangeWrapper:hover .sliderRightValue {
70-
margin-top: 22px;
101+
margin-top: 10px;
71102
}
72103

73104
.sliderLeftValue.leftPosition {
@@ -117,20 +148,14 @@
117148

118149
.thumb::-moz-range-thumb {
119150
width: 24px;
120-
height: 12px;
151+
height: 24px;
121152
border: none;
122153
border-radius: 0;
123154
cursor: ew-resize;
124155
margin-top: 4px;
125156
pointer-events: all;
126157
position: relative;
127158
background: transparent;
128-
border-bottom: 1px solid var(--euiColorPrimary);
129-
border-left: 1px solid var(--euiColorPrimary);
130-
}
131-
132-
.rangeWrapper:hover .thumb::-moz-range-thumb {
133-
border-bottom: 5px solid var(--euiColorPrimary);
134159
}
135160

136161
.thumbZindex3::-moz-range-thumb {
@@ -143,35 +168,20 @@
143168

144169
input[type='range']::-webkit-slider-thumb {
145170
width: 24px;
146-
height: 12px;
171+
height: 24px;
147172
border: none;
148173
border-radius: 0;
149174
cursor: ew-resize;
150175
margin-top: 4px;
151176
pointer-events: all;
152177
position: relative;
153178
background: transparent;
154-
border-bottom: 1px solid var(--euiColorPrimary);
155-
border-left: 1px solid var(--euiColorPrimary);
156-
}
157-
158-
.rangeWrapper:hover input[type='range']::-webkit-slider-thumb{
159-
border-bottom: 5px solid var(--euiColorPrimary);
160-
margin-top: 2px;
161179
}
162180

163181
input[type='range']:first-child::-webkit-slider-thumb {
164-
transform: translateY(-5px);
182+
transform: translateY(-4px);
165183
}
166184

167185
input[type='range']:last-of-type::-webkit-slider-thumb {
168-
transform: translateY(6px) rotate(180deg);
169-
}
170-
171-
.rangeWrapper:hover input[type='range']:first-child::-webkit-slider-thumb {
172-
transform: translateY(-2px);
186+
transform: translateY(8px) rotate(180deg);
173187
}
174-
175-
.rangeWrapper:hover input[type='range']:last-of-type::-webkit-slider-thumb {
176-
transform: translateY(5px) rotate(180deg);
177-
}

0 commit comments

Comments
 (0)