2 * Angular Material Design
3 * https://github.com/angular/material
7 .md-inline-form md-switch {
16 -webkit-user-select: none;
17 -moz-user-select: none;
18 -ms-user-select: none;
22 -webkit-box-align: center;
23 -webkit-align-items: center;
26 display: -webkit-flex;
33 margin-right: inherit; }
34 md-switch:last-of-type {
37 [dir=rtl] md-switch:last-of-type {
39 [dir=rtl] md-switch:last-of-type {
40 margin-right: inherit; }
43 md-switch[disabled] .md-container {
45 md-switch .md-container {
51 -webkit-user-select: none;
52 -moz-user-select: none;
53 -ms-user-select: none;
57 [dir=rtl] md-switch .md-container {
60 md-switch.md-inverted .md-container {
61 margin-right: initial;
63 [dir=rtl] md-switch.md-inverted .md-container {
65 [dir=rtl] md-switch.md-inverted .md-container {
66 margin-left: initial; }
67 md-switch:not([disabled]) .md-dragging,
68 md-switch:not([disabled]).md-dragging .md-container {
69 cursor: -webkit-grabbing;
71 md-switch.md-focused:not([disabled]) .md-thumb:before {
76 md-switch.md-focused:not([disabled]):not(.md-checked) .md-thumb:before {
77 background-color: rgba(0, 0, 0, 0.12); }
79 border-color: transparent;
89 md-switch .md-thumb-container {
94 -webkit-transform: translate3d(0, 0, 0);
95 transform: translate3d(0, 0, 0);
97 md-switch.md-checked .md-thumb-container {
98 -webkit-transform: translate3d(100%, 0, 0);
99 transform: translate3d(100%, 0, 0); }
100 md-switch .md-thumb {
109 box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 2px 1px -1px rgba(0, 0, 0, 0.12); }
110 md-switch .md-thumb:before {
111 background-color: transparent;
121 -webkit-transition: all 0.5s;
122 transition: all 0.5s;
124 md-switch .md-thumb .md-ripple-container {
133 md-switch:not(.md-dragging) .md-bar,
134 md-switch:not(.md-dragging) .md-thumb-container,
135 md-switch:not(.md-dragging) .md-thumb {
136 -webkit-transition: all 0.08s linear;
137 transition: all 0.08s linear;
138 -webkit-transition-property: background-color, -webkit-transform;
139 transition-property: background-color, -webkit-transform;
140 transition-property: transform, background-color;
141 transition-property: transform, background-color, -webkit-transform; }
142 md-switch:not(.md-dragging) .md-bar,
143 md-switch:not(.md-dragging) .md-thumb {
144 -webkit-transition-delay: 0.05s;
145 transition-delay: 0.05s; }
147 @media screen and (-ms-high-contrast: active) {
148 md-switch.md-default-theme .md-bar {
149 background-color: #666; }
150 md-switch.md-default-theme.md-checked .md-bar {
151 background-color: #9E9E9E; }
152 md-switch.md-default-theme .md-thumb {
153 background-color: #fff; } }