mirror of
https://github.com/lipis/flag-icons.git
synced 2026-04-26 09:25:50 +03:00
[GH-ISSUE #443] Feature request: Be able to exclude squared (1x1) flags from CSS using Sass/Less variable #265
Labels
No labels
3rd-party
3rd-party
bug
code
documentation
enhancement
fixed-in-master
flag-request
help needed
missing-flag
missing-flag
pull-request
wrong-flag
wrong-flag
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/flag-icons#265
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Klooven on GitHub (Mar 20, 2018).
Original GitHub issue: https://github.com/lipis/flag-icons/issues/443
As probably most of the sites using the flag icons only use the
4x3format of the flags, I'd think that there could be a variable to exclude squared flags from the CSS when building it (would result in smaller CSS file). For example.flag-icon-aewould be kept, but.flag-icon-ae.flag-icon-squaredwould not be included in the CSS.How does that sound?
Here's an exaple SCSS implementation (not tested):
Sass reference for
@if@re-thc commented on GitHub (Jul 8, 2019):
Would be good to have 2 separate css outputs for distribution as well (e.g. for cdn usage)
@lipis commented on GitHub (Oct 23, 2021):
PRs are welcome for this one.. It's more about the flags