| Index: chrome/common/extensions/docs/examples/api/fontSettings/slider.css
|
| diff --git a/chrome/common/extensions/docs/examples/api/fontSettings/slider.css b/chrome/common/extensions/docs/examples/api/fontSettings/slider.css
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..fdef1ac5a91327b5fdea14e7e3c104f13c7930aa
|
| --- /dev/null
|
| +++ b/chrome/common/extensions/docs/examples/api/fontSettings/slider.css
|
| @@ -0,0 +1,124 @@
|
| +/* Copyright (c) 2013 The Chromium Authors. All rights reserved.
|
| + * Use of this source code is governed by a BSD-style license that can be
|
| + * found in the LICENSE file.
|
| + */
|
| +
|
| +/* Customize the standard input[type='range']. */
|
| +.slider > input[type='range'] {
|
| + -webkit-appearance: none !important; /* Hide the default thumb icon. */
|
| + background: transparent; /* Hide the standard slider bar */
|
| + height: 100%;
|
| + left: -2px; /* Required to align the input element with the parent. */
|
| + position: absolute;
|
| + top: -2px;
|
| + width: 100%;
|
| +}
|
| +
|
| +/* Custom thumb icon. */
|
| +.slider > input[type='range']::-webkit-slider-thumb {
|
| + -webkit-appearance: none;
|
| + background-position: center center;
|
| + background-repeat: no-repeat;
|
| + height: 24px;
|
| + position: relative;
|
| + z-index: 2;
|
| +}
|
| +
|
| +/* Custom slider bar (we hide the standard one). */
|
| +.slider > .bar {
|
| + /* In order to match the horizontal position of the standard slider bar
|
| + left and right must be equal to 1/2 of the thumb icon width. */
|
| + left: 8px;
|
| + right: 8px;
|
| + bottom: 10px;
|
| + pointer-events: none; /* Mouse events pass through to the standard input. */
|
| + position: absolute;
|
| + top: 10px;
|
| + background-image: -webkit-image-set(
|
| + url('../images/slider/slide_bar_center.png') 1x);
|
| + height: 4px;
|
| +}
|
| +
|
| +.slider > .bar > .filled,
|
| +.slider > .bar > .cap {
|
| + position: absolute;
|
| +}
|
| +
|
| +/* The filled portion of the slider bar to the left of the thumb. */
|
| +.slider > .bar > .filled {
|
| + border-left-style: none;
|
| + border-right-style: none;
|
| + left: 0;
|
| + width: 0; /* The element style.width is manipulated from the code. */
|
| +}
|
| +
|
| +.slider > .bar > .cap.right {
|
| + background-image: -webkit-image-set(
|
| + url('../images/slider/slider_bar_right.png') 1x);
|
| + height: 4px;
|
| + width: 4px;
|
| + left: 100%;
|
| +}
|
| +
|
| +.slider > .bar > .filled {
|
| + background-image: -webkit-image-set(
|
| + url('../images/slider/slide_bar_fill_center.png') 1x);
|
| + height: 4px;
|
| +}
|
| +
|
| +.slider > .bar > .cap.left {
|
| + background-image: -webkit-image-set(
|
| + url('../images/slider/slide_bar_fill_left.png') 1x);
|
| + height: 4px;
|
| + width: 4px;
|
| + right: 100%;
|
| +}
|
| +
|
| +.slider.disabled > .bar {
|
| + background-image: -webkit-image-set(
|
| + url('../images/slider/slide_bar_disabled_center.png') 1x);
|
| +}
|
| +
|
| +.slider.disabled > .bar > .filled {
|
| + background-image: -webkit-image-set(
|
| + url('../images/slider/slide_bar_disabled_center.png') 1x);
|
| +}
|
| +
|
| +.slider.disabled > .bar > .cap.left {
|
| + background-image: -webkit-image-set(
|
| + url('../images/slider/slide_bar_disabled_left.png') 1x);
|
| +}
|
| +
|
| +.slider.disabled > .bar > .cap.right {
|
| + background-image: -webkit-image-set(
|
| + url('../images/slider/slide_bar_disabled_right.png') 1x);
|
| +}
|
| +
|
| +.slider.disabled,
|
| +.slider.readonly {
|
| + pointer-events: none;
|
| +}
|
| +.slider {
|
| + -webkit-box-flex: 1;
|
| +}
|
| +
|
| +.slider > input[type='range']::-webkit-slider-thumb {
|
| + background-image: -webkit-image-set(
|
| + url('../images/slider/slider_thumb.png') 1x);
|
| + width: 16px;
|
| +}
|
| +
|
| +.slider > input[type='range']::-webkit-slider-thumb:hover {
|
| + background-image: -webkit-image-set(
|
| + url('../images/slider/slider_thumb_hover.png') 1x);
|
| +}
|
| +
|
| +.slider > input[type='range']::-webkit-slider-thumb:active {
|
| + background-image: -webkit-image-set(
|
| + url('../images/slider/slider_thumb_down.png') 1x);
|
| +}
|
| +
|
| +.slider.disabled > input[type='range']::-webkit-slider-thumb {
|
| + background-image: -webkit-image-set(
|
| + url('../images/slider/slider_thumb_disabled.png') 1x);
|
| +}
|
|
|