mirror of
https://github.com/wukko/cobalt.git
synced 2025-04-29 22:14:26 +02:00
web/ProcessingStatus: replace box-shadow with filter
This commit is contained in:
parent
b3e523b1ce
commit
9d6e638614
@ -37,16 +37,18 @@
|
|||||||
|
|
||||||
<style>
|
<style>
|
||||||
#processing-status {
|
#processing-status {
|
||||||
--processing-status-glow: 0 0 8px 0px var(--button-elevated-hover);
|
|
||||||
|
|
||||||
pointer-events: all;
|
pointer-events: all;
|
||||||
padding: 7px;
|
padding: 7px;
|
||||||
border-radius: 30px;
|
border-radius: 30px;
|
||||||
box-shadow:
|
box-shadow: var(--button-box-shadow);
|
||||||
var(--button-box-shadow),
|
|
||||||
var(--processing-status-glow);
|
|
||||||
|
|
||||||
transition: box-shadow 0.2s, background-color 0.2s, transform 0.2s;
|
filter: drop-shadow(0 0 3px var(--button-elevated-hover));
|
||||||
|
|
||||||
|
transition:
|
||||||
|
background-color 0.2s,
|
||||||
|
transform 0.2s;
|
||||||
|
|
||||||
|
will-change: transform, background-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
#processing-status:focus-visible {
|
#processing-status:focus-visible {
|
||||||
@ -58,9 +60,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#processing-status.completed {
|
#processing-status.completed {
|
||||||
box-shadow:
|
box-shadow: var(--focus-ring);
|
||||||
var(--focus-ring),
|
|
||||||
var(--processing-status-glow);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
:global([data-theme="light"]) #processing-status.completed {
|
:global([data-theme="light"]) #processing-status.completed {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user