mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-20 20:00:36 +03:00
Formatting, comment consolidation, and line endings
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
// Vendor Prefixes
|
||||
// These are deprecated mixins that handle vendor prefixes
|
||||
//
|
||||
// All vender mixins are deprecated as of v3.2 due to the introduction of
|
||||
// Autoprefixer in our Gruntfile. They will be removed in v4.
|
||||
|
||||
// - Animations
|
||||
// - Backface visibility
|
||||
@@ -12,46 +14,33 @@
|
||||
// - Transitions
|
||||
// - User Select
|
||||
|
||||
|
||||
// Animations
|
||||
//
|
||||
// Deprecated as of v3.2.0 due to the introduction of autoprefixer (will be removed in v4)
|
||||
.animation(@animation) {
|
||||
-webkit-animation: @animation;
|
||||
-o-animation: @animation;
|
||||
animation: @animation;
|
||||
}
|
||||
|
||||
// Deprecated as of v3.2.0 due to the introduction of autoprefixer (will be removed in v4)
|
||||
.animation-name(@name) {
|
||||
-webkit-animation-name: @name;
|
||||
animation-name: @name;
|
||||
}
|
||||
|
||||
// Deprecated as of v3.2.0 due to the introduction of autoprefixer (will be removed in v4)
|
||||
.animation-duration(@duration) {
|
||||
-webkit-animation-duration: @duration;
|
||||
animation-duration: @duration;
|
||||
}
|
||||
|
||||
// Deprecated as of v3.2.0 due to the introduction of autoprefixer (will be removed in v4)
|
||||
.animation-timing-function(@timing-function) {
|
||||
-webkit-animation-timing-function: @timing-function;
|
||||
animation-timing-function: @timing-function;
|
||||
}
|
||||
|
||||
// Deprecated as of v3.2.0 due to the introduction of autoprefixer (will be removed in v4)
|
||||
.animation-delay(@delay) {
|
||||
-webkit-animation-delay: @delay;
|
||||
animation-delay: @delay;
|
||||
}
|
||||
|
||||
// Deprecated as of v3.2.0 due to the introduction of autoprefixer (will be removed in v4)
|
||||
.animation-iteration-count(@iteration-count) {
|
||||
-webkit-animation-iteration-count: @iteration-count;
|
||||
animation-iteration-count: @iteration-count;
|
||||
}
|
||||
|
||||
// Deprecated as of v3.2.0 due to the introduction of autoprefixer (will be removed in v4)
|
||||
.animation-direction(@direction) {
|
||||
-webkit-animation-direction: @direction;
|
||||
animation-direction: @direction;
|
||||
@@ -61,11 +50,9 @@
|
||||
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`
|
||||
// Deprecated as of v3.2.0 due to the introduction of autoprefixer (will be removed in v4)
|
||||
|
||||
.backface-visibility(@visibility){
|
||||
-webkit-backface-visibility: @visibility;
|
||||
@@ -73,21 +60,17 @@
|
||||
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 the
|
||||
// standard `box-shadow` property.
|
||||
// supported browsers that have box shadow capabilities now support it.
|
||||
|
||||
.box-shadow(@shadow) {
|
||||
-webkit-box-shadow: @shadow; // iOS <4.3 & Android <4.1
|
||||
box-shadow: @shadow;
|
||||
}
|
||||
|
||||
|
||||
// Box sizing
|
||||
// Deprecated as of v3.2.0 due to the introduction of autoprefixer (will be removed in v4)
|
||||
.box-sizing(@boxmodel) {
|
||||
-webkit-box-sizing: @boxmodel;
|
||||
-moz-box-sizing: @boxmodel;
|
||||
@@ -95,7 +78,6 @@
|
||||
}
|
||||
|
||||
// CSS3 Content Columns
|
||||
|
||||
.content-columns(@column-count; @column-gap: @grid-gutter-width) {
|
||||
-webkit-column-count: @column-count;
|
||||
-moz-column-count: @column-count;
|
||||
@@ -106,7 +88,6 @@
|
||||
}
|
||||
|
||||
// Optional hyphenation
|
||||
|
||||
.hyphens(@mode: auto) {
|
||||
word-wrap: break-word;
|
||||
-webkit-hyphens: @mode;
|
||||
@@ -117,7 +98,6 @@
|
||||
}
|
||||
|
||||
// Placeholder text
|
||||
|
||||
.placeholder(@color: @input-color-placeholder) {
|
||||
&::-moz-placeholder { color: @color; // Firefox
|
||||
opacity: 1; } // See https://github.com/twbs/bootstrap/pull/11526
|
||||
@@ -126,100 +106,74 @@
|
||||
}
|
||||
|
||||
// Transformations
|
||||
//
|
||||
// Deprecated as of v3.2.0 due to the introduction of autoprefixer (will be removed in v4)
|
||||
.scale(@ratio) {
|
||||
-webkit-transform: scale(@ratio);
|
||||
-ms-transform: scale(@ratio); // IE9 only
|
||||
-o-transform: scale(@ratio);
|
||||
transform: scale(@ratio);
|
||||
}
|
||||
|
||||
// Deprecated as of v3.2.0 due to the introduction of autoprefixer (will be removed in v4)
|
||||
.scale(@ratioX; @ratioY) {
|
||||
-webkit-transform: scale(@ratioX, @ratioY);
|
||||
-ms-transform: scale(@ratioX, @ratioY); // IE9 only
|
||||
-o-transform: scale(@ratioX, @ratioY);
|
||||
transform: scale(@ratioX, @ratioY);
|
||||
}
|
||||
|
||||
// Deprecated as of v3.2.0 due to the introduction of autoprefixer (will be removed in v4)
|
||||
.scaleX(@ratio) {
|
||||
-webkit-transform: scaleX(@ratio);
|
||||
-ms-transform: scaleX(@ratio); // IE9 only
|
||||
-o-transform: scaleX(@ratio);
|
||||
transform: scaleX(@ratio);
|
||||
}
|
||||
|
||||
// Deprecated as of v3.2.0 due to the introduction of autoprefixer (will be removed in v4)
|
||||
.scaleY(@ratio) {
|
||||
-webkit-transform: scaleY(@ratio);
|
||||
-ms-transform: scaleY(@ratio); // IE9 only
|
||||
-o-transform: scaleY(@ratio);
|
||||
transform: scaleY(@ratio);
|
||||
}
|
||||
|
||||
// Deprecated as of v3.2.0 due to the introduction of autoprefixer (will be removed in v4)
|
||||
.skew(@x; @y) {
|
||||
-webkit-transform: skew(@x, @y);
|
||||
-ms-transform: skewX(@x) skewY(@y); // See https://github.com/twbs/bootstrap/issues/4885; IE9+
|
||||
-o-transform: skew(@x, @y);
|
||||
transform: skew(@x, @y);
|
||||
}
|
||||
|
||||
// Deprecated as of v3.2.0 due to the introduction of autoprefixer (will be removed in v4)
|
||||
.translate(@x; @y) {
|
||||
-webkit-transform: translate(@x, @y);
|
||||
-ms-transform: translate(@x, @y); // IE9 only
|
||||
-o-transform: translate(@x, @y);
|
||||
transform: translate(@x, @y);
|
||||
}
|
||||
|
||||
// Deprecated as of v3.2.0 due to the introduction of autoprefixer (will be removed in v4)
|
||||
.translate3d(@x; @y; @z) {
|
||||
-webkit-transform: translate3d(@x, @y, @z);
|
||||
transform: translate3d(@x, @y, @z);
|
||||
}
|
||||
|
||||
// Deprecated as of v3.2.0 due to the introduction of autoprefixer (will be removed in v4)
|
||||
.rotate(@degrees) {
|
||||
-webkit-transform: rotate(@degrees);
|
||||
-ms-transform: rotate(@degrees); // IE9 only
|
||||
-o-transform: rotate(@degrees);
|
||||
transform: rotate(@degrees);
|
||||
}
|
||||
|
||||
// Deprecated as of v3.2.0 due to the introduction of autoprefixer (will be removed in v4)
|
||||
.rotateX(@degrees) {
|
||||
-webkit-transform: rotateX(@degrees);
|
||||
-ms-transform: rotateX(@degrees); // IE9 only
|
||||
-o-transform: rotateX(@degrees);
|
||||
transform: rotateX(@degrees);
|
||||
}
|
||||
|
||||
// Deprecated as of v3.2.0 due to the introduction of autoprefixer (will be removed in v4)
|
||||
.rotateY(@degrees) {
|
||||
-webkit-transform: rotateY(@degrees);
|
||||
-ms-transform: rotateY(@degrees); // IE9 only
|
||||
-o-transform: rotateY(@degrees);
|
||||
transform: rotateY(@degrees);
|
||||
}
|
||||
|
||||
// Deprecated as of v3.2.0 due to the introduction of autoprefixer (will be removed in v4)
|
||||
.perspective(@perspective) {
|
||||
-webkit-perspective: @perspective;
|
||||
-moz-perspective: @perspective;
|
||||
perspective: @perspective;
|
||||
}
|
||||
|
||||
// Deprecated as of v3.2.0 due to the introduction of autoprefixer (will be removed in v4)
|
||||
.perspective-origin(@perspective) {
|
||||
-webkit-perspective-origin: @perspective;
|
||||
-moz-perspective-origin: @perspective;
|
||||
perspective-origin: @perspective;
|
||||
}
|
||||
|
||||
// Deprecated as of v3.2.0 due to the introduction of autoprefixer (will be removed in v4)
|
||||
.transform-origin(@origin) {
|
||||
-webkit-transform-origin: @origin;
|
||||
-moz-transform-origin: @origin;
|
||||
@@ -229,39 +183,28 @@
|
||||
|
||||
|
||||
// Transitions
|
||||
//
|
||||
// Deprecated as of v3.2.0 due to the introduction of autoprefixer (will be removed in v4)
|
||||
|
||||
.transition(@transition) {
|
||||
-webkit-transition: @transition;
|
||||
-o-transition: @transition;
|
||||
transition: @transition;
|
||||
}
|
||||
|
||||
// Deprecated as of v3.2.0 due to the introduction of autoprefixer (will be removed in v4)
|
||||
.transition-property(@transition-property) {
|
||||
-webkit-transition-property: @transition-property;
|
||||
transition-property: @transition-property;
|
||||
}
|
||||
|
||||
// Deprecated as of v3.2.0 due to the introduction of autoprefixer (will be removed in v4)
|
||||
.transition-delay(@transition-delay) {
|
||||
-webkit-transition-delay: @transition-delay;
|
||||
transition-delay: @transition-delay;
|
||||
}
|
||||
|
||||
// Deprecated as of v3.2.0 due to the introduction of autoprefixer (will be removed in v4)
|
||||
.transition-duration(@transition-duration) {
|
||||
-webkit-transition-duration: @transition-duration;
|
||||
transition-duration: @transition-duration;
|
||||
}
|
||||
|
||||
// Deprecated as of v3.2.0 due to the introduction of autoprefixer (will be removed in v4)
|
||||
.transition-timing-function(@timing-function) {
|
||||
-webkit-transition-timing-function: @timing-function;
|
||||
transition-timing-function: @timing-function;
|
||||
}
|
||||
|
||||
// Deprecated as of v3.2.0 due to the introduction of autoprefixer (will be removed in v4)
|
||||
.transition-transform(@transition) {
|
||||
-webkit-transition: -webkit-transform @transition;
|
||||
-moz-transition: -moz-transform @transition;
|
||||
@@ -269,9 +212,9 @@
|
||||
transition: transform @transition;
|
||||
}
|
||||
|
||||
|
||||
// User select
|
||||
// For selecting text on the page
|
||||
// Deprecated as of v3.2.0 due to the introduction of autoprefixer (will be removed in v4)
|
||||
|
||||
.user-select(@select) {
|
||||
-webkit-user-select: @select;
|
||||
@@ -279,4 +222,3 @@
|
||||
-ms-user-select: @select; // IE10+
|
||||
user-select: @select;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user