2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-08 17:22:31 +03:00

add user-select mixin

This commit is contained in:
Mark Otto
2012-01-14 16:45:01 -08:00
parent a40b2a636c
commit 028726a9a3
2 changed files with 11 additions and 3 deletions
+10 -2
View File
@@ -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) {