restyle of dropdown menu

This commit is contained in:
FezVrasta 2014-10-17 12:48:38 +02:00
parent 0ab8189e3f
commit ecae6e9629
9 changed files with 335 additions and 195 deletions

View File

@ -1493,20 +1493,6 @@
.icon-material-web22:before {
content: "\e7e9";
}
@-webkit-keyframes input-highlight {
0% {
left: 20%;
width: 20%;
}
99% {
width: 0;
left: 0;
opacity: 1;
}
100% {
opacity: 0;
}
}
@keyframes input-highlight {
0% {
left: 20%;
@ -1898,7 +1884,6 @@ body .jumbotron-material-lightgrey,
text-transform: uppercase;
text-decoration: none;
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);
outline: none !important;
}
@ -2008,7 +1993,6 @@ body .jumbotron-material-lightgrey,
}
.btn.btn-raised {
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);
}
.btn.btn-raised:active:not(.btn-link) {
@ -2223,7 +2207,6 @@ body .jumbotron-material-lightgrey,
border-radius: 2px;
margin: 10px 1px;
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);
}
.btn-group:active:not(.btn-link),
@ -2237,7 +2220,6 @@ 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);
-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),
@ -2272,7 +2254,6 @@ body .jumbotron-material-lightgrey,
display: block;
position: absolute;
left: 0px;
-webkit-transition-duration: 0.2s;
transition-duration: 0.2s;
}
.checkbox label .check {
@ -2303,8 +2284,6 @@ body .jumbotron-material-lightgrey,
.checkbox label .check:before {
position: absolute;
content: "";
-webkit-transform: rotate(45deg);
-ms-transform: rotate(45deg);
transform: rotate(45deg);
display: block;
margin-top: -4px;
@ -2318,7 +2297,6 @@ body .jumbotron-material-lightgrey,
0 0 0 0,
0 0 0 0,
0px 0px 0 0px inset;
-webkit-animation: checkbox-off 0.3s linear forwards;
animation: checkbox-off 0.3s linear forwards;
}
.checkbox input[type=checkbox] {
@ -2329,20 +2307,16 @@ body .jumbotron-material-lightgrey,
}
.checkbox input[type=checkbox]:checked ~ .check:before {
box-shadow: 0 0 0 10px, 10px -10px 0 10px, 32px 0px 0 20px, 0px 32px 0 20px, -5px 5px 0 10px, 20px -12px 0 11px;
-webkit-animation: checkbox-on 0.3s linear forwards;
animation: checkbox-on 0.3s linear forwards;
}
.checkbox input[type=checkbox]:not(:checked) ~ .check:after {
-webkit-animation: rippleOff 500ms linear forwards;
animation: rippleOff 500ms linear forwards;
}
.checkbox input[type=checkbox]:checked ~ .check:after {
-webkit-animation: rippleOn 500ms linear forwards;
animation: rippleOn 500ms linear forwards;
}
.checkbox:not(:hover) input[type=checkbox] ~ .check:before,
.checkbox:not(:hover) input[type=checkbox] ~ .check:after {
-webkit-animation-duration: 1ms;
animation-duration: 1ms;
}
.checkbox input[type=checkbox][disabled]:not(:checked) ~ .check:before {
@ -2350,8 +2324,6 @@ body .jumbotron-material-lightgrey,
}
.checkbox input[type=checkbox][disabled] ~ .check:after {
background-color: rgba(0, 0, 0, 0.84);
-webkit-transform: rotate(-45deg);
-ms-transform: rotate(-45deg);
transform: rotate(-45deg);
}
.checkbox input[type=checkbox]:checked ~ .check:after,
@ -2564,17 +2536,6 @@ body .jumbotron-material-lightgrey,
.checkbox-material-lightgrey input[type=checkbox]:checked ~ .check {
color: #ececec;
}
@-webkit-keyframes checkbox-on {
0% {
box-shadow: 0 0 0 10px, 10px -10px 0 10px, 32px 0px 0 20px, 0px 32px 0 20px, -5px 5px 0 10px, 15px 2px 0 11px;
}
50% {
box-shadow: 0 0 0 10px, 10px -10px 0 10px, 32px 0px 0 20px, 0px 32px 0 20px, -5px 5px 0 10px, 20px 2px 0 11px;
}
100% {
box-shadow: 0 0 0 10px, 10px -10px 0 10px, 32px 0px 0 20px, 0px 32px 0 20px, -5px 5px 0 10px, 20px -12px 0 11px;
}
}
@keyframes checkbox-on {
0% {
box-shadow: 0 0 0 10px, 10px -10px 0 10px, 32px 0px 0 20px, 0px 32px 0 20px, -5px 5px 0 10px, 15px 2px 0 11px;
@ -2586,53 +2547,6 @@ body .jumbotron-material-lightgrey,
box-shadow: 0 0 0 10px, 10px -10px 0 10px, 32px 0px 0 20px, 0px 32px 0 20px, -5px 5px 0 10px, 20px -12px 0 11px;
}
}
@-webkit-keyframes checkbox-off {
0% {
box-shadow: 0 0 0 10px, 10px -10px 0 10px, 32px 0px 0 20px, 0px 32px 0 20px, -5px 5px 0 10px, 20px -12px 0 11px, 0 0 0 0 inset;
}
25% {
box-shadow: 0 0 0 10px, 10px -10px 0 10px, 32px 0px 0 20px, 0px 32px 0 20px, -5px 5px 0 10px, 20px -12px 0 11px, 0 0 0 0 inset;
}
50% {
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
margin-top: -4px;
margin-left: 6px;
width: 0px;
height: 0px;
box-shadow: 0 0 0 10px, 10px -10px 0 10px, 32px 0px 0 20px, 0px 32px 0 20px, -5px 5px 0 10px, 15px 2px 0 11px, 0 0 0 0 inset;
}
51% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
margin-top: -2px;
margin-left: -2px;
width: 20px;
height: 20px;
box-shadow: 0 0 0 0,
0 0 0 0,
0 0 0 0,
0 0 0 0,
0 0 0 0,
0 0 0 0,
0px 0px 0 10px inset;
}
100% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
margin-top: -2px;
margin-left: -2px;
width: 20px;
height: 20px;
box-shadow: 0 0 0 0,
0 0 0 0,
0 0 0 0,
0 0 0 0,
0 0 0 0,
0 0 0 0,
0px 0px 0 0px inset;
}
}
@keyframes checkbox-off {
0% {
box-shadow: 0 0 0 10px, 10px -10px 0 10px, 32px 0px 0 20px, 0px 32px 0 20px, -5px 5px 0 10px, 20px -12px 0 11px, 0 0 0 0 inset;
@ -2641,7 +2555,6 @@ body .jumbotron-material-lightgrey,
box-shadow: 0 0 0 10px, 10px -10px 0 10px, 32px 0px 0 20px, 0px 32px 0 20px, -5px 5px 0 10px, 20px -12px 0 11px, 0 0 0 0 inset;
}
50% {
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
margin-top: -4px;
margin-left: 6px;
@ -2650,7 +2563,6 @@ body .jumbotron-material-lightgrey,
box-shadow: 0 0 0 10px, 10px -10px 0 10px, 32px 0px 0 20px, 0px 32px 0 20px, -5px 5px 0 10px, 15px 2px 0 11px, 0 0 0 0 inset;
}
51% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
margin-top: -2px;
margin-left: -2px;
@ -2665,7 +2577,6 @@ body .jumbotron-material-lightgrey,
0px 0px 0 10px inset;
}
100% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
margin-top: -2px;
margin-left: -2px;
@ -2693,7 +2604,6 @@ body .jumbotron-material-lightgrey,
position: absolute;
left: 10px;
top: 2px;
-webkit-transition-duration: 0.2s;
transition-duration: 0.2s;
}
.radio label .circle {
@ -2707,8 +2617,6 @@ body .jumbotron-material-lightgrey,
width: 15px;
border-radius: 100%;
background-color: rgba(0, 0, 0, 0.84);
-webkit-transform: scale(0);
-ms-transform: scale(0);
transform: scale(0);
}
.radio label .check:after {
@ -2724,16 +2632,12 @@ body .jumbotron-material-lightgrey,
z-index: 1;
opacity: 0;
margin: 0;
-webkit-transform: scale(1.5);
-ms-transform: scale(1.5);
transform: scale(1.5);
}
.radio label input[type=radio]:not(:checked) ~ .check:after {
-webkit-animation: rippleOff 500ms;
animation: rippleOff 500ms;
}
.radio label input[type=radio]:checked ~ .check:after {
-webkit-animation: rippleOn 500ms;
animation: rippleOn 500ms;
}
.radio input[type=radio]:checked ~ .check,
@ -2884,8 +2788,6 @@ body .jumbotron-material-lightgrey,
display: none;
}
.radio input[type=radio]:checked ~ .check {
-webkit-transform: scale(0.55);
-ms-transform: scale(0.55);
transform: scale(0.55);
}
.radio input[type=radio][disabled] ~ .circle {
@ -2894,17 +2796,6 @@ body .jumbotron-material-lightgrey,
.radio input[type=radio][disabled] ~ .check {
background-color: rgba(0, 0, 0, 0.84);
}
@-webkit-keyframes rippleOn {
0% {
opacity: 0;
}
50% {
opacity: 0.2;
}
100% {
opacity: 0;
}
}
@keyframes rippleOn {
0% {
opacity: 0;
@ -2916,17 +2807,6 @@ body .jumbotron-material-lightgrey,
opacity: 0;
}
}
@-webkit-keyframes rippleOff {
0% {
opacity: 0;
}
50% {
opacity: 0.2;
}
100% {
opacity: 0;
}
}
@keyframes rippleOff {
0% {
opacity: 0;
@ -3000,7 +2880,6 @@ select[multiple].form-control.focus {
pointer-events: none;
left: 0px;
top: 5px;
-webkit-transition: 0.2s ease all;
transition: 0.2s ease all;
opacity: 0;
}
@ -3034,18 +2913,12 @@ select[multiple].form-control.focus {
height: 2px;
background-color: #5264ae;
bottom: -1px;
-webkit-transform: scaleX(0);
-ms-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 {
-webkit-transform: scaleX(1);
-ms-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 {
@ -3058,8 +2931,6 @@ select[multiple].form-control.focus {
left: 0;
pointer-events: none;
opacity: 0.9;
-webkit-transform-origin: left;
-ms-transform-origin: left;
transform-origin: left;
}
.form-control-wrapper .input-lg ~ .material-input:after {
@ -3073,9 +2944,7 @@ select[multiple].form-control.focus {
}
.form-control-wrapper .form-control:focus ~ .material-input:after,
.form-control-wrapper .form-control.focus ~ .material-input:after {
-webkit-animation: input-highlight 0.3s ease;
animation: input-highlight 0.3s ease;
-webkit-animation-fill-mode: forwards;
animation-fill-mode: forwards;
opacity: 0;
}
@ -3496,11 +3365,9 @@ select.form-control.focus {
@keyframes input-highlight {
0% {
left: 20%;
-webkit-transform: scaleX(20%);
transform: scaleX(20%);
}
99% {
-webkit-transform: scaleX(0);
transform: scaleX(0);
left: 0;
opacity: 1;
@ -3888,7 +3755,78 @@ fieldset[disabled] .navbar .btn-link:focus {
position: relative;
}
.dropdown-menu li a:hover {
background: rgba(0, 0, 0, 0.08);
background-color: transparent;
color: #4285f4;
}
.dropdown-menu li a:hover,
.dropdown-menu-default li a:hover {
color: #4285f4;
}
.dropdown-menu-primary li a:hover {
color: #4285f4;
}
.dropdown-menu-success li a:hover {
color: #0f9d58;
}
.dropdown-menu-info li a:hover {
color: #03a9f4;
}
.dropdown-menu-warning li a:hover {
color: #ff5722;
}
.dropdown-menu-danger li a:hover {
color: #f44336;
}
.dropdown-menu-material-red li a:hover {
color: #f44336;
}
.dropdown-menu-material-pink li a:hover {
color: #e91e63;
}
.dropdown-menu-material-purple li a:hover {
color: #9c27b0;
}
.dropdown-menu-material-deeppurple li a:hover {
color: #673ab7;
}
.dropdown-menu-material-indigo li a:hover {
color: #3f51b5;
}
.dropdown-menu-material-lightblue li a:hover {
color: #03a9f4;
}
.dropdown-menu-material-cyan li a:hover {
color: #00bcd4;
}
.dropdown-menu-material-teal li a:hover {
color: #009688;
}
.dropdown-menu-material-lightgreen li a:hover {
color: #8bc34a;
}
.dropdown-menu-material-lime li a:hover {
color: #cddc39;
}
.dropdown-menu-material-lightyellow li a:hover {
color: #ffeb3b;
}
.dropdown-menu-material-orange li a:hover {
color: #ff9800;
}
.dropdown-menu-material-deeporange li a:hover {
color: #ff5722;
}
.dropdown-menu-material-grey li a:hover {
color: #9e9e9e;
}
.dropdown-menu-material-bluegrey li a:hover {
color: #607d8b;
}
.dropdown-menu-material-brown li a:hover {
color: #795548;
}
.dropdown-menu-material-lightgrey li a:hover {
color: #ececec;
}
.alert {
border: 0px;
@ -4302,20 +4240,14 @@ 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;
-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;
-webkit-transform: translateY(200%);
-ms-transform: translateY(200%);
transform: translateY(200%);
}
.snackbar.snackbar-opened {
padding: 14px 15px;
margin-bottom: 20px;
height: auto;
-webkit-transition: -webkit-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;
-webkit-transform: none;
-ms-transform: none;
transform: none;
}
.snackbar.toast {
@ -4325,9 +4257,6 @@ fieldset[disabled] .navbar .btn-link:focus {
.noUi-target * {
-webkit-touch-callout: none;
-ms-touch-action: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
box-sizing: border-box;
}
@ -4355,7 +4284,6 @@ fieldset[disabled] .navbar .btn-link:focus {
*z-index: -1;
}
.noUi-state-tap .noUi-origin {
-webkit-transition: left 0.3s, top 0.3s;
transition: left 0.3s, top 0.3s;
}
.noUi-state-drag * {
@ -4400,7 +4328,6 @@ fieldset[disabled] .navbar .btn-link:focus {
.noUi-handle {
border-radius: 100%;
cursor: default;
-webkit-transition: all 0.2s ease-out;
transition: all 0.2s ease-out;
border: 1px solid;
}
@ -4409,8 +4336,6 @@ fieldset[disabled] .navbar .btn-link:focus {
margin: 15px 0;
}
.noUi-horizontal .noUi-handle.noUi-active {
-webkit-transform: scale(2.5);
-ms-transform: scale(2.5);
transform: scale(2.5);
}
[disabled].noUi-slider {

File diff suppressed because one or more lines are too long

73
dist/css/material.css vendored
View File

@ -3887,7 +3887,78 @@ fieldset[disabled] .navbar .btn-link:focus {
position: relative;
}
.dropdown-menu li a:hover {
background: rgba(0, 0, 0, 0.08);
background-color: transparent;
color: #4285f4;
}
.dropdown-menu li a:hover,
.dropdown-menu-default li a:hover {
color: #4285f4;
}
.dropdown-menu-primary li a:hover {
color: #4285f4;
}
.dropdown-menu-success li a:hover {
color: #0f9d58;
}
.dropdown-menu-info li a:hover {
color: #03a9f4;
}
.dropdown-menu-warning li a:hover {
color: #ff5722;
}
.dropdown-menu-danger li a:hover {
color: #f44336;
}
.dropdown-menu-material-red li a:hover {
color: #f44336;
}
.dropdown-menu-material-pink li a:hover {
color: #e91e63;
}
.dropdown-menu-material-purple li a:hover {
color: #9c27b0;
}
.dropdown-menu-material-deeppurple li a:hover {
color: #673ab7;
}
.dropdown-menu-material-indigo li a:hover {
color: #3f51b5;
}
.dropdown-menu-material-lightblue li a:hover {
color: #03a9f4;
}
.dropdown-menu-material-cyan li a:hover {
color: #00bcd4;
}
.dropdown-menu-material-teal li a:hover {
color: #009688;
}
.dropdown-menu-material-lightgreen li a:hover {
color: #8bc34a;
}
.dropdown-menu-material-lime li a:hover {
color: #cddc39;
}
.dropdown-menu-material-lightyellow li a:hover {
color: #ffeb3b;
}
.dropdown-menu-material-orange li a:hover {
color: #ff9800;
}
.dropdown-menu-material-deeporange li a:hover {
color: #ff5722;
}
.dropdown-menu-material-grey li a:hover {
color: #9e9e9e;
}
.dropdown-menu-material-bluegrey li a:hover {
color: #607d8b;
}
.dropdown-menu-material-brown li a:hover {
color: #795548;
}
.dropdown-menu-material-lightgrey li a:hover {
color: #ececec;
}
.alert {
border: 0px;

File diff suppressed because one or more lines are too long

View File

@ -63,9 +63,11 @@ legend {
overflow: hidden;
position: relative;
a:hover {
background: rgba(0,0,0,0.08);
background-color: transparent;
color: @primary;
}
}
.variations(~" li a:hover", color, @primary);
}
// Alerts

View File

@ -3888,7 +3888,78 @@ fieldset[disabled] .navbar .btn-link:focus {
position: relative;
}
.dropdown-menu li a:hover {
background: rgba(0, 0, 0, 0.08);
background-color: transparent;
color: #4285f4;
}
.dropdown-menu li a:hover,
.dropdown-menu-default li a:hover {
color: #4285f4;
}
.dropdown-menu-primary li a:hover {
color: #4285f4;
}
.dropdown-menu-success li a:hover {
color: #0f9d58;
}
.dropdown-menu-info li a:hover {
color: #03a9f4;
}
.dropdown-menu-warning li a:hover {
color: #ff5722;
}
.dropdown-menu-danger li a:hover {
color: #f44336;
}
.dropdown-menu-material-red li a:hover {
color: #f44336;
}
.dropdown-menu-material-pink li a:hover {
color: #e91e63;
}
.dropdown-menu-material-purple li a:hover {
color: #9c27b0;
}
.dropdown-menu-material-deeppurple li a:hover {
color: #673ab7;
}
.dropdown-menu-material-indigo li a:hover {
color: #3f51b5;
}
.dropdown-menu-material-lightblue li a:hover {
color: #03a9f4;
}
.dropdown-menu-material-cyan li a:hover {
color: #00bcd4;
}
.dropdown-menu-material-teal li a:hover {
color: #009688;
}
.dropdown-menu-material-lightgreen li a:hover {
color: #8bc34a;
}
.dropdown-menu-material-lime li a:hover {
color: #cddc39;
}
.dropdown-menu-material-lightyellow li a:hover {
color: #ffeb3b;
}
.dropdown-menu-material-orange li a:hover {
color: #ff9800;
}
.dropdown-menu-material-deeporange li a:hover {
color: #ff5722;
}
.dropdown-menu-material-grey li a:hover {
color: #9e9e9e;
}
.dropdown-menu-material-bluegrey li a:hover {
color: #607d8b;
}
.dropdown-menu-material-brown li a:hover {
color: #795548;
}
.dropdown-menu-material-lightgrey li a:hover {
color: #ececec;
}
.alert {
border: 0px;

File diff suppressed because one or more lines are too long

View File

@ -3887,7 +3887,78 @@ fieldset[disabled] .navbar .btn-link:focus {
position: relative;
}
.dropdown-menu li a:hover {
background: rgba(0, 0, 0, 0.08);
background-color: transparent;
color: #4285f4;
}
.dropdown-menu li a:hover,
.dropdown-menu-default li a:hover {
color: #4285f4;
}
.dropdown-menu-primary li a:hover {
color: #4285f4;
}
.dropdown-menu-success li a:hover {
color: #0f9d58;
}
.dropdown-menu-info li a:hover {
color: #03a9f4;
}
.dropdown-menu-warning li a:hover {
color: #ff5722;
}
.dropdown-menu-danger li a:hover {
color: #f44336;
}
.dropdown-menu-material-red li a:hover {
color: #f44336;
}
.dropdown-menu-material-pink li a:hover {
color: #e91e63;
}
.dropdown-menu-material-purple li a:hover {
color: #9c27b0;
}
.dropdown-menu-material-deeppurple li a:hover {
color: #673ab7;
}
.dropdown-menu-material-indigo li a:hover {
color: #3f51b5;
}
.dropdown-menu-material-lightblue li a:hover {
color: #03a9f4;
}
.dropdown-menu-material-cyan li a:hover {
color: #00bcd4;
}
.dropdown-menu-material-teal li a:hover {
color: #009688;
}
.dropdown-menu-material-lightgreen li a:hover {
color: #8bc34a;
}
.dropdown-menu-material-lime li a:hover {
color: #cddc39;
}
.dropdown-menu-material-lightyellow li a:hover {
color: #ffeb3b;
}
.dropdown-menu-material-orange li a:hover {
color: #ff9800;
}
.dropdown-menu-material-deeporange li a:hover {
color: #ff5722;
}
.dropdown-menu-material-grey li a:hover {
color: #9e9e9e;
}
.dropdown-menu-material-bluegrey li a:hover {
color: #607d8b;
}
.dropdown-menu-material-brown li a:hover {
color: #795548;
}
.dropdown-menu-material-lightgrey li a:hover {
color: #ececec;
}
.alert {
border: 0px;

File diff suppressed because one or more lines are too long