mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-07 16:17:20 +02:00
Dim Stream settings' overlay when not playing
This commit is contained in:
parent
c1502b5552
commit
d83261d816
@ -9,12 +9,16 @@
|
|||||||
|
|
||||||
.bx-stream-settings-overlay {
|
.bx-stream-settings-overlay {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
background: transparent;
|
background: #0b0b0be3;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
z-index: var(--bx-stream-settings-overlay-z-index);
|
z-index: var(--bx-stream-settings-overlay-z-index);
|
||||||
|
|
||||||
|
&[data-is-playing="true"] {
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.bx-stream-settings-tabs {
|
.bx-stream-settings-tabs {
|
||||||
|
@ -251,8 +251,9 @@ export class StreamSettings {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.$overlay!.classList.remove('bx-gone');
|
this.$overlay!.classList.remove('bx-gone');
|
||||||
$container.classList.remove('bx-gone');
|
this.$overlay!.dataset.isPlaying = STATES.isPlaying.toString();
|
||||||
|
|
||||||
|
$container.classList.remove('bx-gone');
|
||||||
document.body.classList.add('bx-no-scroll');
|
document.body.classList.add('bx-no-scroll');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user