Open
Conversation
**`fa-symbol`**[`-regular`|`-solid`|`-brands`]**`.css`** + CSS variable `--fa-symbol` is set by classes. + The variable can be used with `var(--fa-symbol)` which is predefined for some element and class combinations: * **(`dt`|`dd`|`li`)**`.fa`[`r`|`s`|`b`] use `list-style-image` * **`.i`**`.fa`[`r`|`s`|`b`] uses `background-image` * **`.a`**`.fa`[`r`|`s`|`b`] uses `content` *after* element content * **(`.b`|`i`)**`.fa`[`r`|`s`|`b`] use `content` *before* element content * **`summary`**`.fa`[`r`|`s`|`b`] use `content` for *marker* box
**`sprites-var`**[`-regular`|`-solid`|`-brands`]**`.css`** + CSS variables `--fa`[`r`|`s`|`b`]*`-name`* are defined for all Font Awesome Free symbols inside `:root` and are thus available anywhere. + They point a `url()` to the respective symbol in one of the three SVG files found in `/sprites/`. + These variables can be used by authors at will.
+ CSS images are set by classes. + No CSS variables are used. + The type of image (i.e. *background, list-style* or *content*) is predefined for some (HTML) element and class combinations: * **(`dt`|`dd`|`li`)**`.fa`[`r`|`s`|`b`]*`-name`* use `list-style-image` * **`.i`**`.fa`[`r`|`s`|`b`]*`-name`* use `background-image` * **`.a`**`.fa`[`r`|`s`|`b`]*`-name`* use `content` *after* element content * **(`.b`|`i`)**`.fa`[`r`|`s`|`b`]*`-name`* use `content` *before* element content * **`summary`**`.fa`[`r`|`s`|`b`]*`-name`* use `content` for *marker* box
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixes #14279
New files in
/css/(which could be moved into/sprites/instead):sprites[-regular|-solid|-brands].cssdt|dd|li).fa[r|s|b]-nameuselist-style-image.i.fa[r|s|b]-nameusebackground-image.a.fa[r|s|b]-nameusecontentafter element content.b|i).fa[r|s|b]-nameusecontentbefore element contentsummary.fa[r|s|b]-nameusecontentfor marker boxsprites-var[-regular|-solid|-brands].css--fa[r|s|b]-nameare defined for:rootand are thus available anywhere.url()to the respective symbol in one of the three SVG files found in/sprites/.--fa-namevariables locally to one of the 3+ variants by class:fa-symbol[-regular|-solid|-brands].css--fa-symbolis set by classes.var(--fa-symbol)which is predefined for some element and class combinations:dt|dd|li).fa[r|s|b] uselist-style-image.i.fa[r|s|b] usesbackground-image.a.fa[r|s|b] usescontentafter element content.b|i).fa[r|s|b] usecontentbefore element contentsummary.fa[r|s|b] usecontentfor marker boxI understand that:
I understand that it will not be merged and I will not be listed as a contributor on this project.