aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-01-14 16:45:01 -0800
committerMark Otto <[email protected]>2012-01-14 16:45:01 -0800
commit028726a9a3e2acd56195dacd903680db5d934b8e (patch)
treeb969b0769e71bbf5b08a18fdd6f3c4dad34fb6a6
parenta40b2a636c908859c2bb7434f0c050be2dc7e70e (diff)
downloadbootstrap-028726a9a3e2acd56195dacd903680db5d934b8e.tar.xz
bootstrap-028726a9a3e2acd56195dacd903680db5d934b8e.zip
add user-select mixin
-rw-r--r--bootstrap.css2
-rw-r--r--lib/mixins.less12
2 files changed, 11 insertions, 3 deletions
diff --git a/bootstrap.css b/bootstrap.css
index 8d7b08a35..1fc0e9edd 100644
--- a/bootstrap.css
+++ b/bootstrap.css
@@ -6,7 +6,7 @@
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
- * Date: Sat Jan 14 16:38:32 PST 2012
+ * Date: Sat Jan 14 16:44:52 PST 2012
*/
html, body {
margin: 0;
diff --git a/lib/mixins.less b/lib/mixins.less
index 50986c68c..67e0c27de 100644
--- a/lib/mixins.less
+++ b/lib/mixins.less
@@ -147,8 +147,7 @@
transition: @transition;
}
-// Transform for scale and rotate
-// translate, rotate, scale -- need to finalize
+// Transformations
.rotate(@degrees: 5deg) {
-webkit-transform: rotate(@degrees);
-moz-transform: rotate(@degrees);
@@ -171,6 +170,15 @@
transform: translate(@x, @y);
}
+// User select
+// For selecting text on the page
+.user-select(@select) {
+ -webkit-user-select: @select;
+ -moz-user-select: @select;
+ -o-user-select: @select;
+ user-select: @select;
+}
+
// Background clipping
// Heads up: FF 3.6 and under need padding instead of padding-box
.background-clip(@clip) {