-
Notifications
You must be signed in to change notification settings - Fork 37
CSS inheritance
Zimny Lech edited this page Aug 29, 2014
·
5 revisions
CyTube Plus uses up to 5 different CSS files. Higher level CSS files inherit and eventually overwrite all properties from lower level files. Note: don't forget to set !important flag for all properties with such attribute inherited from lower levels, if you want to overwrite.
- 1st level:
id="usertheme"- default "Slate" theme to set initial layout - 2nd level:
id="chancss"- optional CSS set by administrator in "CSS editor" textarea - 3rd level:
id="chanexternalcss"- main CyTube Plus stylesheet frommain.cssfile with layout enhancements- level 3.5:
id="chanexternalcss-fix"- innerstyletag with fixes for users with accepted JS
- level 3.5:
- 4th level:
id="usertheme-fix"- theme selected by user in the configuration box - 5th level:
id="usercss"- user custom CSS from "Layout Configuration" modal window
For example, if some element in usertheme has property margin-top:10px, chanexternalcss - margin-top:8px, and usercss - margin-top:10px, it will be have 10px top margin.