From 2c8ca4f5e284d5160e021071ec5cda46710bb78d Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 30 Jan 2012 07:54:47 -0800 Subject: add skew mixin --- docs/assets/bootstrap.zip | Bin 51960 -> 51960 bytes less/mixins.less | 15 ++++++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip index 7e6f0e7a3..c6153a061 100644 Binary files a/docs/assets/bootstrap.zip and b/docs/assets/bootstrap.zip differ diff --git a/less/mixins.less b/less/mixins.less index 39e1d8796..804f834e5 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -237,7 +237,6 @@ - // Input grid system // ------------------------- #inputGridSystem { @@ -314,6 +313,20 @@ -o-transform: translate(@x, @y); transform: translate(@x, @y); } +.skew(@x: 0, @y: 0) { + -webkit-transform: translate(@x, @y); + -moz-transform: translate(@x, @y); + -ms-transform: translate(@x, @y); + -o-transform: translate(@x, @y); + transform: translate(@x, @y); +} +.skew(@x: 0, @y: 0) { + -webkit-transform: skew(@x, @y); + -moz-transform: skew(@x, @y); + -ms-transform: skew(@x, @y); + -o-transform: skew(@x, @y); + transform: skew(@x, @y); +} // Background clipping // Heads up: FF 3.6 and under need "padding" instead of "padding-box" -- cgit v1.2.3