diff options
author | 0neGal <mail@0negal.com> | 2024-12-20 18:24:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-20 18:24:40 +0100 |
commit | 4db50da2c75968f8c5ca6804e332da8de401a3e0 (patch) | |
tree | def65ef730f3ef794de06f46a003aa2685997cb0 /src/app/css/selection.css | |
parent | 558ef98614b8ad34ba4fb35a8f0b6fe94211f938 (diff) | |
parent | fab59ba8b8b1c567ee158b9681c5b373fb7303e4 (diff) | |
download | Viper-4db50da2c75968f8c5ca6804e332da8de401a3e0.tar.gz Viper-4db50da2c75968f8c5ca6804e332da8de401a3e0.zip |
Merge branch 'main' into PR/onLine-event
Diffstat (limited to 'src/app/css/selection.css')
-rw-r--r-- | src/app/css/selection.css | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/app/css/selection.css b/src/app/css/selection.css new file mode 100644 index 0000000..5b7d647 --- /dev/null +++ b/src/app/css/selection.css @@ -0,0 +1,23 @@ +#selection { + z-index: 99999999999999; + + transition: 0.15s ease-in-out; + transition-property: + opacity, border-radius, background, + transform, width, height, top, left; + + position: fixed; + pointer-events: none; + transform: scale(1.0); + background: rgba(255, 255, 255, 0.3); + border-radius: calc(var(--padding) / 2); +} + +:has(.active-selection.scroll-selection) #selection { + background: rgba(255, 255, 255, 0.2); +} + +#selection.keyboard-selecting, +#selection.controller-selecting { + transform: scale(1.1); +} |