mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-05 20:58:27 +02:00
Make Stream settings dialog controller-friendly
This commit is contained in:
@@ -17,11 +17,13 @@
|
||||
}
|
||||
|
||||
.bx-settings-wrapper {
|
||||
width: 450px;
|
||||
min-width: 450px;
|
||||
max-width: 600px;
|
||||
margin: auto;
|
||||
padding: 12px 6px;
|
||||
|
||||
@media screen and (max-width: 450px) {
|
||||
min-width: unset;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
@@ -5,7 +5,7 @@
|
||||
display: inline-block;
|
||||
min-width: 40px;
|
||||
font-family: var(--bx-monospaced-font);
|
||||
font-size: 14px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
button {
|
||||
|
@@ -49,6 +49,11 @@
|
||||
background: #2f2f2f;
|
||||
border-color: #484848;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
border-color: #fff;
|
||||
outline: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -70,13 +75,14 @@
|
||||
box-shadow: 0px 0px 6px #000;
|
||||
overflow: overlay;
|
||||
|
||||
> div[data-group=mkb] {
|
||||
> div[data-tab-group=mkb] {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
&:focus,
|
||||
*:focus {
|
||||
outline: none !important;
|
||||
}
|
||||
@@ -106,8 +112,23 @@
|
||||
.bx-stream-settings-row {
|
||||
display: flex;
|
||||
border-bottom: 1px solid #40404080;
|
||||
margin-bottom: 16px;
|
||||
padding-bottom: 16px;
|
||||
padding: 16px 8px;
|
||||
border-left: 2px solid transparent;
|
||||
|
||||
&:hover, &:focus-within {
|
||||
background-color: #242424;
|
||||
}
|
||||
|
||||
input[type=checkbox],
|
||||
select {
|
||||
&:focus {
|
||||
filter: drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff);
|
||||
}
|
||||
}
|
||||
|
||||
&:has(input:focus), &:has(select:focus), &:has(button:focus) {
|
||||
border-left-color: white;
|
||||
}
|
||||
|
||||
> label {
|
||||
font-size: 16px;
|
||||
@@ -120,6 +141,10 @@
|
||||
|
||||
input {
|
||||
accent-color: var(--bx-primary-button-color);
|
||||
|
||||
&:focus {
|
||||
accent-color: var(--bx-danger-button-color);
|
||||
}
|
||||
}
|
||||
|
||||
select:disabled {
|
||||
@@ -143,7 +168,7 @@
|
||||
}
|
||||
|
||||
.bx-stream-settings-tab-contents {
|
||||
div[data-group="shortcuts"] {
|
||||
div[data-tab-group="shortcuts"] {
|
||||
> div {
|
||||
&[data-has-gamepad=true] {
|
||||
> div:first-of-type {
|
||||
|
@@ -73,10 +73,10 @@
|
||||
|
||||
button.bx-button {
|
||||
border: none;
|
||||
height: 30px;
|
||||
height: 24px;
|
||||
width: 24px;
|
||||
padding: 0;
|
||||
line-height: 30px;
|
||||
line-height: 24px;
|
||||
color: #fff;
|
||||
border-radius: 4px;
|
||||
font-weight: bold;
|
||||
@@ -85,7 +85,8 @@
|
||||
|
||||
&.bx-inactive {
|
||||
pointer-events: none;
|
||||
opacity: 0.1;
|
||||
opacity: 0.2;
|
||||
background: transparent !important;
|
||||
}
|
||||
|
||||
span {
|
||||
|
Reference in New Issue
Block a user