已弃用的变量迁移到Liferay 7.2



在从Liferay 7到Liferay 7.2的主题迁移过程中,我遇到了以下问题。请告诉我用什么来代替这些不推荐使用的变量?

$state-danger-text was deprecated in Lexicon CSS 1.x.x and has been removed in the new Clay 2.x.x version
$state-info-bg was deprecated in Lexicon CSS 1.x.x and has been removed in the new Clay 2.x.x version
$state-info-border was deprecated in Lexicon CSS 1.x.x and has been removed in the new Clay 2.x.x version
$state-info-text was deprecated in Lexicon CSS 1.x.x and has been removed in the new Clay 2.x.x version
$state-success-border was deprecated in Lexicon CSS 1.x.x and has been removed in the new Clay 2.x.x version
$state-success-text was deprecated in Lexicon CSS 1.x.x and has been removed in the new Clay 2.x.x version
$state-warning-border was deprecated in Lexicon CSS 1.x.x and has been removed in the new Clay 2.x.x version
$state-warning-text was deprecated in Lexicon CSS 1.x.x and has been removed in the new Clay 2.x.x version
and many more...

我猜你调用gulp upgrade来获取该输出。

根据迁移指南,您只需删除这些变量。它们在您的一个主题文件中定义(例如_variables_custom.scss(,不再需要了。

主题迁移到 7.2 将更改结构使用以下步骤

  1. npm install -g generator-liferay-theme@9.x.x
  2. npm install --save-dev liferay-theme-tasks@9.x.x
  3. 咕噜升级
  4. 噜咕噜初始化

那你就可以走了。

最新更新