PyroCMS - custom module design, clear CSS formating from default design

帅比萌擦擦* 提交于 2019-12-11 13:19:00

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!