Bin
2025-12-17 2b99d77d73ba568beff0a549534017caaad8a6de
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
.range {
  display: inline-flex;
  align-items: center;
  user-select: none;
 
  &_align {
    &_horizontal {
      min-width: 120px;
      height: 28px;
      flex-direction: row;
    }
 
    &_vertical {
      min-height: 120px;
      width: 28px;
      flex-direction: column;
    }
 
    .range_with-icon &_horizontal {
      padding: 0 5px;
    }
 
    .range_with-icon &_vertical {
      padding: 5px 0;
    }
  }
 
  &__body {
    position: relative;
 
    .range_align_horizontal & {
      height: 4px;
      width: 100%;
    }
 
    .range_align_vertical & {
      height: 100%;
      width: 4px;
    }
 
    .range_align_horizontal &_with-icon {
      margin: 0 5px;
    }
 
    .range_align_vertical &_with-icon {
      margin: 5px 0;
    }
  }
 
  &__line {
    background: linear-gradient(0deg, var(--color-neutral-surface-active), var(--color-neutral-surface-active)), #FFF;
    box-shadow: inset 0 1px 0 rgba(var(--color-neutral-shadow-raw) / 5%), inset 0 0 0 1px rgba(var(--color-neutral-shadow-raw) / 5%);
    border-radius: 8px;
 
    .range_align_horizontal & {
      height: 4px;
      width: 100%;
    }
 
    .range_align_vertical & {
      width: 4px;
      height: 100%;
    }
  }
 
  &__indicator {
    border-radius: 8px;
    position: absolute;
    background-color: var(--color-primary-emphasis);
 
    .range_align_horizontal & {
      top: 0;
      height: 4px;
    }
 
    .range_align_vertical & {
      left: 0;
      width: 4px;
    }
  }
 
  &__range-handle {
    width: 0;
    height: 0;
    position: absolute;
 
    &::before {
      content: '';
      position: absolute;
      background: var(--color-primary-surface);
      box-shadow: 0 5px 10px rgba(var(--color-primary-shadow-raw) / 30%);
      border-radius: 8px;
      transform: translate3d(-50%, -50%, 0);
    }
 
    &::after {
      content: '';
      width: 25px;
      height: 25px;
      position: absolute;
      transform: translate3d(-50%, -50%, 0);
    }
 
    .range_align_horizontal & {
      top: 50%;
      cursor: col-resize;
 
      &::before {
        width: 16px;
        height: 16px;
      }
    }
 
    .range_align_vertical & {
      left: 50%;
      cursor: row-resize;
 
      &::before {
        width: 16px;
        height: 16px;
      }
    }
  }
 
  &__icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}