aboutsummaryrefslogtreecommitdiffstats
path: root/packages/excalidraw/components/Range.scss
blob: 01cb9168979f70328737e49bc797da794b0a104d (plain) (blame)
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
@import "../css/variables.module.scss";

.excalidraw {
  --slider-thumb-size: 16px;

  .range-wrapper {
    position: relative;
    padding-top: 10px;
    padding-bottom: 30px;
  }

  .range-input {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    background: var(--color-slider-track);
    border-radius: 2px;
    outline: none;
  }

  .range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: var(--slider-thumb-size);
    height: var(--slider-thumb-size);
    background: var(--color-slider-thumb);
    border-radius: 50%;
    cursor: pointer;
    border: none;
  }

  .range-input::-moz-range-thumb {
    width: var(--slider-thumb-size);
    height: var(--slider-thumb-size);
    background: var(--color-slider-thumb);
    border-radius: 50%;
    cursor: pointer;
    border: none;
  }

  .value-bubble {
    position: absolute;
    bottom: 0;
    transform: translateX(-50%);
    font-size: 12px;
    color: var(--text-primary-color);
  }

  .zero-label {
    position: absolute;
    bottom: 0;
    left: 4px;
    font-size: 12px;
    color: var(--text-primary-color);
  }
}