fixed some togglebutton selector

This commit is contained in:
FezVrasta 2015-03-16 14:41:16 +01:00
parent 2ec73932f5
commit a4372ffcc5
7 changed files with 364 additions and 364 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

62
dist/css/material.css vendored
View File

@ -4154,8 +4154,8 @@ body .jumbotron-material-blue-grey,
.togglebutton label input[type=checkbox][disabled]:checked:first-of-type + .toggle:after {
background-color: #BDBDBD;
}
.togglebutton label input[type=checkbox]:first-of-type ~ .toggle:active:after,
.togglebutton label input[type=checkbox][disabled]:first-of-type ~ .toggle:active:after {
.togglebutton label input[type=checkbox]:first-of-type + .toggle:active:after,
.togglebutton label input[type=checkbox][disabled]:first-of-type + .toggle:active:after {
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(0, 0, 0, 0.1);
}
.togglebutton label input[type=checkbox]:first-of-type:checked + .toggle:after {
@ -4331,89 +4331,89 @@ body .jumbotron-material-blue-grey,
.togglebutton-material-blue-grey label input[type=checkbox]:first-of-type:checked + .toggle:after {
background-color: #607d8b;
}
.togglebutton label input[type=checkbox]:first-of-type:checked ~ .toggle:active:after,
.togglebutton-default label input[type=checkbox]:first-of-type:checked ~ .toggle:active:after {
.togglebutton label input[type=checkbox]:first-of-type:checked + .toggle:active:after,
.togglebutton-default label input[type=checkbox]:first-of-type:checked + .toggle:active:after {
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(0, 149, 135, 0.1);
}
.togglebutton-black label input[type=checkbox]:first-of-type:checked ~ .toggle:active:after {
.togglebutton-black label input[type=checkbox]:first-of-type:checked + .toggle:active:after {
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(0, 0, 0, 0.1);
}
.togglebutton-white label input[type=checkbox]:first-of-type:checked ~ .toggle:active:after {
.togglebutton-white label input[type=checkbox]:first-of-type:checked + .toggle:active:after {
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(255, 255, 255, 0.1);
}
.togglebutton-inverse label input[type=checkbox]:first-of-type:checked ~ .toggle:active:after {
.togglebutton-inverse label input[type=checkbox]:first-of-type:checked + .toggle:active:after {
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(63, 81, 181, 0.1);
}
.togglebutton-primary label input[type=checkbox]:first-of-type:checked ~ .toggle:active:after {
.togglebutton-primary label input[type=checkbox]:first-of-type:checked + .toggle:active:after {
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(0, 149, 135, 0.1);
}
.togglebutton-success label input[type=checkbox]:first-of-type:checked ~ .toggle:active:after {
.togglebutton-success label input[type=checkbox]:first-of-type:checked + .toggle:active:after {
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(15, 157, 88, 0.1);
}
.togglebutton-info label input[type=checkbox]:first-of-type:checked ~ .toggle:active:after {
.togglebutton-info label input[type=checkbox]:first-of-type:checked + .toggle:active:after {
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(3, 169, 244, 0.1);
}
.togglebutton-warning label input[type=checkbox]:first-of-type:checked ~ .toggle:active:after {
.togglebutton-warning label input[type=checkbox]:first-of-type:checked + .toggle:active:after {
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(255, 87, 34, 0.1);
}
.togglebutton-danger label input[type=checkbox]:first-of-type:checked ~ .toggle:active:after {
.togglebutton-danger label input[type=checkbox]:first-of-type:checked + .toggle:active:after {
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(244, 67, 54, 0.1);
}
.togglebutton-material-red label input[type=checkbox]:first-of-type:checked ~ .toggle:active:after {
.togglebutton-material-red label input[type=checkbox]:first-of-type:checked + .toggle:active:after {
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(244, 67, 54, 0.1);
}
.togglebutton-material-pink label input[type=checkbox]:first-of-type:checked ~ .toggle:active:after {
.togglebutton-material-pink label input[type=checkbox]:first-of-type:checked + .toggle:active:after {
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(233, 30, 99, 0.1);
}
.togglebutton-material-purple label input[type=checkbox]:first-of-type:checked ~ .toggle:active:after {
.togglebutton-material-purple label input[type=checkbox]:first-of-type:checked + .toggle:active:after {
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(156, 39, 176, 0.1);
}
.togglebutton-material-deep-purple label input[type=checkbox]:first-of-type:checked ~ .toggle:active:after {
.togglebutton-material-deep-purple label input[type=checkbox]:first-of-type:checked + .toggle:active:after {
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(103, 58, 183, 0.1);
}
.togglebutton-material-indigo label input[type=checkbox]:first-of-type:checked ~ .toggle:active:after {
.togglebutton-material-indigo label input[type=checkbox]:first-of-type:checked + .toggle:active:after {
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(63, 81, 181, 0.1);
}
.togglebutton-material-blue label input[type=checkbox]:first-of-type:checked ~ .toggle:active:after {
.togglebutton-material-blue label input[type=checkbox]:first-of-type:checked + .toggle:active:after {
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(33, 150, 243, 0.1);
}
.togglebutton-material-light-blue label input[type=checkbox]:first-of-type:checked ~ .toggle:active:after {
.togglebutton-material-light-blue label input[type=checkbox]:first-of-type:checked + .toggle:active:after {
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(3, 169, 244, 0.1);
}
.togglebutton-material-cyan label input[type=checkbox]:first-of-type:checked ~ .toggle:active:after {
.togglebutton-material-cyan label input[type=checkbox]:first-of-type:checked + .toggle:active:after {
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(0, 188, 212, 0.1);
}
.togglebutton-material-teal label input[type=checkbox]:first-of-type:checked ~ .toggle:active:after {
.togglebutton-material-teal label input[type=checkbox]:first-of-type:checked + .toggle:active:after {
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(0, 150, 136, 0.1);
}
.togglebutton-material-green label input[type=checkbox]:first-of-type:checked ~ .toggle:active:after {
.togglebutton-material-green label input[type=checkbox]:first-of-type:checked + .toggle:active:after {
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(76, 175, 80, 0.1);
}
.togglebutton-material-light-green label input[type=checkbox]:first-of-type:checked ~ .toggle:active:after {
.togglebutton-material-light-green label input[type=checkbox]:first-of-type:checked + .toggle:active:after {
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(139, 195, 74, 0.1);
}
.togglebutton-material-lime label input[type=checkbox]:first-of-type:checked ~ .toggle:active:after {
.togglebutton-material-lime label input[type=checkbox]:first-of-type:checked + .toggle:active:after {
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(205, 220, 57, 0.1);
}
.togglebutton-material-yellow label input[type=checkbox]:first-of-type:checked ~ .toggle:active:after {
.togglebutton-material-yellow label input[type=checkbox]:first-of-type:checked + .toggle:active:after {
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(255, 235, 59, 0.1);
}
.togglebutton-material-amber label input[type=checkbox]:first-of-type:checked ~ .toggle:active:after {
.togglebutton-material-amber label input[type=checkbox]:first-of-type:checked + .toggle:active:after {
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(255, 193, 7, 0.1);
}
.togglebutton-material-orange label input[type=checkbox]:first-of-type:checked ~ .toggle:active:after {
.togglebutton-material-orange label input[type=checkbox]:first-of-type:checked + .toggle:active:after {
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(255, 152, 0, 0.1);
}
.togglebutton-material-deep-orange label input[type=checkbox]:first-of-type:checked ~ .toggle:active:after {
.togglebutton-material-deep-orange label input[type=checkbox]:first-of-type:checked + .toggle:active:after {
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(255, 87, 34, 0.1);
}
.togglebutton-material-brown label input[type=checkbox]:first-of-type:checked ~ .toggle:active:after {
.togglebutton-material-brown label input[type=checkbox]:first-of-type:checked + .toggle:active:after {
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(121, 85, 72, 0.1);
}
.togglebutton-material-grey label input[type=checkbox]:first-of-type:checked ~ .toggle:active:after {
.togglebutton-material-grey label input[type=checkbox]:first-of-type:checked + .toggle:active:after {
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(158, 158, 158, 0.1);
}
.togglebutton-material-blue-grey label input[type=checkbox]:first-of-type:checked ~ .toggle:active:after {
.togglebutton-material-blue-grey label input[type=checkbox]:first-of-type:checked + .toggle:active:after {
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(96, 125, 139, 0.1);
}
.form-horizontal .radio {

File diff suppressed because one or more lines are too long

View File

@ -45,8 +45,8 @@
background-color: #BDBDBD;
}
// Ripple off and disabled
input[type=checkbox]:first-of-type ~ .toggle:active:after,
input[type=checkbox][disabled]:first-of-type ~ .toggle:active:after {
input[type=checkbox]:first-of-type + .toggle:active:after,
input[type=checkbox][disabled]:first-of-type + .toggle:active:after {
box-shadow: 0 1px 3px 1px rgba(0,0,0,0.4), 0 0 0 15px rgba(0, 0, 0, 0.1);
}
input[type=checkbox]:first-of-type:checked + .toggle:after {
@ -61,7 +61,7 @@
// Handle on
.variations(~" label input[type=checkbox]:first-of-type:checked + .toggle:after", background-color, @primary);
// Ripple on
.generic-variations(~" label input[type=checkbox]:first-of-type:checked ~ .toggle:active:after", @primary, {
.generic-variations(~" label input[type=checkbox]:first-of-type:checked + .toggle:active:after", @primary, {
box-shadow: 0 1px 3px 1px rgba(0,0,0,0.4), 0 0 0 15px fade(@material-color, 10%);
});
}