问题
I'm creating some custom modules on PyroCMS, and the problem is, that the default design that is inherited from global.css and other default design css files really messes with my new design and makes it harder to create a design for my custom modules.
writing !important on every line doesn't seem like a good option.
Also, I'm trying to add chromatable jQuery plugin, but it is not quite woring right, because the default CSS files ar conflicting with the design that plugin is trying to add.
Are there any good practices for doing this? Maybe there is a way I can clear or reset all CSS for my custom module design?
回答1:
I would prefer using different layout for the custom module. PyroCMS allows you the create a completely different layout for each custom module you create, simply create a new layout with the name of your custom module in theme folder and it will be loaded automatically. With this feature you can include another CSS instead of you global.css . Refer this link http://www.pyrocms.com/docs/1.3/manuals/designers/theme-layouts
来源:https://stackoverflow.com/questions/9546499/pyrocms-custom-module-design-clear-css-formating-from-default-design