mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-11 23:55:18 +02:00
6.0
This commit is contained in:
97
src/assets/css/key-binding-dialog.styl
Executable file
97
src/assets/css/key-binding-dialog.styl
Executable file
@@ -0,0 +1,97 @@
|
||||
.bx-key-binding-dialog-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: var(--bx-key-binding-dialog-overlay-z-index);
|
||||
background: black;
|
||||
opacity: 50%;
|
||||
}
|
||||
|
||||
.bx-key-binding-dialog {
|
||||
display: flex;
|
||||
flex-flow: column;
|
||||
max-height: 90vh;
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
margin-right: -50%;
|
||||
transform: translate(-50%, -50%);
|
||||
min-width: 420px;
|
||||
padding: 20px;
|
||||
border-radius: 8px;
|
||||
z-index: var(--bx-key-binding-dialog-z-index);
|
||||
background: #1a1b1e;
|
||||
color: #fff;
|
||||
font-weight: 400;
|
||||
font-size: 16px;
|
||||
font-family: var(--bx-normal-font);
|
||||
box-shadow: 0 0 6px #000;
|
||||
user-select: none;
|
||||
-webkit-user-select: none;
|
||||
|
||||
*:focus {
|
||||
outline: none !important;
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin-bottom: 12px;
|
||||
color: #fff;
|
||||
display: block;
|
||||
font-family: var(--bx-title-font);
|
||||
font-size: 32px;
|
||||
font-weight: 400;
|
||||
line-height: var(--bx-button-height);
|
||||
}
|
||||
|
||||
> div {
|
||||
overflow: auto;
|
||||
padding: 2px 0;
|
||||
}
|
||||
|
||||
> button {
|
||||
padding: 8px 32px;
|
||||
margin: 10px auto 0;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
display: block;
|
||||
background-color: #2d3036;
|
||||
text-align: center;
|
||||
color: white;
|
||||
text-transform: uppercase;
|
||||
font-family: var(--bx-title-font);
|
||||
font-weight: 400;
|
||||
line-height: 18px;
|
||||
font-size: 14px;
|
||||
|
||||
&:hover {
|
||||
@media (hover: hover) {
|
||||
background-color: #515863;
|
||||
}
|
||||
}
|
||||
|
||||
&:focus {
|
||||
background-color: #515863;
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
margin-bottom: 1rem;
|
||||
|
||||
li {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&[data-flags*="[1]"] > li[data-flag="1"],
|
||||
&[data-flags*="[2]"] > li[data-flag="2"],
|
||||
&[data-flags*="[4]"] > li[data-flag="4"],
|
||||
&[data-flags*="[8]"] > li[data-flag="8"] {
|
||||
display: list-item;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@media screen and (max-width: 450px) {
|
||||
.bx-key-binding-dialog {
|
||||
min-width: 100%;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user