在从Liferay7到Liferay7.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...发布于 2020-01-10 15:45:14
我猜你打电话给gulp upgrade是为了得到那个输出。
根据the migration guide的说法,您只需删除这些变量。它们是在你的一个主题文件(例如_variables_custom.scss)中定义的,不再需要了。
发布于 2021-02-19 13:25:28
主题迁移到7.2将使用以下步骤更改结构
保存开发npm install generator-liferay-theme@9.x.x
然后你就可以走了。
https://stackoverflow.com/questions/59663196
复制相似问题