Spaces:
Configuration error
Configuration error
File size: 2,025 Bytes
a7060a0 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 | .range {
--thickness: 6px;
display: flex;
align-items: center;
&_align {
&_horizontal {
min-width: 120px;
height: 28px;
padding: 0 5px;
flex-direction: row;
}
&_vertical {
min-height: 120px;
width: 28px;
padding: 5px 0;
flex-direction: column;
}
}
&__body {
position: relative;
.range_align_horizontal & {
height: var(--thickness);
width: 120px;
margin: 0 8px;
}
.range_align_vertical & {
height: 120px;
width: var(--thickness);
margin: 8px 0;
}
}
&__line {
border-radius: 8px;
background: var(--color-neutral-surface);
.range_align_horizontal & {
height: var(--thickness);
width: 100%;
}
.range_align_vertical & {
width: var(--thickness);
height: 100%;
}
}
&__indicator {
border-radius: 8px;
position: absolute;
background-color: var(--color-primary-emphasis);
.range_align_horizontal & {
top: 0;
height: var(--thickness);
}
.range_align_vertical & {
left: 0;
width: var(--thickness);
}
}
&__range-handle {
width: 0;
height: 0;
position: absolute;
&::before {
content: "";
width: 16px;
height: 16px;
position: absolute;
background: var(--color-primary-surface);
border-radius: 100%;
box-shadow:
0 5px 10px var(--color-primary-surface-content-subtle),
inset 0 -1px 0 rgb(0 0 0 / 10%);
transform: translate3d(-50%, -50%, 0);
}
&::after {
content: "";
width: 25px;
height: 25px;
position: absolute;
transform: translate3d(-50%, -50%, 0);
}
.range_align_horizontal & {
top: 50%;
}
.range_align_vertical & {
left: 50%;
}
}
&__icon {
width: 28px;
height: 28px;
display: flex;
align-items: center;
justify-content: center;
& svg {
max-width: 100%;
max-height: 100%;
}
}
}
|