Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: CSS for SVG sprite sheets #14279

Open
3 tasks done
Crissov opened this issue Nov 16, 2018 · 1 comment · May be fixed by #15162
Open
3 tasks done

Feature request: CSS for SVG sprite sheets #14279

Crissov opened this issue Nov 16, 2018 · 1 comment · May be fixed by #15162

Comments

@Crissov
Copy link

Crissov commented Nov 16, 2018

In /advanced-options/svg-sprites/ /sprites/, you are already providing 3 SVG files with all free icons collected inside them, but there is no ready-made CSS file that references them like the default webfont glyphs.

.fas-foo 
{
  background-image: url(fa-regular.svg#foo);
}
.fas-foo-before::before, 
.fas-foo-after::after
{
  content: url(fa-regular.svg#foo);
}

Related: #3203, #14280, #10352

Is this in relation to an existing part of Font Awesome or something new?

This offers a readily usable index of already available files.

What is 1 thing that we can do when building this feature that will guarantee that it is awesome?

Authors who chose this option would not have to use meaningless Unicode PUA characters that also will never be displayed with an unintentional font.

Why would other Font Awesome users care about this?

Since authors are moving away from font files for decorative symbols, an SVG-and-CSS solution that uses basically the same markup authors are used to, should look attractive to them.

Feature request checklist

  • This is a single feature
  • The title starts with "Feature request: " and is followed by a clear feature name
  • I have searched for existing issues and to the best of my knowledge this is not a duplicate
@tagliala
Copy link
Member

@Crissov could you please follow our template for feature requests?

@Crissov Crissov changed the title Provide CSS file with SVG sprite sheets Feature request: CSS for SVG sprite sheets Nov 16, 2018
@Crissov Crissov linked a pull request Jun 17, 2019 that will close this issue
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants