💄 合成显示具有材料

This commit is contained in:
BTMuli
2025-12-20 00:36:41 +08:00
parent 7218b70da4
commit 6911d61025
7 changed files with 268 additions and 69 deletions

View File

@@ -0,0 +1,19 @@
/**
* 一些功能集合
* @since Beta v0.9.0
*/
@use "sass:map";
/** 根据传入星级返回颜色 */
@function get-od-star-color($star:0) {
$star-color-map: (
1:#abb2bfff,
2:#98c379ff,
3:#61afefff,
4:#c678ddff,
5:#d19a66ff
);
@if map.has-key($star-color-map, $star) {
@return map.get($star-color-map, $star);
}
@return #e06c75ff;
}