在主题从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
以获取该输出。
根据the migration guide,您只需要删除这些变量。它们是在您的主题文件之一(例如_variables_custom.scss
)中定义的,不再需要。