Initial coomit for AAI-UI(sparky-fe)
[aai/sparky-fe.git] / resources / scss / bootstrap / mixins / _vendor-prefixes.scss
1 // Vendor Prefixes
2 //
3 // All vendor mixins are deprecated as of v3.2.0 due to the introduction of
4 // Autoprefixer in our Gruntfile. They will be removed in v4.
5
6 // - Animations
7 // - Backface visibility
8 // - Box shadow
9 // - Box sizing
10 // - Content columns
11 // - Hyphens
12 // - Placeholder text
13 // - Transformations
14 // - Transitions
15 // - User Select
16
17 // Animations
18 @mixin animation($animation) {
19   -webkit-animation: $animation;
20   -o-animation: $animation;
21   animation: $animation;
22 }
23
24 @mixin animation-name($name) {
25   -webkit-animation-name: $name;
26   animation-name: $name;
27 }
28
29 @mixin animation-duration($duration) {
30   -webkit-animation-duration: $duration;
31   animation-duration: $duration;
32 }
33
34 @mixin animation-timing-function($timing-function) {
35   -webkit-animation-timing-function: $timing-function;
36   animation-timing-function: $timing-function;
37 }
38
39 @mixin animation-delay($delay) {
40   -webkit-animation-delay: $delay;
41   animation-delay: $delay;
42 }
43
44 @mixin animation-iteration-count($iteration-count) {
45   -webkit-animation-iteration-count: $iteration-count;
46   animation-iteration-count: $iteration-count;
47 }
48
49 @mixin animation-direction($direction) {
50   -webkit-animation-direction: $direction;
51   animation-direction: $direction;
52 }
53
54 @mixin animation-fill-mode($fill-mode) {
55   -webkit-animation-fill-mode: $fill-mode;
56   animation-fill-mode: $fill-mode;
57 }
58
59 // Backface visibility
60 // Prevent browsers from flickering when using CSS 3D transforms.
61 // Default value is `visible`, but can be changed to `hidden`
62
63 @mixin backface-visibility($visibility) {
64   -webkit-backface-visibility: $visibility;
65   -moz-backface-visibility: $visibility;
66   backface-visibility: $visibility;
67 }
68
69 // Drop shadows
70 //
71 // Note: Deprecated `.box-shadow()` as of v3.1.0 since all of Bootstrap's
72 // supported browsers that have box shadow capabilities now support it.
73
74 @mixin box-shadow($shadow...) {
75   -webkit-box-shadow: $shadow; // iOS <4.3 & Android <4.1
76   box-shadow: $shadow;
77 }
78
79 // Box sizing
80 @mixin box-sizing($boxmodel) {
81   -webkit-box-sizing: $boxmodel;
82   -moz-box-sizing: $boxmodel;
83   box-sizing: $boxmodel;
84 }
85
86 // CSS3 Content Columns
87 @mixin content-columns($column-count, $column-gap: $grid-gutter-width) {
88   -webkit-column-count: $column-count;
89   -moz-column-count: $column-count;
90   column-count: $column-count;
91   -webkit-column-gap: $column-gap;
92   -moz-column-gap: $column-gap;
93   column-gap: $column-gap;
94 }
95
96 // Optional hyphenation
97 @mixin hyphens($mode: auto) {
98   word-wrap: break-word;
99   -webkit-hyphens: $mode;
100   -moz-hyphens: $mode;
101   -ms-hyphens: $mode; // IE10+
102   -o-hyphens: $mode;
103   hyphens: $mode;
104 }
105
106 // Placeholder text
107 @mixin placeholder($color: $input-color-placeholder) {
108   // Firefox
109   &::-moz-placeholder {
110         color: $color;
111         opacity: 1; // Override Firefox's unusual default opacity; see https://github.com/twbs/bootstrap/pull/11526
112   }
113   &:-ms-input-placeholder {
114         color: $color;
115   }
116   // Internet Explorer 10+
117   &::-webkit-input-placeholder {
118         color: $color;
119   }
120   // Safari and Chrome
121 }
122
123 // Transformations
124 @mixin scale($ratio...) {
125   -webkit-transform: scale($ratio);
126   -ms-transform: scale($ratio); // IE9 only
127   -o-transform: scale($ratio);
128   transform: scale($ratio);
129 }
130
131 @mixin scaleX($ratio) {
132   -webkit-transform: scaleX($ratio);
133   -ms-transform: scaleX($ratio); // IE9 only
134   -o-transform: scaleX($ratio);
135   transform: scaleX($ratio);
136 }
137
138 @mixin scaleY($ratio) {
139   -webkit-transform: scaleY($ratio);
140   -ms-transform: scaleY($ratio); // IE9 only
141   -o-transform: scaleY($ratio);
142   transform: scaleY($ratio);
143 }
144
145 @mixin skew($x, $y) {
146   -webkit-transform: skewX($x) skewY($y);
147   -ms-transform: skewX($x) skewY($y); // See https://github.com/twbs/bootstrap/issues/4885; IE9+
148   -o-transform: skewX($x) skewY($y);
149   transform: skewX($x) skewY($y);
150 }
151
152 @mixin translate($x, $y) {
153   -webkit-transform: translate($x, $y);
154   -ms-transform: translate($x, $y); // IE9 only
155   -o-transform: translate($x, $y);
156   transform: translate($x, $y);
157 }
158
159 @mixin translate3d($x, $y, $z) {
160   -webkit-transform: translate3d($x, $y, $z);
161   transform: translate3d($x, $y, $z);
162 }
163
164 @mixin rotate($degrees) {
165   -webkit-transform: rotate($degrees);
166   -ms-transform: rotate($degrees); // IE9 only
167   -o-transform: rotate($degrees);
168   transform: rotate($degrees);
169 }
170
171 @mixin rotateX($degrees) {
172   -webkit-transform: rotateX($degrees);
173   -ms-transform: rotateX($degrees); // IE9 only
174   -o-transform: rotateX($degrees);
175   transform: rotateX($degrees);
176 }
177
178 @mixin rotateY($degrees) {
179   -webkit-transform: rotateY($degrees);
180   -ms-transform: rotateY($degrees); // IE9 only
181   -o-transform: rotateY($degrees);
182   transform: rotateY($degrees);
183 }
184
185 @mixin perspective($perspective) {
186   -webkit-perspective: $perspective;
187   -moz-perspective: $perspective;
188   perspective: $perspective;
189 }
190
191 @mixin perspective-origin($perspective) {
192   -webkit-perspective-origin: $perspective;
193   -moz-perspective-origin: $perspective;
194   perspective-origin: $perspective;
195 }
196
197 @mixin transform-origin($origin) {
198   -webkit-transform-origin: $origin;
199   -moz-transform-origin: $origin;
200   -ms-transform-origin: $origin; // IE9 only
201   transform-origin: $origin;
202 }
203
204 // Transitions
205
206 @mixin transition($transition...) {
207   -webkit-transition: $transition;
208   -o-transition: $transition;
209   transition: $transition;
210 }
211
212 @mixin transition-property($transition-property...) {
213   -webkit-transition-property: $transition-property;
214   transition-property: $transition-property;
215 }
216
217 @mixin transition-delay($transition-delay) {
218   -webkit-transition-delay: $transition-delay;
219   transition-delay: $transition-delay;
220 }
221
222 @mixin transition-duration($transition-duration...) {
223   -webkit-transition-duration: $transition-duration;
224   transition-duration: $transition-duration;
225 }
226
227 @mixin transition-timing-function($timing-function) {
228   -webkit-transition-timing-function: $timing-function;
229   transition-timing-function: $timing-function;
230 }
231
232 @mixin transition-transform($transition...) {
233   -webkit-transition: -webkit-transform $transition;
234   -moz-transition: -moz-transform $transition;
235   -o-transition: -o-transform $transition;
236   transition: transform $transition;
237 }
238
239 // User select
240 // For selecting text on the page
241
242 @mixin user-select($select) {
243   -webkit-user-select: $select;
244   -moz-user-select: $select;
245   -ms-user-select: $select; // IE10+
246   user-select: $select;
247 }