Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

How to override Metronic CSS style


Hello, I have Metronic setup correctly and I see this css style in \components\helpers\_text.scss:
i {
&.bi,
&[class^="fonticon-"],
&[class*=" fonticon-"],
&[class^="fa-"],
&[class*=" fa-"],
&[class^="la-"],
&[class*=" la-"] {
line-height: 1;
font-size: 1rem;
color: var(--kt-text-muted);
}
}
that I would like to override without touching the original file.
I need to reset the font-size to inherit from parent.
If I place my updated css in the _variables.custom.scss I see my custom class appearing on top of the style.bundle.css.
So my question is where do I put custom css to override the default style.bundle.css?

Thank you,
Emile


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (2)


Hi,

Are you using CSS or SASS ?

If you are using CSS, To override the default css with your custom one, please include your custom CSS after style.bundle.css in the HTML.

Regards.


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(