Using Fontawesome Icons as CSS Pseudo Elements for CFF Button Field
-
Is this possible? Everything works but the icon. I have my font awesome js script in my header.
My CSS works https://codepen.io/eberkland/pen/JjQQBwo
I am using web font method with pseudo elments.
Code in the cff form editor works, except for icon not showing up
/* New Row BUTTON Style */ fbuilder .newrow-btn input[type=button]{
background: #E2e2e2 !important;
padding: 0.6em 1.3em !important;
min-height:60px !important;
width:100% !important;
font-weight: 600 !important;
font-size: 18px !important;
border: 1px solid #381700 !important;
border-radius: 0.5em 0.1em 0.1em 0.5em !important;
box-shadow: 0.01em 0.01em;
box-sizing:border-box;
cursor: pointer;
color:#381700 !important;
text-align:left;
text-transform:uppercase;
letter-spacing:1px
} fbuilder .newrow-btn input[type=button]:hover {
transform: translate(-0.03em, -0.03em);
box-shadow: 0.05em 0.05em;
background:#c2d1bc !important;
color: #2a3c24 !important
} fbuilder .newrow-btn input[type=button]:active {
transform: translate(0.05em, 0.05em);
box-shadow: 0.01em 0.01em;
} fbuilder .promo-btn input[type=button]{
background: #E2e2e2 !important;
padding: 0 1em !important;
min-height:60px !important;
font-weight: 600 !important;
font-size: 18px !important;
border: 1px solid #381700 !important;
border-radius: 0.1em 0.1em 0.1em 0.1em !important;
box-shadow: 0.01em 0.01em !important;
box-sizing:border-box;
cursor: pointer;
color:#381700 !important;
text-transform:uppercase;
letter-spacing:1px;
} fbuilder .promo-btn input[type=button]:hover {
transform: translate(-0.03em, -0.03em) !important;
box-shadow: 0.05em 0.05em !important;
background:#fee2d5 !important;
color:#cc5500 !important
} fbuilder .promo-btn input[type=button]:active {
transform: translate(0.05em, 0.05em) !important;
box-shadow: 0.01em 0.01em !important;
}
/* Step 1: Common Properties
These styles are required to make icons render reliably */ fbuilder .promo-btn .icon input[type=button]::before {
display: inline-block;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
}
/* an example rule targeting any element with the "account" class to render fa-user icon in the Solid style */ fbuilder .promo-btn input[type=button]::before {
font: var(--fa-font-brands);
content: '\f288';
line-height:.8;
font-size:28px;
vertical-align:middle
}
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.