Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
028726a9
Commit
028726a9
authored
13 years ago
by
Mark Otto
Browse files
Options
Download
Email Patches
Plain Diff
add user-select mixin
parent
a40b2a63
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bootstrap.css
+1
-1
bootstrap.css
lib/mixins.less
+10
-2
lib/mixins.less
with
11 additions
and
3 deletions
+11
-3
bootstrap.css
+
1
-
1
View file @
028726a9
...
@@ -6,7 +6,7 @@
...
@@ -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:3
2 PST 2012
* Date: Sat Jan 14 16:
44:5
2 PST 2012
*/
*/
html
,
body
{
html
,
body
{
margin
:
0
;
margin
:
0
;
...
...
This diff is collapsed.
Click to expand it.
lib/mixins.less
+
10
-
2
View file @
028726a9
...
@@ -147,8 +147,7 @@
...
@@ -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 @@
...
@@ -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) {
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment