Merge branch 'stable'
* stable: changelog for user-select removed useless unit user-select mixin with docs and tests Conflicts: doc-src/content/CHANGELOG.markdown
This commit is contained in:
commit
edc7942396
@ -31,6 +31,12 @@ The Documentation for the [latest preview release](http://beta.compass-style.org
|
|||||||
`generated-image-url()` helper function. These should rarely be needed and
|
`generated-image-url()` helper function. These should rarely be needed and
|
||||||
will default to your corresponding image directories and paths.
|
will default to your corresponding image directories and paths.
|
||||||
|
|
||||||
|
0.11.6 (UNRELEASED)
|
||||||
|
-------------------
|
||||||
|
|
||||||
|
* Added `user-select` mixin to control the selection model and granularity of an element.
|
||||||
|
It accepts one argument (`$select`) from the following options: `none` | `text` | `toggle` | `element` | `elements` | `all` | `inherit`.
|
||||||
|
|
||||||
0.11.5 (07/10/2011)
|
0.11.5 (07/10/2011)
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
@ -1172,4 +1178,4 @@ Almost definitely. Please let me know if you encounter any problems and I'll get
|
|||||||
[html5-reset]: http://compass-style.org/reference/compass/reset/utilities/#mixin-reset-html5
|
[html5-reset]: http://compass-style.org/reference/compass/reset/utilities/#mixin-reset-html5
|
||||||
[blueprint_10_change]: https://github.com/chriseppstein/compass/compare/a05e1ee7c0a1e4c0f0595a8bb812daa47872e476...864780969d872a93b1fd3b4f39f29dd9f0c3fe75
|
[blueprint_10_change]: https://github.com/chriseppstein/compass/compare/a05e1ee7c0a1e4c0f0595a8bb812daa47872e476...864780969d872a93b1fd3b4f39f29dd9f0c3fe75
|
||||||
[brandon]: http://brandonmathis.com/
|
[brandon]: http://brandonmathis.com/
|
||||||
[lemonade]: http://www.hagenburger.net/BLOG/Lemonade-CSS-Sprites-for-Sass-Compass.html
|
[lemonade]: http://www.hagenburger.net/BLOG/Lemonade-CSS-Sprites-for-Sass-Compass.html
|
||||||
|
@ -0,0 +1,24 @@
|
|||||||
|
@import "shared";
|
||||||
|
|
||||||
|
// User Interface ------------------------------------------------------------
|
||||||
|
// This file can be expanded to handle all the user interface properties as
|
||||||
|
// they become available in browsers:
|
||||||
|
// http://www.w3.org/TR/2000/WD-css3-userint-20000216
|
||||||
|
|
||||||
|
// User Select ---------------------------------------------------------------
|
||||||
|
// This property controls the selection model and granularity of an element.
|
||||||
|
//
|
||||||
|
// @param $select
|
||||||
|
// [ none | text | toggle | element | elements | all | inherit ]
|
||||||
|
|
||||||
|
@mixin user-select($select) {
|
||||||
|
$select: unquote($select);
|
||||||
|
// Mozilla needs prefix on both the -moz-property and the -moz-value
|
||||||
|
@include experimental(user-select, -moz-#{$select},
|
||||||
|
-moz, not -webkit, not -o, not -ms, not -khtml, not official
|
||||||
|
);
|
||||||
|
// others do not
|
||||||
|
@include experimental(user-select, $select,
|
||||||
|
not -moz, -webkit, not -o, not -ms, -khtml, official
|
||||||
|
);
|
||||||
|
}
|
@ -2,7 +2,7 @@
|
|||||||
@mixin no-bullet {
|
@mixin no-bullet {
|
||||||
list-style-image : none;
|
list-style-image : none;
|
||||||
list-style-type : none;
|
list-style-type : none;
|
||||||
margin-left : 0px;
|
margin-left : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// turns off the bullets for an entire list
|
// turns off the bullets for an entire list
|
||||||
|
5
test/fixtures/stylesheets/compass/css/user-interface.css
vendored
Normal file
5
test/fixtures/stylesheets/compass/css/user-interface.css
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
.user-select {
|
||||||
|
-moz-user-select: -moz-none;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-khtml-user-select: none;
|
||||||
|
user-select: none; }
|
5
test/fixtures/stylesheets/compass/sass/user-interface.scss
vendored
Normal file
5
test/fixtures/stylesheets/compass/sass/user-interface.scss
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
@import "compass/css3/user-interface";
|
||||||
|
|
||||||
|
.user-select {
|
||||||
|
@include user-select(none);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user