File: patternfly-fa-icons.scss

package info (click to toggle)
cockpit-machines 348-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 281,568 kB
  • sloc: javascript: 708,409; python: 14,549; cpp: 11,141; sh: 954; makefile: 159; xml: 88
file content (53 lines) | stat: -rw-r--r-- 1,322 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// Font Awesome 5 icons https://fontawesome.com
@use '../sass-utilities' as *;
@use '../assets/fontawesome/variables' as *;
@use '../assets/fontawesome/icons' as icons;
@use '../assets/fontawesome' as *;

@if not($pf-v6-global--disable-fontawesome) {
  @if $pf-v6-global--enable-fontawesome-cdn {
    // stylelint-disable no-invalid-position-at-import-rule
    @import "https://use.fontawesome.com/releases/v5.7.2/css/solid.css";
    @import "https://use.fontawesome.com/releases/v5.7.2/css/fontawesome.css";
    // stylelint-enable no-invalid-position-at-import-rule
  } @else {
    @font-face {
      font-family: "Font Awesome 5 Free";
      font-style: normal;
      font-weight: 900;
      src:
        url("#{$fa-font-path}/fa-solid-900.woff2") format("woff2");
    }

    // stylelint-disable
    .fa,
    .fas {
      font-family: "Font Awesome 5 Free";
      font-weight: 900;
    }
    // stylelint-enable

    @include icons.pf-fa-icon-vars;
  }
}

@mixin pf-fa-icon-base {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}

@if not($pf-v6-global--disable-fontawesome) {
  .#{$fa-css-prefix},
  .fa,
  .fas,
  .far,
  .fal,
  .fab {
    @include pf-fa-icon-base;
  }
}