diff options
| author | Mark Otto <[email protected]> | 2012-01-14 16:45:01 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-01-14 16:45:01 -0800 |
| commit | 028726a9a3e2acd56195dacd903680db5d934b8e (patch) | |
| tree | b969b0769e71bbf5b08a18fdd6f3c4dad34fb6a6 /lib | |
| parent | a40b2a636c908859c2bb7434f0c050be2dc7e70e (diff) | |
| download | bootstrap-028726a9a3e2acd56195dacd903680db5d934b8e.tar.xz bootstrap-028726a9a3e2acd56195dacd903680db5d934b8e.zip | |
add user-select mixin
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/mixins.less | 12 |
1 files changed, 10 insertions, 2 deletions
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) { |
