@@ -1,5 +1,6 @@
11$form-padding: 24px; // indigo pv3
22$form-line-height: 1.5rem; // $lh-regular
3+$handle-extent: $form-line-height;
34
45@keyframes autofill {
56 to {
@@ -45,3 +46,62 @@ input {
4546 -webkit-animation-fill-mode: both;
4647 }
4748}
49+
50+
51+// range slider
52+input[type='range'] {
53+ overflow: hidden;
54+ -webkit-appearance: none;
55+ background-color: #e6e6e6;
56+
57+ // NOTE: this matches the calc(1.5rem + 25px)
58+ height: $form-line-height;
59+ margin-top: $form-padding / 2;
60+ margin-bottom: $form-padding / 2;
61+
62+ /* Chrome */
63+ &::-webkit-slider-runnable-track {
64+ height: $handle-extent;
65+ -webkit-appearance: none;
66+ background-color: #e6e6e6;
67+ margin-top: -1px;
68+ }
69+
70+ &::-webkit-slider-thumb {
71+ -webkit-appearance: none;
72+ width: $handle-extent;
73+ height: 100%;
74+ background-color: #000;
75+ border: none;
76+ border-radius: 0;
77+ cursor: ew-resize;
78+ }
79+
80+ /* FF */
81+ &::-moz-range-progress {
82+ height: 100%;
83+ background-color: #000;
84+ }
85+
86+ &::-moz-range-track {
87+ background-color: #e6e6e6;
88+ }
89+
90+ &::-moz-range-thumb {
91+ width: $handle-extent;
92+ height: 100%;
93+ background-color: #000;
94+ border: none;
95+ border-radius: 0;
96+ cursor: ew-resize;
97+ }
98+
99+ /* IE */
100+ &::-ms-fill-lower {
101+ background-color: #000;
102+ }
103+
104+ &::-ms-fill-upper {
105+ background-color: #e6e6e6;
106+ }
107+}