MyBB Community Forums

Full Version: Do color.css stylesheets over-write global.css?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Under "Default" themes I've added a new color style sheet (myblue.css)
Do the styles that I add or create there over-write the styles from global.css?

Is the color style sheet a sort of "child" theme that will take precedence over the styles in global.css ?
yes, selected color scheme takes precedence over the colors used in global.css
What if: I copied the entire content of global.css and put that content into color_black.css?
Would then; any or all changes made to color_black.css over-write global.css?

Is this any different than creating a new theme?

(Thank you for helping me understand a little more.)
basically last defined style property takes precedence over earlier defined style property.

MyBB theme stylesheets have order numbers.
they can be changed through the themes section.

if a stylesheet has higher numbered order then it loads at last
& has precedence over lower numbered order stylesheets (which load first)
Okay, Got it.
If one wanted to make extensive changes to the global.css, then it would be better to duplicate the default theme, make the changes to the clone and use the duplicate theme as default.

Otherwise, extensive changes to a color.css would run after global.css = making it slower to load.