talos
1// Mixins
2// --------------------------
3
4@mixin fa-icon {
5-webkit-font-smoothing: antialiased;
6-moz-osx-font-smoothing: grayscale;
7display: inline-block;
8font-style: normal;
9font-variant: normal;
10font-weight: normal;
11line-height: 1;
12}
13
14@mixin fa-icon-rotate($degrees, $rotation) {
15-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation})";
16transform: rotate($degrees);
17}
18
19@mixin fa-icon-flip($horiz, $vert, $rotation) {
20-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation}, mirror=1)";
21transform: scale($horiz, $vert);
22}
23
24
25// Only display content to screen readers. A la Bootstrap 4.
26//
27// See: http://a11yproject.com/posts/how-to-hide-content/
28
29@mixin sr-only {
30border: 0;
31clip: rect(0, 0, 0, 0);
32height: 1px;
33margin: -1px;
34overflow: hidden;
35padding: 0;
36position: absolute;
37width: 1px;
38}
39
40// Use in conjunction with .sr-only to only display content when it's focused.
41//
42// Useful for "Skip to main content" links; see http://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1
43//
44// Credit: HTML5 Boilerplate
45
46@mixin sr-only-focusable {
47&:active,
48&:focus {
49clip: auto;
50height: auto;
51margin: 0;
52overflow: visible;
53position: static;
54width: auto;
55}
56}
57