mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-20 17:54:23 +01:00
add user-select mixin
This commit is contained in:
parent
a40b2a636c
commit
028726a9a3
2
bootstrap.css
vendored
2
bootstrap.css
vendored
@ -6,7 +6,7 @@
|
|||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Designed and built with all the love in the world @twitter by @mdo and @fat.
|
* 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 {
|
html, body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
@ -147,8 +147,7 @@
|
|||||||
transition: @transition;
|
transition: @transition;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Transform for scale and rotate
|
// Transformations
|
||||||
// translate, rotate, scale -- need to finalize
|
|
||||||
.rotate(@degrees: 5deg) {
|
.rotate(@degrees: 5deg) {
|
||||||
-webkit-transform: rotate(@degrees);
|
-webkit-transform: rotate(@degrees);
|
||||||
-moz-transform: rotate(@degrees);
|
-moz-transform: rotate(@degrees);
|
||||||
@ -171,6 +170,15 @@
|
|||||||
transform: translate(@x, @y);
|
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
|
// Background clipping
|
||||||
// Heads up: FF 3.6 and under need padding instead of padding-box
|
// Heads up: FF 3.6 and under need padding instead of padding-box
|
||||||
.background-clip(@clip) {
|
.background-clip(@clip) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user