Skip to content

Commit 1b0e642

Browse files
authored
Merge pull request #128 from w3c/fa-icon-width
fix font awesome icons width
2 parents ed7a326 + 34f012e commit 1b0e642

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

assets-src/styles/sass/30-base/_icons.scss

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@
55
svg {
66
fill: currentColor;
77
height: auto;
8-
width: 100%;
8+
9+
&:not(.svg-inline--fa) {
10+
width: 100%;
11+
}
912
}
1013

11-
1214
/**
1315
SVG icons are sized relative to font size, thanks to the em unit.
1416
*/
@@ -92,4 +94,4 @@ Pay attention to whether the icon is before the text or after.
9294
}
9395
}
9496
}
95-
}
97+
}

public/dist/assets/styles/core.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1521,6 +1521,8 @@ pre {
15211521
svg {
15221522
fill: currentColor;
15231523
height: auto;
1524+
}
1525+
svg:not(.svg-inline--fa) {
15241526
width: 100%;
15251527
}
15261528

public/dist/assets/styles/core.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)