From 5ddd657ebc534445b6adc8451fe0a280f899f13d Mon Sep 17 00:00:00 2001 From: binary-husky Date: Tue, 28 Jan 2025 23:50:21 +0800 Subject: [PATCH] tooltip glass transparent css --- themes/common.css | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/themes/common.css b/themes/common.css index 50568c5d..f2cbd32a 100644 --- a/themes/common.css +++ b/themes/common.css @@ -103,13 +103,9 @@ min-width: min(80px, 100%); } - -#cbs { - background-color: var(--block-background-fill) !important; -} - +#cbs, #cbsc { - background-color: var(--block-background-fill) !important; + background-color: rgba(var(--block-background-fill), 0.5) !important; } #interact-panel .form { @@ -303,4 +299,15 @@ #elem_prompt { /* 左右为0;顶部为0,底部为2px */ padding: 0 0 4px 0; -} \ No newline at end of file + backdrop-filter: blur(10px); + background-color: rgba(var(--block-background-fill), 0.5); +} + + +#tooltip #cbs, +#tooltip #cbsc, +#tooltip .svelte-b6y5bg, +#tooltip .tabitem { + backdrop-filter: blur(10px); + background-color: rgba(var(--block-background-fill), 0.5); +}