添加 sass 预处理

This commit is contained in:
lutinglt
2025-06-24 13:52:03 +08:00
parent 77fe50a4cc
commit 9a070c5726
13 changed files with 201 additions and 90 deletions

View File

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

20
styles/t1.tsx Normal file
View File

@@ -0,0 +1,20 @@
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,23 +1,15 @@
import { css } from "@linaria/core";
import { themeVars } from "src/theme";
import { mix } from "polished";
import { css, themeVars } from "src";
export const setting_global = css`
:global() {
.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[1]};
}
}
}
.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%);
}
}
`;