summaryrefslogtreecommitdiff
path: root/packages/fontawesome-free-6.5.2-web/less/_sizing.less
diff options
context:
space:
mode:
Diffstat (limited to 'packages/fontawesome-free-6.5.2-web/less/_sizing.less')
-rw-r--r--packages/fontawesome-free-6.5.2-web/less/_sizing.less19
1 files changed, 19 insertions, 0 deletions
diff --git a/packages/fontawesome-free-6.5.2-web/less/_sizing.less b/packages/fontawesome-free-6.5.2-web/less/_sizing.less
new file mode 100644
index 0000000..fe1d945
--- /dev/null
+++ b/packages/fontawesome-free-6.5.2-web/less/_sizing.less
@@ -0,0 +1,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);
+ }
+});