2013-06-12 12:32:47 +08:00
|
|
|
/* EXTRAS
|
|
|
|
* -------------------------- */
|
|
|
|
|
|
|
|
/* Stacked and layered icon */
|
|
|
|
.icon-stack();
|
|
|
|
|
|
|
|
/* Animated rotating icon */
|
2013-10-01 08:27:45 +08:00
|
|
|
.fa-spin {
|
2013-06-12 12:32:47 +08:00
|
|
|
display: inline-block;
|
2013-08-21 19:18:37 +08:00
|
|
|
-webkit-animation: spin 2s infinite linear;
|
2013-06-12 12:32:47 +08:00
|
|
|
-moz-animation: spin 2s infinite linear;
|
|
|
|
-o-animation: spin 2s infinite linear;
|
|
|
|
animation: spin 2s infinite linear;
|
|
|
|
}
|
2013-06-15 03:10:15 +08:00
|
|
|
|
|
|
|
/* Prevent stack and spinners from being taken inline when inside a link */
|
2013-10-01 08:27:45 +08:00
|
|
|
a .fa-stack,
|
|
|
|
a .fa-spin {
|
2013-06-12 12:32:47 +08:00
|
|
|
display: inline-block;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
@-moz-keyframes spin {
|
|
|
|
0% { -moz-transform: rotate(0deg); }
|
|
|
|
100% { -moz-transform: rotate(359deg); }
|
|
|
|
}
|
|
|
|
@-webkit-keyframes spin {
|
|
|
|
0% { -webkit-transform: rotate(0deg); }
|
|
|
|
100% { -webkit-transform: rotate(359deg); }
|
|
|
|
}
|
|
|
|
@-o-keyframes spin {
|
|
|
|
0% { -o-transform: rotate(0deg); }
|
|
|
|
100% { -o-transform: rotate(359deg); }
|
|
|
|
}
|
|
|
|
@-ms-keyframes spin {
|
|
|
|
0% { -ms-transform: rotate(0deg); }
|
|
|
|
100% { -ms-transform: rotate(359deg); }
|
|
|
|
}
|
|
|
|
@keyframes spin {
|
|
|
|
0% { transform: rotate(0deg); }
|
|
|
|
100% { transform: rotate(359deg); }
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Icon rotations and mirroring */
|
2013-10-01 08:27:45 +08:00
|
|
|
.fa-rotate-90:before {
|
2013-08-21 19:18:37 +08:00
|
|
|
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);
|
2013-06-12 12:32:47 +08:00
|
|
|
-webkit-transform: rotate(90deg);
|
|
|
|
-moz-transform: rotate(90deg);
|
|
|
|
-ms-transform: rotate(90deg);
|
|
|
|
-o-transform: rotate(90deg);
|
|
|
|
transform: rotate(90deg);
|
|
|
|
}
|
|
|
|
|
2013-10-01 08:27:45 +08:00
|
|
|
.fa-rotate-180:before {
|
2013-08-21 19:18:37 +08:00
|
|
|
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2);
|
2013-06-12 12:32:47 +08:00
|
|
|
-webkit-transform: rotate(180deg);
|
|
|
|
-moz-transform: rotate(180deg);
|
|
|
|
-ms-transform: rotate(180deg);
|
|
|
|
-o-transform: rotate(180deg);
|
|
|
|
transform: rotate(180deg);
|
|
|
|
}
|
|
|
|
|
2013-10-01 08:27:45 +08:00
|
|
|
.fa-rotate-270:before {
|
2013-08-21 19:18:37 +08:00
|
|
|
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
|
2013-06-12 12:32:47 +08:00
|
|
|
-webkit-transform: rotate(270deg);
|
|
|
|
-moz-transform: rotate(270deg);
|
|
|
|
-ms-transform: rotate(270deg);
|
|
|
|
-o-transform: rotate(270deg);
|
|
|
|
transform: rotate(270deg);
|
|
|
|
}
|
|
|
|
|
2013-10-01 08:27:45 +08:00
|
|
|
.fa-flip-horizontal:before {
|
2013-06-12 12:32:47 +08:00
|
|
|
-webkit-transform: scale(-1, 1);
|
|
|
|
-moz-transform: scale(-1, 1);
|
|
|
|
-ms-transform: scale(-1, 1);
|
|
|
|
-o-transform: scale(-1, 1);
|
|
|
|
transform: scale(-1, 1);
|
|
|
|
}
|
|
|
|
|
2013-10-01 08:27:45 +08:00
|
|
|
.fa-flip-vertical:before {
|
2013-06-12 12:32:47 +08:00
|
|
|
-webkit-transform: scale(1, -1);
|
|
|
|
-moz-transform: scale(1, -1);
|
|
|
|
-ms-transform: scale(1, -1);
|
|
|
|
-o-transform: scale(1, -1);
|
|
|
|
transform: scale(1, -1);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ensure rotation occurs inside anchor tags */
|
|
|
|
a {
|
2013-10-01 08:27:45 +08:00
|
|
|
.fa-rotate-90, .fa-rotate-180, .fa-rotate-270, .fa-flip-horizontal, .fa-flip-vertical {
|
2013-06-12 12:32:47 +08:00
|
|
|
&:before { display: inline-block; }
|
|
|
|
}
|
|
|
|
}
|