This commit is contained in:
FezVrasta 2014-09-07 13:47:25 +02:00
parent 4dede088d5
commit fe9f214440

View File

@ -14,6 +14,20 @@
opacity: 0; opacity: 0;
} }
} }
@-moz-keyframes input-highlight {
0% {
left: 20%;
width: 20%;
}
99% {
width: 0;
left: 0;
opacity: 1;
}
100% {
opacity: 0;
}
}
@keyframes input-highlight { @keyframes input-highlight {
0% { 0% {
left: 20%; left: 20%;
@ -81,7 +95,6 @@ h6,
text-transform: uppercase; text-transform: uppercase;
text-decoration: none; text-decoration: none;
color: rgba(255, 255, 255, 0.84); color: rgba(255, 255, 255, 0.84);
-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); transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
outline: none !important; outline: none !important;
} }
@ -180,7 +193,6 @@ h6,
} }
.btn-raised { .btn-raised {
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23); box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
-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); transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
} }
.btn-raised:active:not(.btn-link) { .btn-raised:active:not(.btn-link) {
@ -268,7 +280,6 @@ h6,
border-radius: 4px; border-radius: 4px;
margin: 10px 1px; margin: 10px 1px;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23); box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
-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); transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
} }
.btn-group:active:not(.btn-link), .btn-group:active:not(.btn-link),
@ -282,7 +293,6 @@ h6,
.btn-group.btn-group-raised, .btn-group.btn-group-raised,
.btn-group-vertical.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); box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
-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); transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
} }
.btn-group.btn-group-raised:active:not(.btn-link), .btn-group.btn-group-raised:active:not(.btn-link),
@ -428,52 +438,27 @@ h6,
display: block; display: block;
position: absolute; position: absolute;
left: 10px; left: 10px;
-webkit-transition-duration: 0.2s;
transition-duration: 0.2s; transition-duration: 0.2s;
} }
.checkbox label .ripple { .checkbox label .ripple {
background-color: rgba(0, 0, 0, 0.84); background-color: rgba(0, 0, 0, 0.84);
left: 0; left: -5px;
top: -10px; top: -15px;
height: 40px; height: 50px;
width: 40px; width: 50px;
border-radius: 100%; border-radius: 100%;
-webkit-transform: scale(0);
-ms-transform: scale(0);
transform: scale(0);
-webkit-transition: -webkit-transform .1s, opacity 0.2s 0.4s;
transition: transform .1s, opacity 0.2s 0.4s;
z-index: 1; z-index: 1;
opacity: 0.2;
margin: 0;
}
.checkbox label .ripple.animate {
-webkit-transform: scale(1);
-ms-transform: scale(1);
transform: scale(1);
opacity: 0; opacity: 0;
margin: 0;
} }
.checkbox label .box { .checkbox label .box {
border: 2px solid rgba(0, 0, 0, 0.84); border: 2px solid rgba(0, 0, 0, 0.84);
height: 20px; height: 20px;
width: 20px; width: 20px;
-webkit-transition-delay: 0.2s; -webkit-transition-delay: 0.2s;
transition-delay: 0.2s; -moz-transition-delay: 0.2s;
} -o-transition-delay: 0.2s;
.checkbox label .check { -ms-transition-delay: 0.2s;
top: -4px;
left: 16px;
width: 12px;
height: 24px;
border: 2px solid;
border-top: none;
border-left: none;
opacity: 0;
z-index: 888;
-webkit-transform: rotate(45deg);
-ms-transform: rotate(45deg);
transform: rotate(45deg);
-webkit-transition-delay: 0.2s;
transition-delay: 0.2s; transition-delay: 0.2s;
} }
.checkbox .check, .checkbox .check,
@ -546,21 +531,49 @@ h6,
.checkbox-material-lightgrey .check { .checkbox-material-lightgrey .check {
color: #ececec; color: #ececec;
} }
.checkbox input[type=checkbox][disabled]:checked ~ .check, .checkbox input[type=checkbox] {
display: none;
}
.checkbox input[type=checkbox] ~ .box {
position: absolute;
top: 0px;
left: 0px;
width: 18px;
height: 18px;
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]:checked ~ .box {
-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) ~ .ripple {
-webkit-animation: rippleOff 500ms;
-moz-animation: rippleOff 500ms;
-ms-animation: rippleOff 500ms;
-o-animation: rippleOff 500ms;
animation: rippleOff 500ms;
}
.checkbox input[type=checkbox]:checked ~ .ripple {
-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) ~ .box { .checkbox input[type=checkbox][disabled]:not(:checked) ~ .box {
opacity: 0.5; opacity: 0.5;
} }
.checkbox input[type=checkbox][disabled] ~ .ripple { .checkbox input[type=checkbox][disabled] ~ .ripple {
opacity: 0.1; background-color: rgba(0, 0, 0, 0.84);
}
.checkbox input[type=checkbox] {
display: none;
}
.checkbox input[type=checkbox]:checked ~ .box {
opacity: 0;
-webkit-transform: scale(0) rotate(-180deg);
-ms-transform: scale(0) rotate(-180deg);
transform: scale(0) rotate(-180deg);
} }
.checkbox input[type=checkbox]:checked ~ .ripple, .checkbox input[type=checkbox]:checked ~ .ripple,
.checkbox-default input[type=checkbox]:checked ~ .ripple { .checkbox-default input[type=checkbox]:checked ~ .ripple {
@ -632,14 +645,375 @@ h6,
.checkbox-material-lightgrey input[type=checkbox]:checked ~ .ripple { .checkbox-material-lightgrey input[type=checkbox]:checked ~ .ripple {
background-color: #ececec; background-color: #ececec;
} }
.checkbox input[type=checkbox]:checked ~ .check { @-webkit-keyframes uncheck {
opacity: 1; 0% {
-webkit-transform: scale(1) rotate(45deg); top: -3px;
-ms-transform: scale(1) rotate(45deg); left: 17px;
transform: scale(1) rotate(45deg); width: 10px;
height: 21px;
border-color: #0f9d58;
border-left-color: transparent;
border-top-color: transparent;
transform: rotate(45deg);
}
50% {
top: 14px;
left: 17px;
width: 4px;
height: 4px;
transform: rotate(45deg);
border-color: #0f9d58;
border-left-color: transparent;
border-top-color: transparent;
}
51% {
border-color: #5a5a5a;
border-left-color: #5a5a5a;
border-top-color: #5a5a5a;
}
100% {
top: 1px;
left: 12px;
width: 18px;
height: 18px;
transform: rotate(0deg);
border-color: #5a5a5a;
border-left-color: #5a5a5a;
border-top-color: #5a5a5a;
}
} }
.checkbox input[type=checkbox][disabled] ~ .ripple { .keyframe-check 100% {
background-color: rgba(0, 0, 0, 0.84); top: -3px;
left: 17px;
width: 10px;
height: 21px;
transform: rotate(45deg);
border-color: #0f9d58;
border-left-color: transparent;
border-top-color: transparent;
}
.keyframe-check 51% {
border-left: transparent;
border-top-color: transparent;
}
.keyframe-check 50% {
top: 14px;
left: 17px;
width: 4px;
height: 4px;
transform: rotate(45deg);
border-color: #5a5a5a;
border-left-color: #5a5a5a;
border-top-color: #5a5a5a;
}
.keyframe-check 0% {
top: 1px;
left: 12px;
width: 18px;
height: 18px;
transform: rotate(0deg);
border-color: #5a5a5a;
border-left-color: #5a5a5a;
border-top-color: #5a5a5a;
}
@-webkit-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;
}
}
@-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);
border-color: #5a5a5a;
border-left-color: #5a5a5a;
border-top-color: #5a5a5a;
}
}
@-ms-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;
}
}
@-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);
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;
}
}
.ripple 0% {
opacity: 0;
}
.ripple 50% {
opacity: 0.2;
}
.ripple 100% {
opacity: 0;
}
@-webkit-keyframes rippleOn {
0% {
opacity: 0;
}
50% {
opacity: 0.2;
}
100% {
opacity: 0;
}
}
@-moz-keyframes rippleOn {
0% {
opacity: 0;
}
50% {
opacity: 0.2;
}
100% {
opacity: 0;
}
}
@-ms-keyframes rippleOn {
0% {
opacity: 0;
}
50% {
opacity: 0.2;
}
100% {
opacity: 0;
}
}
@-o-keyframes rippleOn {
0% {
opacity: 0;
}
50% {
opacity: 0.2;
}
100% {
opacity: 0;
}
}
@keyframes rippleOn {
0% {
opacity: 0;
}
50% {
opacity: 0.2;
}
100% {
opacity: 0;
}
}
@-webkit-keyframes rippleOff {
0% {
opacity: 0;
}
50% {
opacity: 0.2;
}
100% {
opacity: 0;
}
}
@-moz-keyframes rippleOff {
0% {
opacity: 0;
}
50% {
opacity: 0.2;
}
100% {
opacity: 0;
}
}
@-ms-keyframes rippleOn {
0% {
opacity: 0;
}
50% {
opacity: 0.2;
}
100% {
opacity: 0;
}
}
@-o-keyframes rippleOff {
0% {
opacity: 0;
}
50% {
opacity: 0.2;
}
100% {
opacity: 0;
}
}
@keyframes rippleOff {
0% {
opacity: 0;
}
50% {
opacity: 0.2;
}
100% {
opacity: 0;
}
} }
.form-horizontal .radio { .form-horizontal .radio {
margin-bottom: 10px; margin-bottom: 10px;
@ -654,7 +1028,6 @@ h6,
position: absolute; position: absolute;
left: 10px; left: 10px;
top: 2px; top: 2px;
-webkit-transition-duration: 0.2s;
transition-duration: 0.2s; transition-duration: 0.2s;
} }
.radio label .ripple { .radio label .ripple {
@ -664,18 +1037,13 @@ h6,
height: 34px; height: 34px;
width: 34px; width: 34px;
border-radius: 100%; border-radius: 100%;
-webkit-transform: scale(0);
-ms-transform: scale(0);
transform: scale(0); transform: scale(0);
-webkit-transition: -webkit-transform .1s, opacity 0.2s 0.4s;
transition: transform .1s, opacity 0.2s 0.4s; transition: transform .1s, opacity 0.2s 0.4s;
z-index: 1; z-index: 1;
opacity: 0.2; opacity: 0.2;
margin: 0; margin: 0;
} }
.radio label .ripple.animate { .radio label .ripple.animate {
-webkit-transform: scale(1);
-ms-transform: scale(1);
transform: scale(1); transform: scale(1);
opacity: 0; opacity: 0;
} }
@ -690,8 +1058,6 @@ h6,
width: 15px; width: 15px;
border-radius: 100%; border-radius: 100%;
background-color: rgba(0, 0, 0, 0.84); background-color: rgba(0, 0, 0, 0.84);
-webkit-transform: scale(0);
-ms-transform: scale(0);
transform: scale(0); transform: scale(0);
} }
.radio input[type=radio]:checked ~ .check, .radio input[type=radio]:checked ~ .check,
@ -842,8 +1208,6 @@ h6,
display: none; display: none;
} }
.radio input[type=radio]:checked ~ .check { .radio input[type=radio]:checked ~ .check {
-webkit-transform: scale(0.55);
-ms-transform: scale(0.55);
transform: scale(0.55); transform: scale(0.55);
} }
.radio input[type=radio][disabled] ~ .circle { .radio input[type=radio][disabled] ~ .circle {
@ -852,12 +1216,10 @@ h6,
.radio input[type=radio][disabled] ~ .check { .radio input[type=radio][disabled] ~ .check {
background-color: rgba(0, 0, 0, 0.84); background-color: rgba(0, 0, 0, 0.84);
} }
.form-control-wrapper {
position: relative;
/* active state */
}
.form-control-wrapper .form-control, .form-control-wrapper .form-control,
.form-control-wrapper .form-control:focus { .form-control,
.form-control-wrapper .form-control:focus,
.form-control:focus {
float: none; float: none;
border: 0; border: 0;
box-shadow: none; box-shadow: none;
@ -865,6 +1227,16 @@ h6,
background: transparent; background: transparent;
border-bottom: 1px solid #757575; border-bottom: 1px solid #757575;
} }
.form-control-wrapper .form-control:disabled,
.form-control:disabled,
.form-control-wrapper .form-control:focus:disabled,
.form-control:focus:disabled {
border-style: dashed;
}
.form-control-wrapper {
position: relative;
/* active state */
}
.form-control-wrapper .form-control:focus { .form-control-wrapper .form-control:focus {
outline: none; outline: none;
} }
@ -875,7 +1247,6 @@ h6,
pointer-events: none; pointer-events: none;
left: 12px; left: 12px;
top: 7px; top: 7px;
-webkit-transition: 0.2s ease all;
transition: 0.2s ease all; transition: 0.2s ease all;
opacity: 0; opacity: 0;
} }
@ -910,17 +1281,11 @@ h6,
height: 2px; height: 2px;
background-color: #5264ae; background-color: #5264ae;
bottom: -1px; bottom: -1px;
-webkit-transform: scaleX(0);
-ms-transform: scaleX(0);
transform: scaleX(0); transform: scaleX(0);
-webkit-transition: -webkit-transform 0s;
transition: transform 0s; transition: transform 0s;
} }
.form-control-wrapper .form-control:focus ~ .material-input:before { .form-control-wrapper .form-control:focus ~ .material-input:before {
-webkit-transform: scaleX(1);
-ms-transform: scaleX(1);
transform: scaleX(1); transform: scaleX(1);
-webkit-transition: -webkit-transform 0.2s ease-out;
transition: transform 0.2s ease-out; transition: transform 0.2s ease-out;
} }
.form-control-wrapper .material-input:after { .form-control-wrapper .material-input:after {
@ -1728,7 +2093,8 @@ fieldset[disabled] .navbar .btn-link:hover,
fieldset[disabled] .navbar .btn-link:focus { fieldset[disabled] .navbar .btn-link:focus {
color: #e5e5e5; color: #e5e5e5;
} }
.navbar .navbar-form .form-control-wrapper .form-control { .navbar .navbar-form .form-control-wrapper .form-control,
.navbar .navbar-form .form-control {
border-color: rgba(255, 255, 255, 0.84); border-color: rgba(255, 255, 255, 0.84);
color: rgba(255, 255, 255, 0.84); color: rgba(255, 255, 255, 0.84);
} }
@ -2153,20 +2519,22 @@ fieldset[disabled] .navbar .btn-link:focus {
border-radius: 2px; border-radius: 2px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
height: 0; 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; -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; 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%); -webkit-transform: translateY(200%);
-ms-transform: translateY(200%);
transform: translateY(200%); transform: translateY(200%);
} }
.snackbar.snackbar-opened { .snackbar.snackbar-opened {
padding: 14px 15px; padding: 14px 15px;
margin-bottom: 20px; margin-bottom: 20px;
height: auto; 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; -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; 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; -webkit-transform: none;
-ms-transform: none;
transform: none; transform: none;
} }
.snackbar.toast { .snackbar.toast {
@ -2197,7 +2565,6 @@ fieldset[disabled] .navbar .btn-link:focus {
.noUi-handle { .noUi-handle {
position: relative; position: relative;
z-index: 1; z-index: 1;
-moz-box-sizing: border-box;
box-sizing: border-box; box-sizing: border-box;
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;
} }
@ -2218,7 +2585,6 @@ fieldset[disabled] .navbar .btn-link:focus {
height: 10px; height: 10px;
} }
.noUi-horizontal .noUi-handle { .noUi-horizontal .noUi-handle {
-moz-box-sizing: border-box;
box-sizing: border-box; box-sizing: border-box;
width: 12px; width: 12px;
height: 12px; height: 12px;
@ -2253,13 +2619,10 @@ fieldset[disabled] .navbar .btn-link:focus {
.noUi-handle { .noUi-handle {
border-radius: 100%; border-radius: 100%;
cursor: default; cursor: default;
-webkit-transition: all 0.2s ease-out;
transition: all 0.2s ease-out; transition: all 0.2s ease-out;
border: 1px solid; border: 1px solid;
} }
.noUi-horizontal .noUi-handle:active { .noUi-horizontal .noUi-handle:active {
-webkit-transform: scale(2.5);
-ms-transform: scale(2.5);
transform: scale(2.5); transform: scale(2.5);
} }
[disabled].noUi-slider { [disabled].noUi-slider {