phpvms/resources/sass/now-ui/now-ui-kit/plugins/_plugin-nouislider.scss

386 lines
7.1 KiB
SCSS
Raw Normal View History

/*! nouislider - 13.1.4 */
2017-07-28 20:13:52 +08:00
/* Functional styling;
* These styles are required for noUiSlider to function.
* You don't need to change these rules to apply your design.
*/
.noUi-target,
.noUi-target * {
-webkit-touch-callout: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-user-select: none;
-ms-touch-action: none;
touch-action: none;
-ms-user-select: none;
-moz-user-select: none;
user-select: none;
-moz-box-sizing: border-box;
box-sizing: border-box;
2017-07-28 20:13:52 +08:00
}
.noUi-target {
position: relative;
direction: ltr;
2017-07-28 20:13:52 +08:00
}
.noUi-base,
.noUi-connects {
width: 100%;
height: 100%;
position: relative;
z-index: 1;
2017-07-28 20:13:52 +08:00
}
/* Wrapper for all connect elements.
*/
.noUi-connects {
overflow: hidden;
z-index: 0;
2017-07-28 20:13:52 +08:00
}
.noUi-connect,
2017-07-28 20:13:52 +08:00
.noUi-origin {
will-change: transform;
position: absolute;
z-index: 1;
top: 0;
left: 0;
height: 100%;
width: 100%;
-ms-transform-origin: 0 0;
-webkit-transform-origin: 0 0;
transform-origin: 0 0;
}
/* Offset direction
*/
html:not([dir="rtl"]) .noUi-horizontal .noUi-origin {
left: auto;
right: 0;
}
/* Give origins 0 height/width so they don't interfere with clicking the
* connect elements.
*/
.noUi-vertical .noUi-origin {
width: 0;
}
.noUi-horizontal .noUi-origin {
height: 0;
2017-07-28 20:13:52 +08:00
}
.noUi-handle {
position: absolute;
2017-07-28 20:13:52 +08:00
}
.noUi-state-tap .noUi-connect,
.noUi-state-tap .noUi-origin {
-webkit-transition: transform 0.3s;
transition: transform 0.3s;
2017-07-28 20:13:52 +08:00
}
.noUi-state-drag * {
cursor: inherit !important;
2017-07-28 20:13:52 +08:00
}
/* Slider size and handle placement;
*/
.noUi-horizontal {
height: 1px;
2017-07-28 20:13:52 +08:00
}
.noUi-horizontal .noUi-handle {
border-radius: 50%;
background-color: $white-color;
box-shadow: 0 1px 13px 0 rgba(0, 0, 0, 0.2);
height:15px;
width:15px;
cursor:pointer;
margin-top: -7px;
outline: none;
2017-07-28 20:13:52 +08:00
}
.noUi-vertical {
width: 18px;
}
.noUi-vertical .noUi-handle {
width: 28px;
height: 34px;
left: -6px;
top: -17px;
}
html:not([dir="rtl"]) .noUi-horizontal .noUi-handle {
right: -15px;
left: auto;
2017-07-28 20:13:52 +08:00
}
/* Styling;
* Giving the connect element a border radius causes issues with using transform: scale
2017-07-28 20:13:52 +08:00
*/
.noUi-target {
background-color: rgba(182, 182, 182, .3);
border-radius: 3px;
}
.noUi-connects {
border-radius: 3px;
2017-07-28 20:13:52 +08:00
}
.noUi-connect {
background: $default-color;
border-radius: 3px;
-webkit-transition: background 450ms;
transition: background 450ms;
}
/* Handles and cursors;
*/
.noUi-draggable {
cursor: ew-resize;
2017-07-28 20:13:52 +08:00
}
.noUi-vertical .noUi-draggable {
cursor: ns-resize;
2017-07-28 20:13:52 +08:00
}
.noUi-handle {
// border: 1px solid #D9D9D9;
border-radius: 3px;
background: #FFF;
cursor: default;
box-shadow: inset 0 0 1px #FFF,
inset 0 1px 7px #EBEBEB,
0 3px 6px -3px #BBB;
-webkit-transition: $general-transition-time $transition-ease;
-moz-transition: $general-transition-time $transition-ease;
-ms-transition: $general-transition-time $transition-ease;
-o-transform: $general-transition-time $transition-ease;
transition: $general-transition-time $transition-ease;
}
.noUi-active {
-webkit-transform: scale3d(1.5,1.5,1);
-moz-transform: scale3d(1.5,1.5,1);
-ms-transform: scale3d(1.5,1.5,1);
-o-transform: scale3d(1.5,1.5,1);
transform: scale3d(1.5,1.5,1);
}
/* Handle stripes;
*/
.noUi-handle:before,
.noUi-handle:after {
display: none;
}
.noUi-handle:after {
left: 17px;
}
.noUi-vertical .noUi-handle:before,
.noUi-vertical .noUi-handle:after {
width: 14px;
height: 1px;
left: 6px;
top: 14px;
}
.noUi-vertical .noUi-handle:after {
top: 17px;
}
2017-07-28 20:13:52 +08:00
/* Disabled state;
*/
[disabled] .noUi-connect {
background: #B8B8B8;
2017-07-28 20:13:52 +08:00
}
[disabled].noUi-target,
[disabled].noUi-handle,
[disabled] .noUi-handle {
cursor: not-allowed;
2017-07-28 20:13:52 +08:00
}
/* Base;
*
*/
.noUi-pips,
.noUi-pips * {
-moz-box-sizing: border-box;
box-sizing: border-box;
2017-07-28 20:13:52 +08:00
}
.noUi-pips {
position: absolute;
color: #999;
2017-07-28 20:13:52 +08:00
}
/* Values;
*
*/
.noUi-value {
position: absolute;
white-space: nowrap;
text-align: center;
2017-07-28 20:13:52 +08:00
}
.noUi-value-sub {
color: #ccc;
font-size: 10px;
2017-07-28 20:13:52 +08:00
}
/* Markings;
*
*/
.noUi-marker {
position: absolute;
background: #CCC;
2017-07-28 20:13:52 +08:00
}
.noUi-marker-sub {
background: #AAA;
2017-07-28 20:13:52 +08:00
}
.noUi-marker-large {
background: #AAA;
2017-07-28 20:13:52 +08:00
}
/* Horizontal layout;
*
*/
.noUi-pips-horizontal {
padding: 10px 0;
height: 80px;
top: 100%;
left: 0;
width: 100%;
2017-07-28 20:13:52 +08:00
}
.noUi-value-horizontal {
-webkit-transform: translate(-50%, 50%);
transform: translate(-50%, 50%);
}
.noUi-rtl .noUi-value-horizontal {
-webkit-transform: translate(50%, 50%);
transform: translate(50%, 50%);
2017-07-28 20:13:52 +08:00
}
.noUi-marker-horizontal.noUi-marker {
margin-left: -1px;
width: 2px;
height: 5px;
2017-07-28 20:13:52 +08:00
}
.noUi-marker-horizontal.noUi-marker-sub {
height: 10px;
2017-07-28 20:13:52 +08:00
}
.noUi-marker-horizontal.noUi-marker-large {
height: 15px;
2017-07-28 20:13:52 +08:00
}
/* Vertical layout;
*
*/
.noUi-pips-vertical {
padding: 0 10px;
height: 100%;
top: 0;
left: 100%;
2017-07-28 20:13:52 +08:00
}
.noUi-value-vertical {
-webkit-transform: translate(0, -50%);
transform: translate(0, -50%, 0);
padding-left: 25px;
}
.noUi-rtl .noUi-value-vertical {
-webkit-transform: translate(0, 50%);
transform: translate(0, 50%);
2017-07-28 20:13:52 +08:00
}
.noUi-marker-vertical.noUi-marker {
width: 5px;
height: 2px;
margin-top: -1px;
2017-07-28 20:13:52 +08:00
}
.noUi-marker-vertical.noUi-marker-sub {
width: 10px;
2017-07-28 20:13:52 +08:00
}
.noUi-marker-vertical.noUi-marker-large {
width: 15px;
2017-07-28 20:13:52 +08:00
}
.noUi-tooltip {
display: block;
position: absolute;
border: 1px solid #D9D9D9;
border-radius: 3px;
background: #fff;
color: #000;
padding: 5px;
text-align: center;
white-space: nowrap;
2017-07-28 20:13:52 +08:00
}
.noUi-horizontal .noUi-tooltip {
-webkit-transform: translate(-50%, 0);
transform: translate(-50%, 0);
left: 50%;
bottom: 120%;
2017-07-28 20:13:52 +08:00
}
.noUi-vertical .noUi-tooltip {
-webkit-transform: translate(0, -50%);
transform: translate(0, -50%);
top: 50%;
right: 120%;
2017-07-28 20:13:52 +08:00
}
.slider {
&.slider-neutral{
& .noUi-connect,
&.noUi-connect{
background-color: $white-color;
}
&.noUi-target{
background-color: rgba(255,255,255, .3);
}
& .noUi-handle{
background-color: $white-color;
}
}
&.slider-primary{
& .noUi-connect,
&.noUi-connect{
background-color: $primary-color;
}
&.noUi-target{
background-color: $primary-color-opacity;
}
& .noUi-handle{
background-color: $brand-primary;
}
}
&.slider-info{
& .noUi-connect,
&.noUi-connect{
background-color: $brand-info;
}
&.noUi-target{
background-color: $info-color-opacity;
}
& .noUi-handle{
background-color: $brand-info;
}
}
&.slider-success{
& .noUi-connect,
&.noUi-connect{
background-color: $brand-success;
}
&.noUi-target{
background-color: $success-color-opacity;
}
& .noUi-handle{
background-color: $brand-success;
}
}
&.slider-warning{
& .noUi-connect,
&.noUi-connect{
background-color: $brand-warning;
}
&.noUi-target{
background-color: $warning-color-opacity;
}
& .noUi-handle{
background-color: $brand-warning;
}
}
&.slider-danger{
& .noUi-connect,
&.noUi-connect{
background-color: $brand-danger;
}
&.noUi-target{
background-color: $danger-color-opacity;
}
& .noUi-handle{
background-color: $brand-danger;
}
}
}