We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ice-scripts 支持的多主题是通过注入 css 变量的方案实现,但这种方案限制了Next组件中不能将替换的 sass 色值变量用于色值计算。 sass 颜色计算作为 sass 基础的能力,希望不要限制组件对颜色变量的使用。希望主题方案上可以进行支持
@import 'theme/variable.scss'; @import 'next/variable.scss'; $color-calculate-overlay-bg-color: change-color( $color: $mask-background, $alpha: $mask-opacity )!default; .color-calculate-overlay-bg-color {color: $color-calculate-overlay-bg-color;}
理论编译结果:
.color-calculate-overlay-bg-color {color: #ffffff;}
已验证追加覆盖 sass 后将不会再执行原 sass 内容的计算逻辑
针对 Next 组件进行约束方便统一提取计算变量:
The text was updated successfully, but these errors were encountered:
OK 按照约束条件来没问题的
Sorry, something went wrong.
[email protected] 已支持
ClarkXia
No branches or pull requests
背景
ice-scripts 支持的多主题是通过注入 css 变量的方案实现,但这种方案限制了Next组件中不能将替换的 sass 色值变量用于色值计算。
sass 颜色计算作为 sass 基础的能力,希望不要限制组件对颜色变量的使用。希望主题方案上可以进行支持
方案
理论编译结果:
已验证追加覆盖 sass 后将不会再执行原 sass 内容的计算逻辑
约束
针对 Next 组件进行约束方便统一提取计算变量:
The text was updated successfully, but these errors were encountered: