mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
chore: enhance file tree colors
This commit is contained in:
parent
c0ec8a84f7
commit
d788f1fd42
1 changed files with 11 additions and 4 deletions
|
|
@ -13,18 +13,20 @@ $github-header-z-index: 32;
|
|||
$github-pull-request-float-header-z-index: 110;
|
||||
$minimal-z-index: max($github-header-z-index, $github-pull-request-float-header-z-index) + 1;
|
||||
|
||||
@mixin interactive-background($default, $hover, $active) {
|
||||
@mixin interactive-background($default, $hover, $active, $focus: $hover) {
|
||||
background-color: $default;
|
||||
&:focus,
|
||||
&:hover {
|
||||
background-color: $hover;
|
||||
}
|
||||
&:focus {
|
||||
background-color: $focus;
|
||||
}
|
||||
&:active {
|
||||
background-color: $active;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin interactive-background-on-before($default, $hover, $active) {
|
||||
@mixin interactive-background-on-before($default, $hover, $active, $focus: $hover) {
|
||||
&::before {
|
||||
background-color: $default;
|
||||
}
|
||||
|
|
@ -38,6 +40,11 @@ $minimal-z-index: max($github-header-z-index, $github-pull-request-float-header-
|
|||
background-color: $active;
|
||||
}
|
||||
}
|
||||
&:hover {
|
||||
&::before {
|
||||
background-color: $hover;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
:root {
|
||||
|
|
@ -627,7 +634,7 @@ $minimal-z-index: max($github-header-z-index, $github-pull-request-float-header-
|
|||
}
|
||||
|
||||
@include interactive-background(
|
||||
var(--gitako-bg-primary),
|
||||
var(--gitako-auto-white),
|
||||
var(--gitako-bg-secondary),
|
||||
var(--gitako-bg-tertiary)
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue