src 结构调整, 添加 functions

This commit is contained in:
lutinglt
2025-06-24 20:31:12 +08:00
parent 9a070c5726
commit 711e01b66c
15 changed files with 136 additions and 68 deletions

View File

@@ -1,15 +1,22 @@
import { mix } from "polished";
import { css, themeVars } from "src";
import { scaleColorLight } from "src/functions";
const red = "#cc4848";
export const setting_global = css`
@use "sass:color";
.lines-num span:after {
color: ${themeVars.color.primary.hover};
}
.ui.cards > .card,
.ui.card {
> .extra a:not(.ui):hover {
color: ${mix(0.1, "#fff", "#cc4848")};
background-color: scale-color(#cc4848, $lightness: 10%);
color: ${scaleColorLight(red, 10)};
background-color: color.scale(#cc4848, $lightness: 10%);
}
.text {
color: ${scaleColorLight(red, -20)};
background-color: color.scale(#cc4848, $lightness: -20%);
}
}
`;