1 // This file has been autogenerated by grunt task lessToSass. Any changes will be overwritten.
4 vertical-align: middle;
5 &, label, input, .toggle {
10 color: $mdb-toggle-label-color;
11 @include mdb-label-color-toggle-focus();
13 // Hide original checkbox
14 input[type=checkbox] {
21 text-align: left; // Issue #737 horizontal form
24 // Switch bg off and disabled
26 input[type=checkbox][disabled] + .toggle {
28 display: inline-block;
31 background-color: rgba(80, 80, 80, 0.7);
34 transition: background 0.3s ease;
35 vertical-align: middle;
40 display: inline-block;
43 background-color: #FFFFFF;
46 box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4);
49 border: 1px solid $mdb-checkbox-border-color;
50 transition: left 0.3s ease, background 0.3s ease, box-shadow 0.1s ease;
52 input[type=checkbox] {
56 &:checked + .toggle:after {
57 background-color: #BDBDBD;
61 & + .toggle:active:after,
62 &[disabled] + .toggle:active:after {
63 box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(0, 0, 0, 0.1);
66 // Ripple off and disabled
67 &:checked + .toggle:after {
72 // set bg when checked
73 input[type=checkbox]:checked {
75 background-color: rgba($brand-primary, (70/100)); // Switch bg on
79 border-color: $brand-primary; // Handle on
82 + .toggle:active:after {
83 box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba($brand-primary, (10/100)); // Ripple on