颜色变量计算&颜色主题迁移

This commit is contained in:
lutinglt
2025-06-27 22:55:59 +08:00
parent 16298f2b11
commit 5ae1f2f634
14 changed files with 514 additions and 412 deletions

View File

@@ -1,2 +0,0 @@
import "styles/test";
import "styles/t1";

View File

@@ -1,20 +0,0 @@
import { css, themeVars } from "src";
export const setting_global = css`
.user-main-content,
.repo-setting-content,
.user-setting-content,
.org-setting-content,
.admin-setting-content {
.ui.right {
.ui.primary.button.tiny {
color: #fff;
background-color: #238636;
&:hover {
background-color: #29903b;
border-color: ${themeVars.color.primary.light.num1};
}
}
}
}
`;

View File

@@ -1,22 +0,0 @@
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: ${scaleColorLight(red, 10)};
background-color: color.scale(#cc4848, $lightness: 10%);
}
.text {
color: ${scaleColorLight(red, -20)};
background-color: color.scale(#cc4848, $lightness: -20%);
}
}
`;