diff options
author | 0neGal <mail@0negal.com> | 2022-05-17 02:02:46 +0200 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2022-05-17 02:02:46 +0200 |
commit | 08b9d0db360736454186a08cdb5b4630522e55c7 (patch) | |
tree | 03fe33b70be69194f517fe63b665b8be626cea2b /src/app/main.css | |
parent | bb5446be8164176219784290f18751c6f35c4047 (diff) | |
download | Viper-08b9d0db360736454186a08cdb5b4630522e55c7.tar.gz Viper-08b9d0db360736454186a08cdb5b4630522e55c7.zip |
preview <webview> now fades in and out seamlessly
Instead of instantly flashing when it's done loading and so on, it now
fades in, instead, without any problems.
Diffstat (limited to 'src/app/main.css')
-rw-r--r-- | src/app/main.css | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/app/main.css b/src/app/main.css index 903c03e..3229f6c 100644 --- a/src/app/main.css +++ b/src/app/main.css @@ -92,10 +92,17 @@ button { .popup webview { width: 78%; margin: 0 auto; + filter: opacity(1.0); + transition: filter 0.15s ease-in-out; margin-top: calc(var(--spacing) / 2); height: calc(100% - calc(var(--spacing) / 2)); } +.popup webview.loading { + filter: opacity(0.0); + pointer-events: none; +} + .popup .el, .popup .misc, .popup .loading { --spacing: calc(var(--padding) / 2); --height: calc(var(--padding) * 3.5); |