Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
b01f995a
Commit
b01f995a
authored
Feb 21, 2014
by
Mark Otto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12459 from rubenstolk/hotfix/mixins/scale
Make both .scale(X) and .scale(X, Y) both work
parents
c7b07a56
a843bfda
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
14 deletions
+28
-14
less/mixins.less
less/mixins.less
+28
-14
No files found.
less/mixins.less
View file @
b01f995a
...
@@ -148,31 +148,45 @@
...
@@ -148,31 +148,45 @@
}
}
// Transformations
// Transformations
.rotate(@degrees) {
.scale(@ratio) {
-webkit-transform: rotate(@degrees);
-webkit-transform: scale(@ratio);
-ms-transform: rotate(@degrees); // IE9 only
-ms-transform: scale(@ratio); // IE9 only
transform: rotate(@degrees);
transform: scale(@ratio);
}
.scale(@ratioX; @ratioY) {
-webkit-transform: scale(@ratioX, @ratioY);
-ms-transform: scale(@ratioX, @ratioY); // IE9 only
transform: scale(@ratioX, @ratioY);
}
.scaleX(@ratio) {
-webkit-transform: scaleX(@ratio);
-ms-transform: scaleX(@ratio); // IE9 only
transform: scaleX(@ratio);
}
.scaleY(@ratio) {
-webkit-transform: scaleY(@ratio);
-ms-transform: scaleY(@ratio); // IE9 only
transform: scaleY(@ratio);
}
}
.s
cale(@ratio; @ratio-y...
) {
.s
kew(@x; @y
) {
-webkit-transform: s
cale(@ratio, @ratio-
y);
-webkit-transform: s
kew(@x, @
y);
-ms-transform: s
cale(@ratio, @ratio-y); // IE9 only
-ms-transform: s
kewX(@x) skewY(@y); // See https://github.com/twbs/bootstrap/issues/4885; IE9+
transform: s
cale(@ratio, @ratio-
y);
transform: s
kew(@x, @
y);
}
}
.translate(@x; @y) {
.translate(@x; @y) {
-webkit-transform: translate(@x, @y);
-webkit-transform: translate(@x, @y);
-ms-transform: translate(@x, @y); // IE9 only
-ms-transform: translate(@x, @y); // IE9 only
transform: translate(@x, @y);
transform: translate(@x, @y);
}
}
.skew(@x; @y) {
-webkit-transform: skew(@x, @y);
-ms-transform: skewX(@x) skewY(@y); // See https://github.com/twbs/bootstrap/issues/4885; IE9+
transform: skew(@x, @y);
}
.translate3d(@x; @y; @z) {
.translate3d(@x; @y; @z) {
-webkit-transform: translate3d(@x, @y, @z);
-webkit-transform: translate3d(@x, @y, @z);
transform: translate3d(@x, @y, @z);
transform: translate3d(@x, @y, @z);
}
}
.rotate(@degrees) {
-webkit-transform: rotate(@degrees);
-ms-transform: rotate(@degrees); // IE9 only
transform: rotate(@degrees);
}
.rotateX(@degrees) {
.rotateX(@degrees) {
-webkit-transform: rotateX(@degrees);
-webkit-transform: rotateX(@degrees);
-ms-transform: rotateX(@degrees); // IE9 only
-ms-transform: rotateX(@degrees); // IE9 only
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment