mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2025-10-27 05:31:04 +00:00
颜色变量计算&颜色主题迁移
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
import "styles/test";
|
||||
import "styles/t1";
|
||||
@@ -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};
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
@@ -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%);
|
||||
}
|
||||
}
|
||||
`;
|
||||
Reference in New Issue
Block a user