aboutsummaryrefslogtreecommitdiffstats
path: root/src/styles/slider.scss
blob: 36e0638c470c8eec505c7d2652bd97c36255d1ec (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
@import './config.scss';

.theme__dark .franz-form .franz-form__slider-wrapper .slider {
  border: 1px solid $dark-theme-gray;
  background: $dark-theme-gray;

}


.franz-form {
  .franz-form__slider-wrapper { 
    display: flex;
    flex-direction: row;

    .franz-form__label { margin-left: 20px; }

    .slider-container {
      width: 100%; /* Width of the outside container */ 
    }
      
    /* The slider itself */
    .slider {
      -webkit-appearance: none;
      width: 100%;
      height: 14px;
      border-radius: $theme-border-radius;  
      background: $theme-gray-lighter;
      outline: none;
      opacity: 1.0;
      -webkit-transition: .2s;
      transition: opacity .2s;
    }
    
    .slider::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 14px;
      height: 14px;
      border-radius: 50%; 
      background: $theme-brand-primary;
      box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
      cursor: pointer;
    }
    
    .slider::-moz-range-thumb {
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: $theme-brand-primary;
      box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
      cursor: pointer;
    }
    }
}