2013-06-12 04:32:47 +00:00
|
|
|
// Mixins
|
|
|
|
// --------------------------
|
|
|
|
|
|
|
|
.icon(@icon) {
|
|
|
|
.icon-FontAwesome();
|
|
|
|
content: @icon;
|
|
|
|
}
|
|
|
|
|
|
|
|
.icon-FontAwesome() {
|
2013-10-02 00:58:36 +00:00
|
|
|
// position: relative;
|
|
|
|
// top: 0;
|
|
|
|
display: inline-block;
|
2013-06-12 04:32:47 +00:00
|
|
|
font-family: FontAwesome;
|
|
|
|
font-style: normal;
|
2013-08-21 11:18:37 +00:00
|
|
|
font-weight: normal;
|
2013-10-02 00:58:36 +00:00
|
|
|
line-height: 1;
|
|
|
|
-webkit-font-smoothing: antialiased;
|
2013-08-06 12:11:49 +00:00
|
|
|
-moz-osx-font-smoothing: grayscale;
|
2013-10-02 00:58:36 +00:00
|
|
|
|
|
|
|
// from bootstrap, throws off rendering
|
|
|
|
// &:empty { width: 1em; }
|
|
|
|
|
|
|
|
// text-decoration: inherit;
|
|
|
|
// text-rendering: auto;
|
2013-06-12 04:32:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.border-radius(@radius) {
|
|
|
|
-webkit-border-radius: @radius;
|
|
|
|
-moz-border-radius: @radius;
|
|
|
|
border-radius: @radius;
|
|
|
|
}
|
|
|
|
|
2013-10-02 00:58:36 +00:00
|
|
|
.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);
|
|
|
|
}
|
|
|
|
|
2013-06-12 04:32:47 +00:00
|
|
|
.icon-stack(@width: 2em, @height: 2em, @top-font-size: 1em, @base-font-size: 2em) {
|
2013-10-01 00:27:45 +00:00
|
|
|
.fa-stack {
|
2013-06-12 04:32:47 +00:00
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
|
|
|
width: @width;
|
|
|
|
height: @height;
|
|
|
|
line-height: @width;
|
|
|
|
vertical-align: -35%;
|
2013-10-01 02:07:49 +00:00
|
|
|
.fa {
|
2013-06-12 04:32:47 +00:00
|
|
|
position: absolute;
|
2013-08-21 11:18:37 +00:00
|
|
|
display: block;
|
2013-06-12 04:32:47 +00:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
font-size: @top-font-size;
|
|
|
|
line-height: inherit;
|
|
|
|
*line-height: @height;
|
2013-08-21 11:18:37 +00:00
|
|
|
text-align: center;
|
2013-06-12 04:32:47 +00:00
|
|
|
}
|
2013-10-01 00:27:45 +00:00
|
|
|
.fa-stack-base {
|
2013-06-12 04:32:47 +00:00
|
|
|
font-size: @base-font-size;
|
2013-08-21 11:18:37 +00:00
|
|
|
*line-height: (@height / @base-font-size);
|
2013-06-12 04:32:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|