fixed problem with nouislider...

This commit is contained in:
FezVrasta 2014-09-29 10:22:56 +02:00
parent 19f3118302
commit d6b15454b2
4 changed files with 206 additions and 298 deletions

View File

@ -14,20 +14,6 @@
opacity: 0;
}
}
@-moz-keyframes input-highlight {
0% {
left: 20%;
width: 20%;
}
99% {
width: 0;
left: 0;
opacity: 1;
}
100% {
opacity: 0;
}
}
@keyframes input-highlight {
0% {
left: 20%;
@ -415,7 +401,8 @@ body .jumbotron-material-lightgrey,
text-transform: uppercase;
text-decoration: none;
color: rgba(255, 255, 255, 0.84);
transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
-webkit-transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
outline: none !important;
}
.btn:hover {
@ -513,7 +500,8 @@ body .jumbotron-material-lightgrey,
}
.btn-raised {
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
-webkit-transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-raised:active:not(.btn-link) {
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
@ -600,7 +588,8 @@ body .jumbotron-material-lightgrey,
border-radius: 4px;
margin: 10px 1px;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
-webkit-transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-group:active:not(.btn-link),
.btn-group-vertical:active:not(.btn-link) {
@ -613,7 +602,8 @@ body .jumbotron-material-lightgrey,
.btn-group.btn-group-raised,
.btn-group-vertical.btn-group-raised {
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
-webkit-transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-group.btn-group-raised:active:not(.btn-link),
.btn-group-vertical.btn-group-raised:active:not(.btn-link) {
@ -750,7 +740,8 @@ body .jumbotron-material-lightgrey,
padding-top: 15px;
}
.checkbox {
transform: rotate(0deg);
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
.checkbox label {
cursor: pointer;
@ -761,7 +752,8 @@ body .jumbotron-material-lightgrey,
display: block;
position: absolute;
left: 0px;
transition-duration: 0.2s;
-webkit-transition-duration: 0.2s;
transition-duration: 0.2s;
}
.checkbox label .check:after {
display: block;
@ -784,9 +776,6 @@ body .jumbotron-material-lightgrey,
height: 20px;
width: 20px;
-webkit-transition-delay: 0.2s;
-moz-transition-delay: 0.2s;
-o-transition-delay: 0.2s;
-ms-transition-delay: 0.2s;
transition-delay: 0.2s;
}
.checkbox .check,
@ -871,9 +860,7 @@ body .jumbotron-material-lightgrey,
border: solid 2px;
border-color: #5a5a5a;
-webkit-animation: uncheck 300ms ease-out forwards;
-moz-animation: uncheck 300ms ease-out forwards;
-ms-animation: uncheck 300ms ease-out forwards;
-o-animation: uncheck 300ms ease-out forwards;
animation: uncheck 300ms ease-out forwards;
}
.checkbox input[type=checkbox]:focus ~ .check:after {
@ -881,23 +868,17 @@ body .jumbotron-material-lightgrey,
}
.checkbox input[type=checkbox]:checked ~ .check:before {
-webkit-animation: check 300ms ease-out forwards;
-moz-animation: check 300ms ease-out forwards;
-ms-animation: check 300ms ease-out forwards;
-o-animation: check 300ms ease-out forwards;
animation: check 300ms ease-out forwards;
}
.checkbox input[type=checkbox]:not(:checked) ~ .check:after {
-webkit-animation: rippleOff 500ms;
-moz-animation: rippleOff 500ms;
-ms-animation: rippleOff 500ms;
-o-animation: rippleOff 500ms;
animation: rippleOff 500ms;
}
.checkbox input[type=checkbox]:checked ~ .check:after {
-webkit-animation: rippleOn 500ms;
-moz-animation: rippleOn 500ms;
-ms-animation: rippleOn 500ms;
-o-animation: rippleOn 500ms;
animation: rippleOn 500ms;
}
.checkbox input[type=checkbox][disabled]:not(:checked) ~ .check:before {
@ -905,7 +886,8 @@ body .jumbotron-material-lightgrey,
}
.checkbox input[type=checkbox][disabled] ~ .check:after {
background-color: rgba(0, 0, 0, 0.84);
transform: rotate(-45deg);
-webkit-transform: rotate(-45deg);
transform: rotate(-45deg);
}
.checkbox input[type=checkbox]:checked ~ .check:after,
.checkbox-default input[type=checkbox]:checked ~ .check:after {
@ -986,14 +968,16 @@ body .jumbotron-material-lightgrey,
border-color: #0f9d58;
border-left-color: transparent;
border-top-color: transparent;
transform: rotate(45deg);
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
}
50% {
top: 14px;
left: 17px;
width: 4px;
height: 4px;
transform: rotate(45deg);
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
border-color: #0f9d58;
border-left-color: transparent;
border-top-color: transparent;
@ -1008,7 +992,8 @@ body .jumbotron-material-lightgrey,
left: 12px;
width: 18px;
height: 18px;
transform: rotate(0deg);
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
border-color: #5a5a5a;
border-left-color: #5a5a5a;
border-top-color: #5a5a5a;
@ -1020,7 +1005,8 @@ body .jumbotron-material-lightgrey,
left: 17px;
width: 10px;
height: 21px;
transform: rotate(45deg);
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
border-color: #0f9d58;
border-left-color: transparent;
border-top-color: transparent;
@ -1034,7 +1020,8 @@ body .jumbotron-material-lightgrey,
left: 17px;
width: 4px;
height: 4px;
transform: rotate(45deg);
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
border-color: #5a5a5a;
border-left-color: #5a5a5a;
border-top-color: #5a5a5a;
@ -1044,43 +1031,8 @@ body .jumbotron-material-lightgrey,
left: 12px;
width: 18px;
height: 18px;
transform: rotate(0deg);
border-color: #5a5a5a;
border-left-color: #5a5a5a;
border-top-color: #5a5a5a;
}
}
@-moz-keyframes check {
100% {
top: -3px;
left: 17px;
width: 10px;
height: 21px;
transform: rotate(45deg);
border-color: #0f9d58;
border-left-color: transparent;
border-top-color: transparent;
}
51% {
border-left: transparent;
border-top-color: transparent;
}
50% {
top: 14px;
left: 17px;
width: 4px;
height: 4px;
transform: rotate(45deg);
border-color: #5a5a5a;
border-left-color: #5a5a5a;
border-top-color: #5a5a5a;
}
0% {
top: 1px;
left: 12px;
width: 18px;
height: 18px;
transform: rotate(0deg);
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
border-color: #5a5a5a;
border-left-color: #5a5a5a;
border-top-color: #5a5a5a;
@ -1122,49 +1074,14 @@ body .jumbotron-material-lightgrey,
border-top-color: #5a5a5a;
}
}
@-o-keyframes check {
100% {
top: -3px;
left: 17px;
width: 10px;
height: 21px;
transform: rotate(45deg);
border-color: #0f9d58;
border-left-color: transparent;
border-top-color: transparent;
}
51% {
border-left: transparent;
border-top-color: transparent;
}
50% {
top: 14px;
left: 17px;
width: 4px;
height: 4px;
transform: rotate(45deg);
border-color: #5a5a5a;
border-left-color: #5a5a5a;
border-top-color: #5a5a5a;
}
0% {
top: 1px;
left: 12px;
width: 18px;
height: 18px;
transform: rotate(0deg);
border-color: #5a5a5a;
border-left-color: #5a5a5a;
border-top-color: #5a5a5a;
}
}
@keyframes check {
100% {
top: -3px;
left: 17px;
width: 10px;
height: 21px;
transform: rotate(45deg);
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
border-color: #0f9d58;
border-left-color: transparent;
border-top-color: transparent;
@ -1178,7 +1095,8 @@ body .jumbotron-material-lightgrey,
left: 17px;
width: 4px;
height: 4px;
transform: rotate(45deg);
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
border-color: #5a5a5a;
border-left-color: #5a5a5a;
border-top-color: #5a5a5a;
@ -1188,7 +1106,8 @@ body .jumbotron-material-lightgrey,
left: 12px;
width: 18px;
height: 18px;
transform: rotate(0deg);
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
border-color: #5a5a5a;
border-left-color: #5a5a5a;
border-top-color: #5a5a5a;
@ -1214,26 +1133,6 @@ body .jumbotron-material-lightgrey,
opacity: 0;
}
}
@-moz-keyframes rippleOn {
0% {
opacity: 0;
}
50% {
opacity: 0.2;
}
100% {
opacity: 0;
}
0% {
opacity: 0;
}
50% {
opacity: 0.2;
}
100% {
opacity: 0;
}
}
@-ms-keyframes rippleOn {
0% {
opacity: 0;
@ -1254,26 +1153,6 @@ body .jumbotron-material-lightgrey,
opacity: 0;
}
}
@-o-keyframes rippleOn {
0% {
opacity: 0;
}
50% {
opacity: 0.2;
}
100% {
opacity: 0;
}
0% {
opacity: 0;
}
50% {
opacity: 0.2;
}
100% {
opacity: 0;
}
}
@keyframes rippleOn {
0% {
opacity: 0;
@ -1314,26 +1193,6 @@ body .jumbotron-material-lightgrey,
opacity: 0;
}
}
@-moz-keyframes rippleOff {
0% {
opacity: 0;
}
50% {
opacity: 0.2;
}
100% {
opacity: 0;
}
0% {
opacity: 0;
}
50% {
opacity: 0.2;
}
100% {
opacity: 0;
}
}
@-ms-keyframes rippleOn {
0% {
opacity: 0;
@ -1354,26 +1213,6 @@ body .jumbotron-material-lightgrey,
opacity: 0;
}
}
@-o-keyframes rippleOff {
0% {
opacity: 0;
}
50% {
opacity: 0.2;
}
100% {
opacity: 0;
}
0% {
opacity: 0;
}
50% {
opacity: 0.2;
}
100% {
opacity: 0;
}
}
@keyframes rippleOff {
0% {
opacity: 0;
@ -1407,7 +1246,8 @@ body .jumbotron-material-lightgrey,
position: absolute;
left: 10px;
top: 2px;
transition-duration: 0.2s;
-webkit-transition-duration: 0.2s;
transition-duration: 0.2s;
}
.radio label .circle {
border: 2px solid rgba(0, 0, 0, 0.84);
@ -1420,7 +1260,8 @@ body .jumbotron-material-lightgrey,
width: 15px;
border-radius: 100%;
background-color: rgba(0, 0, 0, 0.84);
transform: scale(0);
-webkit-transform: scale(0);
transform: scale(0);
}
.radio label .check:after {
display: block;
@ -1435,20 +1276,17 @@ body .jumbotron-material-lightgrey,
z-index: 1;
opacity: 0;
margin: 0;
transform: scale(1.5);
-webkit-transform: scale(1.5);
transform: scale(1.5);
}
.radio label input[type=radio]:not(:checked) ~ .check:after {
-webkit-animation: rippleOff 500ms;
-moz-animation: rippleOff 500ms;
-ms-animation: rippleOff 500ms;
-o-animation: rippleOff 500ms;
animation: rippleOff 500ms;
}
.radio label input[type=radio]:checked ~ .check:after {
-webkit-animation: rippleOn 500ms;
-moz-animation: rippleOn 500ms;
-ms-animation: rippleOn 500ms;
-o-animation: rippleOn 500ms;
animation: rippleOn 500ms;
}
.radio input[type=radio]:checked ~ .check,
@ -1599,7 +1437,8 @@ body .jumbotron-material-lightgrey,
display: none;
}
.radio input[type=radio]:checked ~ .check {
transform: scale(0.55);
-webkit-transform: scale(0.55);
transform: scale(0.55);
}
.radio input[type=radio][disabled] ~ .circle {
border-color: rgba(0, 0, 0, 0.84);
@ -1627,26 +1466,6 @@ body .jumbotron-material-lightgrey,
opacity: 0;
}
}
@-moz-keyframes rippleOn {
0% {
opacity: 0;
}
50% {
opacity: 0.2;
}
100% {
opacity: 0;
}
0% {
opacity: 0;
}
50% {
opacity: 0.2;
}
100% {
opacity: 0;
}
}
@-ms-keyframes rippleOn {
0% {
opacity: 0;
@ -1667,26 +1486,6 @@ body .jumbotron-material-lightgrey,
opacity: 0;
}
}
@-o-keyframes rippleOn {
0% {
opacity: 0;
}
50% {
opacity: 0.2;
}
100% {
opacity: 0;
}
0% {
opacity: 0;
}
50% {
opacity: 0.2;
}
100% {
opacity: 0;
}
}
@keyframes rippleOn {
0% {
opacity: 0;
@ -1727,26 +1526,6 @@ body .jumbotron-material-lightgrey,
opacity: 0;
}
}
@-moz-keyframes rippleOff {
0% {
opacity: 0;
}
50% {
opacity: 0.2;
}
100% {
opacity: 0;
}
0% {
opacity: 0;
}
50% {
opacity: 0.2;
}
100% {
opacity: 0;
}
}
@-ms-keyframes rippleOn {
0% {
opacity: 0;
@ -1767,26 +1546,6 @@ body .jumbotron-material-lightgrey,
opacity: 0;
}
}
@-o-keyframes rippleOff {
0% {
opacity: 0;
}
50% {
opacity: 0.2;
}
100% {
opacity: 0;
}
0% {
opacity: 0;
}
50% {
opacity: 0.2;
}
100% {
opacity: 0;
}
}
@keyframes rippleOff {
0% {
opacity: 0;
@ -1869,7 +1628,8 @@ select[multiple].form-control.focus {
pointer-events: none;
left: 0px;
top: 5px;
transition: 0.2s ease all;
-webkit-transition: 0.2s ease all;
transition: 0.2s ease all;
opacity: 0;
}
.form-control-wrapper .form-control:not(.empty) ~ .floating-label {
@ -1902,13 +1662,17 @@ select[multiple].form-control.focus {
height: 2px;
background-color: #5264ae;
bottom: -1px;
transform: scaleX(0);
transition: transform 0s;
-webkit-transform: scaleX(0);
transform: scaleX(0);
-webkit-transition: -webkit-transform 0s;
transition: transform 0s;
}
.form-control-wrapper .form-control:focus ~ .material-input:before,
.form-control-wrapper .form-control.focus ~ .material-input:before {
transform: scaleX(1);
transition: transform 0.2s ease-out;
-webkit-transform: scaleX(1);
transform: scaleX(1);
-webkit-transition: -webkit-transform 0.2s ease-out;
transition: transform 0.2s ease-out;
}
.form-control-wrapper .material-input:after {
content: "";
@ -1920,7 +1684,8 @@ select[multiple].form-control.focus {
left: 0;
pointer-events: none;
opacity: 0.9;
transform-origin: left;
-webkit-transform-origin: left;
transform-origin: left;
}
.form-control-wrapper .input-lg ~ .material-input:after {
height: 26px;
@ -2356,10 +2121,12 @@ select.form-control.focus {
@keyframes input-highlight {
0% {
left: 20%;
transform: scaleX(20%);
-webkit-transform: scaleX(20%);
transform: scaleX(20%);
}
99% {
transform: scaleX(0);
-webkit-transform: scaleX(0);
transform: scaleX(0);
left: 0;
opacity: 1;
}
@ -3060,10 +2827,8 @@ fieldset[disabled] .navbar .btn-link:focus {
border-radius: 2px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
height: 0;
-moz-transition: -moz-transform 0.2s ease-in-out, opacity 0.2s ease-in, height 0 linear 0.2s, padding 0 linear 0.2s, height 0 linear 0.2s;
-webkit-transition: -webkit-transform 0.2s ease-in-out, opacity 0.2s ease-in, height 0 linear 0.2s, padding 0 linear 0.2s, height 0 linear 0.2s;
transition: transform 0.2s ease-in-out, opacity 0.2s ease-in, height 0 linear 0.2s, padding 0 linear 0.2s, height 0 linear 0.2s;
-moz-transform: translateY(200%);
-webkit-transform: translateY(200%);
transform: translateY(200%);
}
@ -3071,10 +2836,8 @@ fieldset[disabled] .navbar .btn-link:focus {
padding: 14px 15px;
margin-bottom: 20px;
height: auto;
-moz-transition: -moz-transform 0.2s ease-in-out, opacity 0.2s ease-in, height 0 linear 0.2s;
-webkit-transition: -webkit-transform 0.2s ease-in-out, opacity 0.2s ease-in, height 0 linear 0.2s;
transition: transform 0.2s ease-in-out, opacity 0.2s ease-in, height 0 linear 0.2s, height 0 linear 0.2s;
-moz-transform: none;
-webkit-transform: none;
transform: none;
}
@ -3106,7 +2869,8 @@ fieldset[disabled] .navbar .btn-link:focus {
.noUi-handle {
position: relative;
z-index: 1;
box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
-webkit-box-sizing: border-box;
}
.noUi-stacking .noUi-handle {
@ -3126,7 +2890,8 @@ fieldset[disabled] .navbar .btn-link:focus {
height: 10px;
}
.noUi-horizontal .noUi-handle {
box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
width: 12px;
height: 12px;
left: -10px;
@ -3161,7 +2926,8 @@ fieldset[disabled] .navbar .btn-link:focus {
.noUi-handle {
border-radius: 100%;
cursor: default;
transition: all 0.2s ease-out;
-webkit-transition: all 0.2s ease-out;
transition: all 0.2s ease-out;
border: 1px solid;
}
.noUi-horizontal {
@ -3169,7 +2935,8 @@ fieldset[disabled] .navbar .btn-link:focus {
margin: 15px 0;
}
.noUi-horizontal .noUi-handle:active {
transform: scale(2.5);
-webkit-transform: scale(2.5);
transform: scale(2.5);
}
[disabled].noUi-slider {
opacity: 0.5;
@ -3180,6 +2947,76 @@ fieldset[disabled] .navbar .btn-link:focus {
.slider {
background: #c8c8c8;
}
.slider.noUi-connect,
.slider-default.noUi-connect {
background-color: #4285f4;
}
.slider-primary.noUi-connect {
background-color: #4285f4;
}
.slider-success.noUi-connect {
background-color: #0f9d58;
}
.slider-info.noUi-connect {
background-color: #03a9f4;
}
.slider-warning.noUi-connect {
background-color: #ff5722;
}
.slider-danger.noUi-connect {
background-color: #f44336;
}
.slider-material-red.noUi-connect {
background-color: #f44336;
}
.slider-material-pink.noUi-connect {
background-color: #e91e63;
}
.slider-material-purple.noUi-connect {
background-color: #9c27b0;
}
.slider-material-deeppurple.noUi-connect {
background-color: #673ab7;
}
.slider-material-indigo.noUi-connect {
background-color: #3f51b5;
}
.slider-material-lightblue.noUi-connect {
background-color: #03a9f4;
}
.slider-material-cyan.noUi-connect {
background-color: #00bcd4;
}
.slider-material-teal.noUi-connect {
background-color: #009688;
}
.slider-material-lightgreen.noUi-connect {
background-color: #8bc34a;
}
.slider-material-lime.noUi-connect {
background-color: #cddc39;
}
.slider-material-lightyellow.noUi-connect {
background-color: #ffeb3b;
}
.slider-material-orange.noUi-connect {
background-color: #ff9800;
}
.slider-material-deeporange.noUi-connect {
background-color: #ff5722;
}
.slider-material-grey.noUi-connect {
background-color: #9e9e9e;
}
.slider-material-bluegrey.noUi-connect {
background-color: #607d8b;
}
.slider-material-brown.noUi-connect {
background-color: #795548;
}
.slider-material-lightgrey.noUi-connect {
background-color: #ececec;
}
.slider .noUi-connect,
.slider-default .noUi-connect {
background-color: #4285f4;

View File

@ -2946,6 +2946,76 @@ fieldset[disabled] .navbar .btn-link:focus {
.slider {
background: #c8c8c8;
}
.slider.noUi-connect,
.slider-default.noUi-connect {
background-color: #4285f4;
}
.slider-primary.noUi-connect {
background-color: #4285f4;
}
.slider-success.noUi-connect {
background-color: #0f9d58;
}
.slider-info.noUi-connect {
background-color: #03a9f4;
}
.slider-warning.noUi-connect {
background-color: #ff5722;
}
.slider-danger.noUi-connect {
background-color: #f44336;
}
.slider-material-red.noUi-connect {
background-color: #f44336;
}
.slider-material-pink.noUi-connect {
background-color: #e91e63;
}
.slider-material-purple.noUi-connect {
background-color: #9c27b0;
}
.slider-material-deeppurple.noUi-connect {
background-color: #673ab7;
}
.slider-material-indigo.noUi-connect {
background-color: #3f51b5;
}
.slider-material-lightblue.noUi-connect {
background-color: #03a9f4;
}
.slider-material-cyan.noUi-connect {
background-color: #00bcd4;
}
.slider-material-teal.noUi-connect {
background-color: #009688;
}
.slider-material-lightgreen.noUi-connect {
background-color: #8bc34a;
}
.slider-material-lime.noUi-connect {
background-color: #cddc39;
}
.slider-material-lightyellow.noUi-connect {
background-color: #ffeb3b;
}
.slider-material-orange.noUi-connect {
background-color: #ff9800;
}
.slider-material-deeporange.noUi-connect {
background-color: #ff5722;
}
.slider-material-grey.noUi-connect {
background-color: #9e9e9e;
}
.slider-material-bluegrey.noUi-connect {
background-color: #607d8b;
}
.slider-material-brown.noUi-connect {
background-color: #795548;
}
.slider-material-lightgrey.noUi-connect {
background-color: #ececec;
}
.slider .noUi-connect,
.slider-default .noUi-connect {
background-color: #4285f4;

View File

@ -2151,8 +2151,8 @@
$(function() {
$(".slider").noUiSlider({
start: 40,
connect: "lower",
range: {
connect: "lower",
min: 0,
max: 100
}

View File

@ -101,6 +101,7 @@
}
.slider {
.variations(~".noUi-connect", background-color, @primary);
.variations(~" .noUi-connect", background-color, @primary);
.variations(~" .noUi-handle", background-color, @primary);
.variations(~" .noUi-handle", border-color, @primary);