| Jeremy Mordkoff | e29efc3 | 2016-09-07 18:59:17 -0400 | [diff] [blame] | 1 | |
| 2 | /* |
| 3 | * |
| 4 | * Copyright 2016 RIFT.IO Inc |
| 5 | * |
| 6 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | * you may not use this file except in compliance with the License. |
| 8 | * You may obtain a copy of the License at |
| 9 | * |
| 10 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | * |
| 12 | * Unless required by applicable law or agreed to in writing, software |
| 13 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | * See the License for the specific language governing permissions and |
| 16 | * limitations under the License. |
| 17 | * |
| 18 | */ |
| 19 | @import '../../style/_colors.scss'; |
| 20 | |
| 21 | .input-range-slider_horizontal{ |
| 22 | display:flex; |
| 23 | align-items:baseline; |
| 24 | &-info { |
| 25 | margin:0 0.5rem; |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | |
| 30 | .rangeslider { |
| 31 | margin: 20px 0; |
| 32 | position: relative; |
| 33 | background: #e6e6e6; |
| 34 | display:flex; |
| 35 | flex:1; |
| 36 | .rangeslider__fill, .rangeslider__handle { |
| 37 | position: absolute; |
| 38 | } |
| 39 | &, .rangeslider__fill { |
| 40 | display: block; |
| 41 | box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.3); |
| 42 | } |
| 43 | .rangeslider__handle { |
| 44 | background: #fff; |
| 45 | border: 1px solid #ccc; |
| 46 | cursor: pointer; |
| 47 | display: inline-block; |
| 48 | position: absolute; |
| 49 | &:active { |
| 50 | background: #999; |
| 51 | } |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | /** |
| 56 | * Rangeslider - Horizontal slider |
| 57 | */ |
| 58 | .rangeslider-horizontal { |
| 59 | height: 1rem; |
| 60 | margin-bottom: 2.5rem; |
| 61 | .rangeslider__fill { |
| 62 | height: 100%; |
| 63 | background: $light-blue; |
| 64 | top: 0; |
| 65 | } |
| 66 | .rangeslider__handle { |
| 67 | width: 0.5rem; |
| 68 | height: 2rem; |
| 69 | top: -0.5rem; |
| 70 | left:-10px; |
| 71 | display: flex; |
| 72 | flex-direction: column; |
| 73 | align-items: center; |
| 74 | >div{ |
| 75 | width: 5rem; |
| 76 | margin-top: 2rem; |
| 77 | text-align: center; |
| 78 | } |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | /** |
| 83 | * Rangeslider - Vertical slider |
| 84 | */ |
| 85 | .rangeslider-vertical { |
| 86 | margin: 20px auto; |
| 87 | height: 150px; |
| 88 | max-width: 10px; |
| 89 | background: none; |
| 90 | .rangeslider__fill { |
| 91 | width: 100%; |
| 92 | background: $light-blue; |
| 93 | box-shadow: none; |
| 94 | bottom: 0; |
| 95 | } |
| 96 | .rangeslider__handle { |
| 97 | width: 30px; |
| 98 | height: 10px; |
| 99 | left: -10px; |
| 100 | &:active { |
| 101 | box-shadow: none; |
| 102 | } |
| 103 | } |
| 104 | } |