design: improve badge flair color mixing
This commit is contained in:
1 file changed
+21
-2
@@ -388,6 +388,8 @@
|
|||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
@reference '../../../../app.css';
|
||||||
|
|
||||||
.meta {
|
.meta {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-areas:
|
grid-template-areas:
|
||||||
@@ -428,7 +430,24 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
:global(.badge-tag-color) {
|
:global(.badge-tag-color) {
|
||||||
background-color: var(--tag-color, #fff) !important;
|
background-color: color-mix(
|
||||||
color: var(--tag-text-color, #000) !important;
|
in oklab,
|
||||||
|
#eee,
|
||||||
|
var(--tag-color, #fff)
|
||||||
|
) !important;
|
||||||
|
color: color-mix(in oklab, #000, var(--tag-text-color, #000)) !important;
|
||||||
|
|
||||||
|
@variant dark {
|
||||||
|
background-color: color-mix(
|
||||||
|
in oklab,
|
||||||
|
#222,
|
||||||
|
var(--tag-color, #fff)
|
||||||
|
) !important;
|
||||||
|
color: color-mix(
|
||||||
|
in oklab,
|
||||||
|
#fff 80%,
|
||||||
|
var(--tag-text-color, #fff)
|
||||||
|
) !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in new issue
Block a user