2013-10-01 04:07:49 +02:00
|
|
|
---
|
|
|
|
---
|
2013-05-07 21:05:08 +02:00
|
|
|
// Mixins
|
|
|
|
// --------------------------
|
|
|
|
|
2014-08-24 18:42:24 +02:00
|
|
|
.fa-icon() {
|
2014-12-28 15:27:45 +01:00
|
|
|
{% include code/core.less %}
|
2014-08-24 18:42:24 +02:00
|
|
|
}
|
|
|
|
|
2013-10-20 19:07:55 +02:00
|
|
|
.fa-icon-rotate(@degrees, @rotation) {
|
2016-04-05 18:37:39 +02:00
|
|
|
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=@{rotation})";
|
2013-10-02 02:58:36 +02:00
|
|
|
-webkit-transform: rotate(@degrees);
|
|
|
|
-ms-transform: rotate(@degrees);
|
|
|
|
transform: rotate(@degrees);
|
|
|
|
}
|
|
|
|
|
2013-10-23 05:40:21 +02:00
|
|
|
.fa-icon-flip(@horiz, @vert, @rotation) {
|
2016-04-05 18:37:39 +02:00
|
|
|
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=@{rotation}, mirror=1)";
|
2013-10-02 02:58:36 +02:00
|
|
|
-webkit-transform: scale(@horiz, @vert);
|
|
|
|
-ms-transform: scale(@horiz, @vert);
|
|
|
|
transform: scale(@horiz, @vert);
|
|
|
|
}
|
2016-04-05 22:53:24 +02:00
|
|
|
|
|
|
|
|
2016-04-12 16:14:31 +02:00
|
|
|
// Only display content to screen readers. A la Bootstrap 4.
|
2016-04-05 22:53:24 +02:00
|
|
|
//
|
|
|
|
// See: http://a11yproject.com/posts/how-to-hide-content/
|
|
|
|
|
|
|
|
.sr-only() {
|
|
|
|
position: absolute;
|
|
|
|
width: 1px;
|
|
|
|
height: 1px;
|
|
|
|
padding: 0;
|
|
|
|
margin: -1px;
|
|
|
|
overflow: hidden;
|
|
|
|
clip: rect(0,0,0,0);
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Use in conjunction with .sr-only to only display content when it's focused.
|
|
|
|
//
|
|
|
|
// Useful for "Skip to main content" links; see http://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1
|
|
|
|
//
|
|
|
|
// Credit: HTML5 Boilerplate
|
|
|
|
|
|
|
|
.sr-only-focusable() {
|
|
|
|
&:active,
|
|
|
|
&:focus {
|
|
|
|
position: static;
|
|
|
|
width: auto;
|
|
|
|
height: auto;
|
|
|
|
margin: 0;
|
|
|
|
overflow: visible;
|
|
|
|
clip: auto;
|
|
|
|
}
|
|
|
|
}
|