Editing SCSS files or CSS in "Options?"

I have a plugin that uses scss files. Will entering CSS in X-Theme’s “options” section override the generated CSS files from the plugin?

Hi @us291888,

The CSS under Theme Options > CSS will be generated very bottom before the </head> tab:

It mean the priority of Theme Options CSS is higher than the plugin CSS so you can override it under Theme Options > CSS.

For more information, please take a look at this:

https://developer.tizen.org/dev-guide/2.4/org.tizen.ui.practices/html/web/w3c/html_priority_w.htm#css

Hope it helps :slight_smile:

I assumed that Theme Options > CSS was higher in hierarchy, which is where I made my CSS edits, but I have to put !important if I want the changes, which I thought was very weird.

Hi Jason,

That also depends on the level of specificity of the selectors you have written in the CSS. The more specific the selector is, the higher precedence it will be given.

Please check this link:

Hope this helps.

You’re right. I completely forgot about that. Thank you both for your help.

Glad we could help.

Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.