Description:css3 animation
1. usage
syntax:@include x-animation($value);
params:
* $value --- the composition of the value:
* animation-name
* animation-duration
* animation-timing-function
* animation-delay
* animation-iteration-count
* animation-direction
note:the default value is "none 0 ease 0 1 normal"
2. example
div {
@include x-animation(test 3s ease);
}
3. source
Description:css3 appearance
1. usage
syntax:@include x-appearance($value);
params:
* $value --- The available value:http://css-tricks.com/almanac/properties/a/appearance/
2. example
div {
@include x-appearance(button);
}
3. source
Description:Hidden the back of the rotating element .
1. usage
syntax:@include x-backface-visibility($value);
params:
* $value --- visible(default value)| hidden
note:This is useful to avoid flicker when doing 3D effects .
2. example
div {
@include x-backface-visibility(hidden);
}
3. source
- http://css-tricks.com/almanac/properties/b/backface-visibility/
- http://www.w3school.com.cn/cssref/pr_backface-visibility.asp
Description:css3 background-clip
1. usage
syntax:@include x-background-clip($mode);
params:
* $mode --- border-box(default value) | padding-box | content-box
2. example
div {
@include x-background-clip(content-box);
}
3. source
- http://www.w3school.com.cn/cssref/pr_background-clip.asp
- http://css-tricks.com/transparent-borders-with-background-clip/
Description:css3 background-origin
1. usage
syntax:@include x-background-origin($mode);
params:
* $mode --- border-box(default value) | padding-box | content-box
2. example
div {
@include x-background-origin(content-box);
}
3. source
Description:background image support retina screen .
1. usage
syntax:@include x-background-retina($img_1x, $img_2x, $width_1x, $height_1x);
params:
* $img_1x --- 1x background image url, <string>
* $img_2x --- 2x background image url, <string>
* $width_1x --- 1x background image width
* $height_1x --- 1x background image height
2. example
div {
@include x-background-retina("1x.png", "2x.png", 24px, 24px);
}
Description:css3 background-size
1. usage
syntax:@include x-background-size($size);
params:
* $size --- auto(default value)| length | percentage | cover | contain
2. example
div {
@include x-background-size(50% 50%);
}
3. source
- http://www.css3.info/preview/background-size/
- http://www.w3school.com.cn/cssref/pr_background-size.asp
Description:css3 border-radius
1. usage
syntax:@include x-border-radius($radius, $direction);
params:
* $direction --- all (default value) | top | left | bottom | left
2. example
div {
@include x-border-radius(3px); // set all corners
}
div {
@include x-border-radius(3px, top); // set topleft and topright corners
}
div {
@include x-border-radius(3px, right); // set topright and bottomright corners
}
div {
@include x-border-radius(3px, bottom); // set bottomleft and bottomright corners
}
div {
@include x-border-radius(3px, left); // set topleft and bottomleft corners
}
3. source
Description:border triangle
1. usage
syntax:@include x-border-triangle($borderWidth, $borderColor, $direction);
params:
* $borderWidth --- etc, 5px
* $borderColor --- etc, #666
* $direction --- top | right | bottom | left | topleft | topright | bottomleft | bottomright
2. example
div {
@include x-border-triangle(5px, #666, top);
}
3. source
Description:css3 box-shadow
1. usage
syntax:@include x-box-shadow($params);
2. example
div {
@include x-box-shadow(5px 5px 3px #000);
}
3. source
Description:css3 box-sizing
1. usage
syntax:@include x-box-sizing($model);
params:
* $model --- content-box | border-box | inherit
2. example
div {
@include x-box-sizing(border-box);
}
3. source
Description:clear float
1. usage
syntax:@include x-clearfix();
2. example
div {
@include x-clearfix();
}
3. source
Description:css3 @font-face
1. usage
syntax:@include x-font-face($fontName, $fontUrl); // note:font url without a file extension
2. example
@include x-font-face('iconfont', 'http://x.cdn.com/iconfont');
div {
font-family: 'iconfont';
}
3. source
Description:turn colour image into gray .
1. usage
syntax:@include x-grayscale();
2. example
img {
@include x-grayscale(); // colour image into a gray image
}
3. source
Description:css3 hyphens
1. usage
syntax:@include x-hyphens($mode);
params:
* $mode --- none | manual | auto(default value)
2. example
div {
@include x-hyphens();
}
3. source
Description:inline-block
1. usage
syntax:@include x-inline-block();
2. example
div {
@include x-inline-block();
}
3. source
Description:CSS3 linear-gradient
1. usage
syntax:@include x-linear-gradient(...);
params:
* ... --- [<angle> | to <side-or-corner>]?, <color-stop-list>
* <angle>:such as 45deg
> Note: The IE6~9 only support "0deg, 90deg, 180deg, 270deg" .
* to <side-or-corner>:to [left | right] || [top | bottom], default is "to bottom"
> Note:The IE6~9 noly support "to top, to right, to bottom, to left" .
* <color-stop-list>:color [length | %]? [, color [length | %]?]*
> Note: The IE6~9 only support set two color value .
2. example
div {
@include x-linear-gradient(to bottom, #000, #fff);
}
div {
@include x-linear-gradient(90deg, #000 30%, #fff 60%);
}
3. source
- http://css-tricks.com/css3-gradients/
- https://developer.mozilla.org/zh-CN/docs/Web/CSS/linear-gradient
- http://dev.w3.org/csswg/css-images-3/#funcdef-linear-gradient
Description:min-height
1. usage
syntax:@include x-min-height($height);
2. example
div {
@include x-min-height(100px);
}
3. source
Description:opacity
1. usage
syntax:@include x-opacity($opacity);
2. example
div {
@include x-opacity(0.5);
}
3. source
Description:Determines the origin for the perspective property(Actually set the X axis and Y axis position).
1. usage
syntax:@include x-perspective-origin($origin);
params:
* $origin --- left|center|right|length|% top|center|bottom|length|%
note:
* The default value is "50% 50%" .
* Must use with the perspective property .
2. example
div {
@include x-perspective(100px);
@include x-perspective-origin(top left);
}
3. source
- http://css-tricks.com/almanac/properties/p/perspective-origin/
- http://www.w3cplus.com/css3/transform-basic-property.html
Description:Gives an element a 3D-space by affecting the distance between the Z plane and the user.
1. usage
syntax:@include x-perspective($value);
params:
* $value --- none(default value)| length
2. example
div {
@include x-perspective(500px);
}
3. source
- http://www.zhangxinxu.com/wordpress/2012/09/css3-3d-transform-perspective-animate-transition/
- http://css-tricks.com/almanac/properties/p/perspective/
- http://www.w3cplus.com/css3/transform-basic-property.html
Description:set placeholder text color .
1. usage
syntax:@include x-placeholder($color);
params:
* $color --- The placeholder text's color
2. example
input {
@include x-placeholder(red);
}
3. source
Description:CSS3 radial gradient
1. usage
syntax:@include x-radial-gradient(...);
params:
* ... --- [<shape> | <size>]? [at <position>]?, <color-stop-list>
* <shape>:circle | ellipse | [length | %]{1,2} ,default to circle
* <size>:closest-side | closest-corner | farthest-side | farthest-corner | length | [length | %]{2},default to farthest-corner
* <position>: [length | % | left | center | right ]? [length> | % | top | center | bottom ]?,default to center
* [color-stop-list]:color [length | %]? [, color [length | %]?]*
2. example
div {
@include x-radial-gradient(circle, red, green);
}
3. source
- http://www.w3cplus.com/css3/new-css3-radial-gradient.html
- http://dev.w3.org/csswg/css-images-3/#radial-gradients
Description:text-overflow
1. usage
syntax:@include x-text-overflow($cutway);
params:
* $cutway --- ellipsis | clip (default value)
2. example
div {
@include x-text-overflow(ellipsis);
}
3. source
Description:lets you modify the origin for transformations of an element.
1. usage
syntax:@include x-transform-origin($value);
params:
* $value --- x-offset y-offset z-offset
* x-offset --- left|center|right|length|%
* y-offset --- top|center|bottom|length|%
* z-offset --- length
The default value is:50% 50% 0
2. example
div {
@include x-transform-origin(top left);
}
3. source
- http://www.w3school.com.cn/cssref/pr_transform-origin.asp
- http://css-tricks.com/almanac/properties/t/transform-origin/
Description:determines the element's children are positioned in 3D space, or flattened.
1. usage
syntax:@include x-transform-style($value);
params:
* $value --- flat | preserve-3d,
2. example
div {
@include x-transform-style(preserve-3d);
}
3. source
- http://www.w3school.com.cn/cssref/pr_transform-style.asp
- http://css-tricks.com/almanac/properties/t/transform-style/
Description:css3 transform
1. usage
syntax:@include x-transform($value);
params:
* $value --- transform-functions | none(default value)
2. example
div {
@include x-transform(rotate(20deg));
}
3. source
Description:css3 transition
1. usage
syntax:@include x-transition($value);
params:
* $value --- the composition of the value:
* transition-property
* transition-duration
* transition-timing-function
* transition-delay
note:the default value is "all 0 ease 0"
2. example
div {
height: 100px;
@include x-transition(height 2s ease);
}
div:hover {
height: 300px;
}
3. source
Description:css3 user-select
1. usage
syntax:@include x-user-select($mode);
params:
* $mode --- none | text(default value)| toggle | element | elements | all | inherit
note:
* In addition to “none" and "text", other value has compatibility problems.
2. example
div {
@include x-user-select();
}
3. source