mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-05 20:58:27 +02:00
Add taking screenshot animation
This commit is contained in:
@@ -19,3 +19,26 @@ body[data-media-type=default] .bx-stream-refresh-button {
|
||||
body[data-media-type=tv] .bx-stream-refresh-button {
|
||||
top: calc(var(--gds-focus-borderSize) + 80px) !important;
|
||||
}
|
||||
|
||||
@keyframes bx-anim-taking-screenshot {
|
||||
0% {
|
||||
border: 0px solid #ffffff80;
|
||||
}
|
||||
|
||||
50% {
|
||||
border: 8px solid #ffffff80;
|
||||
}
|
||||
|
||||
100% {
|
||||
border: 0px solid #ffffff80;
|
||||
}
|
||||
}
|
||||
|
||||
div[data-testid=media-container].bx-taking-screenshot:before {
|
||||
animation: bx-anim-taking-screenshot 0.5s ease;
|
||||
content: ' ';
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: var(--bx-screenshot-animation-z-index);
|
||||
}
|
||||
|
Reference in New Issue
Block a user