commonroutesApp/www/lib/angular-material/modules/closure/switch/switch.css
www/lib/angular-material/modules/closure/switch/switch.cssRaw
1/*!
2 * Angular Material Design
3 * https://github.com/angular/material
4 * @license MIT
5 * v1.1.1
6 */
7.md-inline-form md-switch {
8 margin-top: 18px;
9 margin-bottom: 19px; }
10
11md-switch {
12 margin: 16px 0;
13 white-space: nowrap;
14 cursor: pointer;
15 outline: none;
16 -webkit-user-select: none;
17 -moz-user-select: none;
18 -ms-user-select: none;
19 user-select: none;
20 height: 30px;
21 line-height: 28px;
22 -webkit-box-align: center;
23 -webkit-align-items: center;
24 align-items: center;
25 display: -webkit-box;
26 display: -webkit-flex;
27 display: flex;
28 margin-left: inherit;
29 margin-right: 16px; }
30 [dir=rtl] md-switch {
31 margin-left: 16px; }
32 [dir=rtl] md-switch {
33 margin-right: inherit; }
34 md-switch:last-of-type {
35 margin-left: inherit;
36 margin-right: 0; }
37 [dir=rtl] md-switch:last-of-type {
38 margin-left: 0; }
39 [dir=rtl] md-switch:last-of-type {
40 margin-right: inherit; }
41 md-switch[disabled] {
42 cursor: default; }
43 md-switch[disabled] .md-container {
44 cursor: default; }
45 md-switch .md-container {
46 cursor: -webkit-grab;
47 cursor: grab;
48 width: 36px;
49 height: 24px;
50 position: relative;
51 -webkit-user-select: none;
52 -moz-user-select: none;
53 -ms-user-select: none;
54 user-select: none;
55 margin-right: 8px;
56 float: left; }
57 [dir=rtl] md-switch .md-container {
58 margin-right: auto;
59 margin-left: 8px; }
60 md-switch:not([disabled]) .md-dragging,
61 md-switch:not([disabled]).md-dragging .md-container {
62 cursor: -webkit-grabbing;
63 cursor: grabbing; }
64 md-switch.md-focused:not([disabled]) .md-thumb:before {
65 left: -8px;
66 top: -8px;
67 right: -8px;
68 bottom: -8px; }
69 md-switch.md-focused:not([disabled]):not(.md-checked) .md-thumb:before {
70 background-color: rgba(0, 0, 0, 0.12); }
71 md-switch .md-label {
72 border-color: transparent;
73 border-width: 0;
74 float: left; }
75 md-switch .md-bar {
76 left: 1px;
77 width: 34px;
78 top: 5px;
79 height: 14px;
80 border-radius: 8px;
81 position: absolute; }
82 md-switch .md-thumb-container {
83 top: 2px;
84 left: 0;
85 width: 16px;
86 position: absolute;
87 -webkit-transform: translate3d(0, 0, 0);
88 transform: translate3d(0, 0, 0);
89 z-index: 1; }
90 md-switch.md-checked .md-thumb-container {
91 -webkit-transform: translate3d(100%, 0, 0);
92 transform: translate3d(100%, 0, 0); }
93 md-switch .md-thumb {
94 position: absolute;
95 margin: 0;
96 left: 0;
97 top: 0;
98 outline: none;
99 height: 20px;
100 width: 20px;
101 border-radius: 50%;
102 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); }
103 md-switch .md-thumb:before {
104 background-color: transparent;
105 border-radius: 50%;
106 content: '';
107 position: absolute;
108 display: block;
109 height: auto;
110 left: 0;
111 top: 0;
112 right: 0;
113 bottom: 0;
114 -webkit-transition: all 0.5s;
115 transition: all 0.5s;
116 width: auto; }
117 md-switch .md-thumb .md-ripple-container {
118 position: absolute;
119 display: block;
120 width: auto;
121 height: auto;
122 left: -20px;
123 top: -20px;
124 right: -20px;
125 bottom: -20px; }
126 md-switch:not(.md-dragging) .md-bar,
127 md-switch:not(.md-dragging) .md-thumb-container,
128 md-switch:not(.md-dragging) .md-thumb {
129 -webkit-transition: all 0.08s linear;
130 transition: all 0.08s linear;
131 -webkit-transition-property: background-color, -webkit-transform;
132 transition-property: background-color, -webkit-transform;
133 transition-property: transform, background-color;
134 transition-property: transform, background-color, -webkit-transform; }
135 md-switch:not(.md-dragging) .md-bar,
136 md-switch:not(.md-dragging) .md-thumb {
137 -webkit-transition-delay: 0.05s;
138 transition-delay: 0.05s; }
139
140@media screen and (-ms-high-contrast: active) {
141 md-switch.md-default-theme .md-bar {
142 background-color: #666; }
143 md-switch.md-default-theme.md-checked .md-bar {
144 background-color: #9E9E9E; }
145 md-switch.md-default-theme .md-thumb {
146 background-color: #fff; } }