2016-07-18 14:24:02 +00:00
|
|
|
/* stylelint-disable function-parentheses-space-inside */
|
|
|
|
/* stylelint-disable string-quotes */
|
|
|
|
|
2014-02-26 02:47:24 +00:00
|
|
|
.unselectable() {
|
2014-02-18 15:25:56 +00:00
|
|
|
-webkit-user-select: none;
|
2017-03-02 23:45:42 +00:00
|
|
|
-moz-user-select: -moz-none;
|
2014-06-25 00:55:29 +00:00
|
|
|
-ms-user-select: none;
|
2014-02-18 15:25:56 +00:00
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
2016-07-18 14:24:02 +00:00
|
|
|
.opacity( @value ) {
|
2014-06-17 21:11:33 +00:00
|
|
|
opacity: @value;
|
2016-07-18 14:24:02 +00:00
|
|
|
filter: e( %( "alpha(opacity=%s )", round( @value * 100 ) ) ); // IE6-8
|
2014-06-17 21:11:33 +00:00
|
|
|
zoom: 1; // IE 6-7 hasLayout hack
|
|
|
|
}
|
|
|
|
|
2014-02-26 02:47:24 +00:00
|
|
|
// from http://stackoverflow.com/a/12178019/323407
|
2016-07-18 14:24:02 +00:00
|
|
|
.fade-out-vertical( @backgroundColor: white ) {
|
|
|
|
@invisible: fadeout( @backgroundColor, 100% );
|
|
|
|
background-image: -moz-linear-gradient( top, @invisible 0%, @backgroundColor 100% ); // FF3.6+
|
|
|
|
background-image: -webkit-gradient( linear, left top, left bottom, color-stop( 0%, @invisible ), color-stop( 100%, @backgroundColor ) ); // Chrome,Safari4+
|
|
|
|
background-image: -webkit-linear-gradient( top, @invisible 0%, @backgroundColor 100% ); // Chrome10+,Safari5.1+
|
|
|
|
background-image: linear-gradient( to bottom, @invisible 0%, @backgroundColor 100% ); // W3C
|
|
|
|
filter: e( %( "progid:DXImageTransform.Microsoft.gradient( startColorstr='#%s', endColorstr='#%s',GradientType=0 )", rgbahex( @invisible ), rgbahex( @backgroundColor) ) ); // IE6-9
|
2014-02-26 02:47:24 +00:00
|
|
|
}
|
2016-07-18 14:24:02 +00:00
|
|
|
.fade-out-horizontal( @backgroundColor: white ) {
|
|
|
|
@invisible: fadeout( @backgroundColor, 100% );
|
|
|
|
background-image: -moz-linear-gradient( left, @invisible 0%, @backgroundColor 100% ); // FF3.6+
|
|
|
|
background-image: -webkit-gradient( linear, left top, right top, color-stop(0%, @invisible ), color-stop( 100%, @backgroundColor) ); // Chrome,Safari4+
|
|
|
|
background-image: -webkit-linear-gradient( left, @invisible 0%, @backgroundColor 100% ); // Chrome10+,Safari5.1+
|
|
|
|
background-image: linear-gradient( to right, @invisible 0%, @backgroundColor 100% ); // W3C
|
|
|
|
filter: e( %( "progid:DXImageTransform.Microsoft.gradient( startColorstr='#%s', endColorstr='#%s',GradientType=1 )", rgbahex( @invisible ), rgbahex( @backgroundColor) ) ); // IE6-9
|
2014-10-29 19:50:53 +00:00
|
|
|
}
|
2014-03-17 08:07:53 +00:00
|
|
|
|
2016-07-18 14:24:02 +00:00
|
|
|
.rotate( @degrees: 45deg ) {
|
|
|
|
-webkit-transform: rotate( @degrees );
|
|
|
|
-moz-transform: rotate( @degrees );
|
2017-03-02 23:45:42 +00:00
|
|
|
-ms-transform: rotate( @degrees ); // IE 9 only
|
2016-07-18 14:24:02 +00:00
|
|
|
transform: rotate( @degrees );
|
2014-03-17 08:07:53 +00:00
|
|
|
|
2016-07-18 14:24:02 +00:00
|
|
|
/* stylelint-disable number-no-trailing-zeros */
|
|
|
|
filter: progid:DXImageTransform.Microsoft.BasicImage( rotation=( @degrees / 90.0 ) );
|
|
|
|
-ms-filter: 'progid:DXImageTransform.Microsoft.BasicImage( rotation=( @degrees / 90.0 ) )';
|
|
|
|
/* stylelint-enable number-no-trailing-zeros */
|
2014-04-01 07:56:18 +00:00
|
|
|
|
2016-07-18 14:24:02 +00:00
|
|
|
// The filter rules ( which are for IE < 9 ) cause a bug in IE 9 where the rotated
|
2014-04-01 07:56:18 +00:00
|
|
|
// element will have a black background. So we have to disable them in IE9
|
2016-07-18 14:24:02 +00:00
|
|
|
/* stylelint-disable declaration-block-no-duplicate-properties */
|
2015-09-18 11:18:41 +00:00
|
|
|
filter: none \0;
|
|
|
|
-ms-filter: none \0;
|
2016-07-18 14:24:02 +00:00
|
|
|
/* stylelint-enable declaration-block-no-duplicate-properties */
|
2014-04-02 00:07:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// from http://pixelhunter.me/post/25782670606/css3-grayscale
|
|
|
|
.grayscale() {
|
2016-07-18 14:24:02 +00:00
|
|
|
-webkit-filter: grayscale( 100% );
|
|
|
|
filter: url( "data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale" ); /* Firefox 3.5+ */ /* stylelint-disable-line function-url-quotes */
|
|
|
|
filter: grayscale( 100% );
|
2017-03-02 23:45:42 +00:00
|
|
|
filter: #72777d; // IE 6-9
|
2014-11-17 22:18:23 +00:00
|
|
|
}
|