summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2022-09-16 13:08:44 +0200
committerPierre Ossman <ossman@cendio.se>2022-09-16 13:18:06 +0200
commitaf10b0c5e45315d0bea84f8678d34d750cafd334 (patch)
tree9036fd94ab383e63a7fc4279e9405554c8734847
parent32f90338635aeff37c311c784d9b0e90bfe44b22 (diff)
downloadnovnc-af10b0c5e45315d0bea84f8678d34d750cafd334.tar.gz
Avoid using translate() for positioning
It often results in a blurry result on WebKit based browsers.
-rw-r--r--app/styles/base.css6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/styles/base.css b/app/styles/base.css
index f83370e..aaf2472 100644
--- a/app/styles/base.css
+++ b/app/styles/base.css
@@ -475,8 +475,8 @@ select:active {
position: fixed;
left: calc(100vw - 50px);
right: auto;
- top: 50%;
- transform: translateY(-50%) scale(0);
+ top: calc(50vh - 25%);
+ transform: scale(0);
width: 100px;
height: 50%;
max-height: 600px;
@@ -497,7 +497,7 @@ select:active {
visibility: visible;
opacity: 1;
transition-delay: 0.2s;
- transform: translateY(-50%) scale(1);
+ transform: scale(1);
}
/* General button style */