Skip to content

Instantly share code, notes, and snippets.

@divienginesupport
Created April 19, 2023 07:40
Show Gist options
  • Save divienginesupport/ea2d56f435c94ca7607c243b9c8d829e to your computer and use it in GitHub Desktop.
Save divienginesupport/ea2d56f435c94ca7607c243b9c8d829e to your computer and use it in GitHub Desktop.
CSS to style Divi Font Icons that have the class .de-icon
/* Styling for the .de-icon class used in some of our WooCommerce snippets */
.de-icon {
/* Set the color of the icon */
color: #0fe5a8 !important;
/* Set the font family for the icon */
font-family: "ETmodules";
/* Prevent the icon from being read by screen readers */
speak: none;
/* Set the font style, weight, and variant to their default values */
font-style: normal;
font-weight: normal;
font-variant: normal;
/* Ensure the text is not transformed (e.g., no uppercase) */
text-transform: none;
/* Set the line height to 1 */
line-height: 1;
/* Enable font smoothing for better rendering on WebKit and Gecko-based browsers */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
/* Add space between the icon and the text that follows it */
margin-right: 5px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment