summaryrefslogtreecommitdiff
path: root/packages/fontawesome-free-6.5.2-web/less/_sizing.less
blob: fe1d945dca37db1dee30d39857772e826cb98b21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// sizing icons
// -------------------------

// literal magnification scale
.sizes-literal(@factor) when (@factor > 0) {
  .sizes-literal((@factor - 1));

  .@{fa-css-prefix}-@{factor}x {
    font-size: (@factor * 1em);
  }
}
.sizes-literal(10);

// step-based scale (with alignment)
each(.fa-sizes(), {
  .@{fa-css-prefix}-@{key} {
    .fa-size(@value);
  }
});