1 /* Copyright 2013 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file.
6 /* Customize the standard input[type='range']. */
7 .slider > input[type='range'] {
8 -webkit-appearance: none !important; /* Hide the default thumb icon. */
9 background: transparent; /* Hide the standard slider bar */
11 left: -2px; /* Required to align the input element with the parent. */
17 /* Custom thumb icon. */
18 .slider > input[type='range']::-webkit-slider-thumb {
19 -webkit-appearance: none;
20 background-position: center center;
21 background-repeat: no-repeat;
27 /* Custom slider bar (we hide the standard one). */
29 /* In order to match the horizontal position of the standard slider bar
30 left and right must be equal to 1/2 of the thumb icon width. */
34 pointer-events: none; /* Mouse events pass through to the standard input. */
37 background-image: url(../images/slider/slide_bar_center.png);
41 .slider > .bar > .filled,
42 .slider > .bar > .cap {
46 /* The filled portion of the slider bar to the left of the thumb. */
47 .slider > .bar > .filled {
48 border-left-style: none;
49 border-right-style: none;
51 width: 0; /* The element style.width is manipulated from the code. */
54 .slider > .bar > .cap.right {
55 background-image: url(../images/slider/slider_bar_right.png);
61 .slider > .bar > .filled {
62 background-image: url(../images/slider/slide_bar_fill_center.png);
66 .slider > .bar > .cap.left {
67 background-image: url(../images/slider/slide_bar_fill_left.png);
73 .slider.disabled > .bar {
74 background-image: url(../images/slider/slide_bar_disabled_center.png);
77 .slider.disabled > .bar > .filled {
78 background-image: url(../images/slider/slide_bar_disabled_center.png);
81 .slider.disabled > .bar > .cap.left {
82 background-image: url(../images/slider/slide_bar_disabled_left.png);
85 .slider.disabled > .bar > .cap.right {
86 background-image: url(../images/slider/slide_bar_disabled_right.png);
98 .slider > input[type='range']::-webkit-slider-thumb {
99 background-image: url(../images/slider/slider_thumb.png);
103 .slider > input[type='range']::-webkit-slider-thumb:hover {
104 background-image: url(../images/slider/slider_thumb_hover.png);
107 .slider > input[type='range']::-webkit-slider-thumb:active {
108 background-image: url(../images/slider/slider_thumb_down.png);
111 .slider.disabled > input[type='range']::-webkit-slider-thumb {
112 background-image: url(../images/slider/slider_thumb_disabled.png);