mirror of
https://github.com/imputnet/cobalt.git
synced 2025-01-29 17:58:27 +00:00
web/SettingsCategory: rename state from animate to focus
Some checks failed
Run tests / check lockfile correctness (push) Waiting to run
Run tests / web sanity check (push) Waiting to run
Run tests / api sanity check (push) Waiting to run
Run service tests / test service functionality (push) Has been cancelled
Run service tests / test service: ${{ matrix.service }} (push) Has been cancelled
Some checks failed
Run tests / check lockfile correctness (push) Waiting to run
Run tests / web sanity check (push) Waiting to run
Run tests / api sanity check (push) Waiting to run
Run service tests / test service functionality (push) Has been cancelled
Run service tests / test service: ${{ matrix.service }} (push) Has been cancelled
This commit is contained in:
parent
913beda417
commit
0f51b22d99
|
@ -8,19 +8,19 @@
|
|||
export let disabled = false;
|
||||
export let beta = false;
|
||||
|
||||
let animate = false;
|
||||
let focus = false;
|
||||
|
||||
$: hash = $page.url.hash.replace("#", "");
|
||||
|
||||
$: if (hash === sectionId) {
|
||||
animate = true;
|
||||
focus = true;
|
||||
}
|
||||
</script>
|
||||
|
||||
<section
|
||||
id={sectionId}
|
||||
class="settings-content"
|
||||
class:animate
|
||||
class:focus
|
||||
class:disabled
|
||||
aria-hidden={disabled}
|
||||
>
|
||||
|
@ -47,11 +47,11 @@
|
|||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.settings-content.animate {
|
||||
.settings-content.focus {
|
||||
animation: highlight 2s;
|
||||
}
|
||||
|
||||
:global([data-reduce-motion="true"]) .settings-content.animate {
|
||||
:global([data-reduce-motion="true"]) .settings-content.focus {
|
||||
animation: highlight-lite 2s !important;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue