mirror of
https://github.com/ForkAwesome/Fork-Awesome.git
synced 2024-12-26 21:41:31 +08:00
74 lines
1.7 KiB
Plaintext
74 lines
1.7 KiB
Plaintext
// Mixins
|
|
// --------------------------
|
|
|
|
.icon(@icon) {
|
|
.icon-FontAwesome();
|
|
content: @icon;
|
|
}
|
|
|
|
.icon-FontAwesome() {
|
|
// position: relative;
|
|
// top: 0;
|
|
display: inline-block;
|
|
font-family: FontAwesome;
|
|
font-style: normal;
|
|
font-weight: normal;
|
|
line-height: 1;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
|
// from bootstrap, throws off rendering
|
|
// &:empty { width: 1em; }
|
|
|
|
// text-decoration: inherit;
|
|
// text-rendering: auto;
|
|
}
|
|
|
|
.border-radius(@radius) {
|
|
-webkit-border-radius: @radius;
|
|
-moz-border-radius: @radius;
|
|
border-radius: @radius;
|
|
}
|
|
|
|
.rotate(@degrees, @rotation) {
|
|
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=@rotation);
|
|
-webkit-transform: rotate(@degrees);
|
|
-moz-transform: rotate(@degrees);
|
|
-ms-transform: rotate(@degrees);
|
|
-o-transform: rotate(@degrees);
|
|
transform: rotate(@degrees);
|
|
}
|
|
|
|
.flip(@horiz, @vert) {
|
|
-webkit-transform: scale(@horiz, @vert);
|
|
-moz-transform: scale(@horiz, @vert);
|
|
-ms-transform: scale(@horiz, @vert);
|
|
-o-transform: scale(@horiz, @vert);
|
|
transform: scale(@horiz, @vert);
|
|
}
|
|
|
|
.icon-stack(@width: 2em, @height: 2em, @top-font-size: 1em, @base-font-size: 2em) {
|
|
.fa-stack {
|
|
position: relative;
|
|
display: inline-block;
|
|
width: @width;
|
|
height: @height;
|
|
line-height: @width;
|
|
vertical-align: -35%;
|
|
.fa {
|
|
position: absolute;
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
font-size: @top-font-size;
|
|
line-height: inherit;
|
|
*line-height: @height;
|
|
text-align: center;
|
|
}
|
|
.fa-stack-base {
|
|
font-size: @base-font-size;
|
|
*line-height: (@height / @base-font-size);
|
|
}
|
|
}
|
|
}
|