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

Font Awesome 5 custom list icons using :before pseudo-element #212

Open
mhulse opened this issue Apr 15, 2019 · 0 comments
Open

Font Awesome 5 custom list icons using :before pseudo-element #212

mhulse opened this issue Apr 15, 2019 · 0 comments

Comments

@mhulse
Copy link
Owner

mhulse commented Apr 15, 2019

.ap_list-checker,
.ap_list-checker li {
  margin: 0;
  padding: 0;
}
.ap_list-checker ul {
    font-size: 1.4rem;
    margin: 1rem 0;
}
.ap_list-checker li {
    list-style: none;
    padding-left: 2.5rem;
    margin-left: 1rem;
    position: relative;
}
.ap_list-checker li::before {
    color: #91ca42;
    -webkit-font-smoothing: antialiased;
    content: "\f00c";
    font-family: "Font Awesome 5 Pro";
    font-size: 1.6rem;
    font-style: normal;
    font-variant: normal;
    font-weight: 900;
    line-height: 1;
    position: absolute;
    left: 0;
    top: 0;
    text-decoration: inherit;
    text-rendering: auto;
}
.ap_list-checker li + li {
    margin-top: 0.75rem;
}

Example:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant