mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2025-10-27 13:40:31 +00:00
src 结构调整, 添加 functions
This commit is contained in:
@@ -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%);
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user