mirror of
https://github.com/mastodon/mastodon.git
synced 2026-09-12 14:26:07 -05:00
Refactor color-bg-blend token (#40350)
This commit is contained in:
@@ -28,7 +28,7 @@ html {
|
||||
// Compensate for column header height when scrolling elements into view
|
||||
--column-header-height: 74px;
|
||||
|
||||
background: var(--color-bg-blend-solid);
|
||||
background: var(--color-bg-blend);
|
||||
}
|
||||
|
||||
// Variable for easily inverting directional UI elements,
|
||||
|
||||
@@ -40,15 +40,10 @@
|
||||
--overlay-strength-secondary: 4%;
|
||||
--color-bg-secondary: var(--color-grey-900);
|
||||
--color-bg-tertiary: var(--color-grey-800); // legacy
|
||||
--color-bg-blend-strength: 30%;
|
||||
--color-bg-blend: #{utils.css-alpha(
|
||||
var(--color-black),
|
||||
var(--color-bg-blend-strength)
|
||||
)};
|
||||
--color-bg-blend-solid: color-mix(
|
||||
--color-bg-blend: color-mix(
|
||||
in srgb,
|
||||
var(--color-bg-primary),
|
||||
var(--color-black) var(--color-bg-blend-strength)
|
||||
var(--color-black) 30%
|
||||
);
|
||||
--color-bg-highlight: #{utils.css-alpha(var(--color-text-primary), 5%)};
|
||||
|
||||
|
||||
@@ -36,15 +36,10 @@
|
||||
--overlay-strength-secondary: 4%;
|
||||
--color-bg-secondary: var(--color-grey-50);
|
||||
--color-bg-tertiary: var(--color-grey-100); // legacy
|
||||
--color-bg-blend-strength: 4%;
|
||||
--color-bg-blend: #{utils.css-alpha(
|
||||
var(--color-grey-950),
|
||||
var(--color-bg-blend-strength)
|
||||
)};
|
||||
--color-bg-blend-solid: color-mix(
|
||||
--color-bg-blend: color-mix(
|
||||
in srgb,
|
||||
var(--color-bg-primary),
|
||||
var(--color-grey-950) var(--color-bg-blend-strength)
|
||||
var(--color-grey-950) 4%
|
||||
);
|
||||
--color-bg-highlight: #{utils.css-alpha(var(--color-text-primary), 4%)};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user