2015-01-09 07:43:34 +08:00
|
|
|
.radius(@size: 4px) {
|
|
|
|
-moz-border-radius: @size;
|
|
|
|
-webkit-border-radius: @size;
|
|
|
|
border-radius: @size;
|
|
|
|
}
|
|
|
|
|
|
|
|
.linear-gradient(@color1, @color2) {
|
|
|
|
background: -moz-linear-gradient(@color1, @color2); /* For Firefox 3.6 to 15 */
|
|
|
|
background: -o-linear-gradient(@color1, @color2); /* For Opera 11.1 to 12.0 */
|
|
|
|
background: -webkit-linear-gradient(@color1, @color2); /* For Safari 5.1 to 6.0 */
|
|
|
|
background: linear-gradient(@color1, @color2); /* Standard syntax (must be last) */
|
|
|
|
}
|
2015-05-16 04:17:33 +08:00
|
|
|
|
|
|
|
.vertically-centered {
|
|
|
|
position: relative;
|
|
|
|
top: 50%;
|
|
|
|
transform: translateY(-50%);
|
|
|
|
}
|