Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1 | espaco | 1 | /*** |
| 2 | NoUIRangeSlider |
||
| 3 | ***/ |
||
| 4 | |||
| 5 | .noUi-horizontal { |
||
| 6 | margin: 9px 0; |
||
| 7 | } |
||
| 8 | |||
| 9 | /*** |
||
| 10 | Color variants |
||
| 11 | ***/ |
||
| 12 | |||
| 13 | @mixin noui-rangeslider-variant($state, $background) { |
||
| 14 | .noUi-#{$state} .noUi-connect { |
||
| 15 | background: $background; |
||
| 16 | } |
||
| 17 | } |
||
| 18 | |||
| 19 | @include noui-rangeslider-variant("primary", $btn-primary-bg); |
||
| 20 | @include noui-rangeslider-variant("info", $btn-info-bg); |
||
| 21 | @include noui-rangeslider-variant("success", $btn-success-bg); |
||
| 22 | @include noui-rangeslider-variant("warning", $btn-warning-bg); |
||
| 23 | @include noui-rangeslider-variant("danger", $btn-danger-bg); |
||
| 24 | @include noui-rangeslider-variant("default", $brand-default); |
||
| 25 | |||
| 26 | /* Conect slider */ |
||
| 27 | |||
| 28 | /* For this slider, disable the 'origin' size. */ |
||
| 29 | .noui-connect .noUi-origin { |
||
| 30 | right: auto; |
||
| 31 | width: 0; |
||
| 32 | } |
||
| 33 | |||
| 34 | /* Position the bar and color it. */ |
||
| 35 | .noui-connect .connect { |
||
| 36 | position: absolute; |
||
| 37 | top: 0; |
||
| 38 | bottom: 0; |
||
| 39 | background: #80C9F5; |
||
| 40 | box-shadow: inset 0 0 3px rgba(51,51,51,0.45); |
||
| 41 | } |
||
| 42 | |||
| 43 | /* When the slider is moved by tap, |
||
| 44 | transition the connect bar like the handle. */ |
||
| 45 | .noui-connect.noUi-state-tap .connect { |
||
| 46 | -webkit-transition: left 300ms, right 300ms; |
||
| 47 | transition: left 300ms, right 300ms; |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | noUI Tooltips |
||
| 52 | **/ |
||
| 53 | |||
| 54 | .noUi-handle { |
||
| 55 | .noUi-tooltip { |
||
| 56 | display: block; |
||
| 57 | position: absolute; |
||
| 58 | border: 1px solid #D9D9D9; |
||
| 59 | font-size: 12px; |
||
| 60 | border-radius: 3px; |
||
| 61 | background: #fff; |
||
| 62 | top: -55px; |
||
| 63 | padding: 5px; |
||
| 64 | left: -10px; |
||
| 65 | text-align: center; |
||
| 66 | min-width: 50px; |
||
| 67 | |||
| 68 | strong { |
||
| 69 | display: block; |
||
| 70 | padding: 2px; |
||
| 71 | } |
||
| 72 | } |
||
| 73 | } |