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.
7 // - Backface visibility
18 @mixin animation($animation) {
19 -webkit-animation: $animation;
20 -o-animation: $animation;
21 animation: $animation;
24 @mixin animation-name($name) {
25 -webkit-animation-name: $name;
26 animation-name: $name;
29 @mixin animation-duration($duration) {
30 -webkit-animation-duration: $duration;
31 animation-duration: $duration;
34 @mixin animation-timing-function($timing-function) {
35 -webkit-animation-timing-function: $timing-function;
36 animation-timing-function: $timing-function;
39 @mixin animation-delay($delay) {
40 -webkit-animation-delay: $delay;
41 animation-delay: $delay;
44 @mixin animation-iteration-count($iteration-count) {
45 -webkit-animation-iteration-count: $iteration-count;
46 animation-iteration-count: $iteration-count;
49 @mixin animation-direction($direction) {
50 -webkit-animation-direction: $direction;
51 animation-direction: $direction;
54 @mixin animation-fill-mode($fill-mode) {
55 -webkit-animation-fill-mode: $fill-mode;
56 animation-fill-mode: $fill-mode;
59 // Backface visibility
60 // Prevent browsers from flickering when using CSS 3D transforms.
61 // Default value is `visible`, but can be changed to `hidden`
63 @mixin backface-visibility($visibility) {
64 -webkit-backface-visibility: $visibility;
65 -moz-backface-visibility: $visibility;
66 backface-visibility: $visibility;
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.
74 @mixin box-shadow($shadow...) {
75 -webkit-box-shadow: $shadow; // iOS <4.3 & Android <4.1
80 @mixin box-sizing($boxmodel) {
81 -webkit-box-sizing: $boxmodel;
82 -moz-box-sizing: $boxmodel;
83 box-sizing: $boxmodel;
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;
96 // Optional hyphenation
97 @mixin hyphens($mode: auto) {
98 word-wrap: break-word;
99 -webkit-hyphens: $mode;
101 -ms-hyphens: $mode; // IE10+
107 @mixin placeholder($color: $input-color-placeholder) {
109 &::-moz-placeholder {
111 opacity: 1; // Override Firefox's unusual default opacity; see https://github.com/twbs/bootstrap/pull/11526
113 &:-ms-input-placeholder {
116 // Internet Explorer 10+
117 &::-webkit-input-placeholder {
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);
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);
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);
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);
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);
159 @mixin translate3d($x, $y, $z) {
160 -webkit-transform: translate3d($x, $y, $z);
161 transform: translate3d($x, $y, $z);
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);
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);
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);
185 @mixin perspective($perspective) {
186 -webkit-perspective: $perspective;
187 -moz-perspective: $perspective;
188 perspective: $perspective;
191 @mixin perspective-origin($perspective) {
192 -webkit-perspective-origin: $perspective;
193 -moz-perspective-origin: $perspective;
194 perspective-origin: $perspective;
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;
206 @mixin transition($transition...) {
207 -webkit-transition: $transition;
208 -o-transition: $transition;
209 transition: $transition;
212 @mixin transition-property($transition-property...) {
213 -webkit-transition-property: $transition-property;
214 transition-property: $transition-property;
217 @mixin transition-delay($transition-delay) {
218 -webkit-transition-delay: $transition-delay;
219 transition-delay: $transition-delay;
222 @mixin transition-duration($transition-duration...) {
223 -webkit-transition-duration: $transition-duration;
224 transition-duration: $transition-duration;
227 @mixin transition-timing-function($timing-function) {
228 -webkit-transition-timing-function: $timing-function;
229 transition-timing-function: $timing-function;
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;
240 // For selecting text on the page
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;