// stylelint-disable indentation, property-no-vendor-prefix, selector-no-vendor-prefix // Vendor Prefixes // // All vendor mixins are deprecated as of v3.2.0 due to the introduction of // Autoprefixer in our Gruntfile. They have been removed in v4. // - Animations // - Backface visibility // - Box shadow // - Box sizing // - Content columns // - Hyphens // - Placeholder text // - Transformations // - Transitions // - User Select // Animations .animation(@animation) { -webkit-animation: @animation; -o-animation: @animation; animation: @animation; } .animation-name(@name) { -webkit-animation-name: @name; animation-name: @name; } .animation-duration(@duration) { -webkit-animation-duration: @duration; animation-duration: @duration; } .animation-timing-function(@timing-function) { -webkit-animation-timing-function: @timing-function; animation-timing-function: @timing-function; } .animation-delay(@delay) { -webkit-animation-delay: @delay; animation-delay: @delay; } .animation-iteration-count(@iteration-count) { -webkit-animation-iteration-count: @iteration-count; animation-iteration-count: @iteration-count; } .animation-direction(@direction) { -webkit-animation-direction: @direction; animation-direction: @direction; } .animation-fill-mode(@fill-mode) { -webkit-animation-fill-mode: @fill-mode; animation-fill-mode: @fill-mode; } // Backface visibility // Prevent browsers from flickering when using CSS 3D transforms. // Default value is `visible`, but can be changed to `hidden` .backface-visibility(@visibility) { -webkit-backface-visibility: @visibility; -moz-backface-visibility: @visibility; backface-visibility: @visibility; } // Drop shadows // // Note: Deprecated `.box-shadow()` as of v3.1.0 since all of Bootstrap's // supported browsers that have box shadow capabilities now support it. .box-shadow(@shadow) { box-shadow: @shadow; } // Box sizing .box-sizing(@boxmodel) { box-sizing: @boxmodel; } // CSS3 Content Columns .content-columns(@column-count; @column-gap: @grid-gutter-width) { -webkit-column-count: @column-count; -moz-column-count: @column-count; column-count: @column-count; -webkit-column-gap: @column-gap; -moz-column-gap: @column-gap; column-gap: @column-gap; } // Optional hyphenation .hyphens(@mode: auto) { word-wrap: break-word; -webkit-hyphens: @mode; -moz-hyphens: @mode; -ms-hyphens: @mode; // IE10+ -o-hyphens: @mode; hyphens: @mode; } // Placeholder text .placeholder(@color: @input-color-placeholder) { &:-ms-input-placeholder { color: @color; } // Internet Explorer 10+ &::placeholder { color: @color; opacity: 1; } } // Transformations .scale(@ratio) { transform: scale(@ratio); } .scale(@ratioX; @ratioY) { transform: scale(@ratioX, @ratioY); } .scaleX(@ratio) { transform: scaleX(@ratio); } .scaleY(@ratio) { -webkit-transform: scaleY(@ratio); transform: scaleY(@ratio); } .skew(@x; @y) { transform: skewX(@x) skewY(@y); } .translate(@x; @y) { transform: translate(@x, @y); } .translate3d(@x; @y; @z) { transform: translate3d(@x, @y, @z); } .rotate(@degrees) { transform: rotate(@degrees); } .rotateX(@degrees) { transform: rotateX(@degrees); } .rotateY(@degrees) { transform: rotateY(@degrees); } .perspective(@perspective) { -webkit-perspective: @perspective; -moz-perspective: @perspective; perspective: @perspective; } .perspective-origin(@perspective) { -webkit-perspective-origin: @perspective; -moz-perspective-origin: @perspective; perspective-origin: @perspective; } .transform-origin(@origin) { transform-origin: @origin; } // Transitions .transition(@transition) { transition: @transition; } .transition-property(@transition-property) { transition-property: @transition-property; } .transition-delay(@transition-delay) { transition-delay: @transition-delay; } .transition-duration(@transition-duration) { transition-duration: @transition-duration; } .transition-timing-function(@timing-function) { transition-timing-function: @timing-function; } .transition-transform(@transition) { transition: transform @transition; } // User select // For selecting text on the page .user-select(@select) { -webkit-user-select: @select; -moz-user-select: @select; -ms-user-select: @select; // IE10+ user-select: @select; }