简体   繁体   English

如何在Liferay自定义主题中禁用Alloy UI CSS?

[英]How can I disable Alloy UI CSS in a Liferay Custom Theme?

I want to develop a Liferay Custom Theme. 我想开发一个Liferay自定义主题。 So I need to disable the Alloy UI only CSS and Bootstrap CSS. 因此,我需要仅禁用Alloy UI的CSS和Bootstrap CSS。 Other functionality like the drag and drop protlet and calender events need to remain the same. 其他功能(如拖放protlet和日历事件)需要保持不变。

The only thing I need to do is disable the Alloy UI css in the theme level. 我唯一需要做的就是在主题级别禁用Alloy UI css。 How can we achieve that? 我们如何实现这一目标? In which page do I need to edit/remove the css of Alloy? 我需要在哪个页面上编辑/删除Alloy的CSS?

There are 3 levels from which you can base your theme. 您可以从3个级别中选择主题。 Each layer builds on top of the next. 每层都建立在下一层之上。

  • _unstyled - Has all the rule sets, but no rules. _unstyled具有所有规则集,但没有规则。
  • _styled - Only structural CSS is copied into your theme. _styled仅将结构CSS复制到主题中。
  • Classic - All CSS is copied from the default Liferay theme. Classic -从默认的Liferay主题复制所有CSS。

To use something other than classic add a property named "theme.parent" whose value is one of the above. 要使用除classic以外的其他东西,请添加一个名为“ theme.parent”的属性,其值为上述之一。 For example: 例如:

<?xml version="1.0"?>
<!DOCTYPE project>

<project name="sample-styled-minimal-theme" basedir="." default="deploy">
    <property name="plugin.version" value="1" />
    <property name="theme.parent" value="_styled" />

    <import file="../build-common-theme.xml" />
</project>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM