0

在从 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...
4

2 回答 2

0

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

  1. npm install -g generator-liferay-theme@9.xx
  2. npm install --save-dev liferay-theme-tasks@9.xx
  3. 吞咽升级
  4. 吞咽初始化

那么你就可以走了。

于 2021-02-19T05:25:28.087 回答
0

我猜你打电话gulp upgrade是为了得到那个输出。

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

于 2020-01-10T07:45:14.103 回答