Browse code

Created repository.

DoubleBastionAdmin authored on 02/03/2022 00:26:46
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,56 @@
1
+---
2
+---
3
+// Mixins
4
+// --------------------------
5
+
6
+@mixin fa-icon() {
7
+{% include code/core.scss %}
8
+}
9
+
10
+@mixin fa-icon-rotate($degrees, $rotation) {
11
+  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation})";
12
+  -webkit-transform: rotate($degrees);
13
+      -ms-transform: rotate($degrees);
14
+          transform: rotate($degrees);
15
+}
16
+
17
+@mixin fa-icon-flip($horiz, $vert, $rotation) {
18
+  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation}, mirror=1)";
19
+  -webkit-transform: scale($horiz, $vert);
20
+      -ms-transform: scale($horiz, $vert);
21
+          transform: 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 {
30
+  position: absolute;
31
+  width: 1px;
32
+  height: 1px;
33
+  padding: 0;
34
+  margin: -1px;
35
+  overflow: hidden;
36
+  clip: rect(0,0,0,0);
37
+  border: 0;
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 {
49
+    position: static;
50
+    width: auto;
51
+    height: auto;
52
+    margin: 0;
53
+    overflow: visible;
54
+    clip: auto;
55
+  }
56
+}