PyroCMS - 定制模块设计,从默认设计清除CSS格式 [英] PyroCMS - custom module design, clear CSS formating from default design

查看:138
本文介绍了PyroCMS - 定制模块设计,从默认设计清除CSS格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在PyroCMS上创建一些自定义模块,问题是,从global.css和其他默认设计css文件继承的默认设计真的混乱了我的新设计,使得更难创建一个设计我的自定义模块

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.

,我试图添加chromatable jQuery插件,但它不是很正确,因为默认的CSS文件与插件试图添加的设计冲突。

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.

有没有什么好的做法这样做?也许有一种方法,我可以清除或重置所有的CSS我的自定义模块设计?

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?

推荐答案

我希望为自定义模块使用不同的布局。 PyroCMS允许您为您创建的每个自定义模块创建一个完全不同的布局,只需创建一个新的布局与您的主题文件夹中的自定义模块的名称,它将被自动加载。使用此功能,您可以包括另一个CSS,而不是global.css。请参阅此链接
http://www.pyrocms.com/docs/1.3/manuals / designers / theme-layouts

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

这篇关于PyroCMS - 定制模块设计,从默认设计清除CSS格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆