Avoid using translate() for positioning

It often results in a blurry result on WebKit based browsers.
This commit is contained in:
Pierre Ossman 2022-09-16 13:08:44 +02:00
parent 32f9033863
commit af10b0c5e4
1 changed files with 3 additions and 3 deletions

View File

@ -475,8 +475,8 @@ select:active {
position: fixed; position: fixed;
left: calc(100vw - 50px); left: calc(100vw - 50px);
right: auto; right: auto;
top: 50%; top: calc(50vh - 25%);
transform: translateY(-50%) scale(0); transform: scale(0);
width: 100px; width: 100px;
height: 50%; height: 50%;
max-height: 600px; max-height: 600px;
@ -497,7 +497,7 @@ select:active {
visibility: visible; visibility: visible;
opacity: 1; opacity: 1;
transition-delay: 0.2s; transition-delay: 0.2s;
transform: translateY(-50%) scale(1); transform: scale(1);
} }
/* General button style */ /* General button style */