feat: Key binds screen (#108)
--------- Co-authored-by: gguio <nikvish150@gmail.com> Co-authored-by: Vitaly <vital2580@icloud.com>
This commit is contained in:
parent
6375df1576
commit
6bf1085fbe
21 changed files with 857 additions and 71 deletions
88
src/react/KeybindingsScreen.module.css
Normal file
88
src/react/KeybindingsScreen.module.css
Normal file
|
|
@ -0,0 +1,88 @@
|
|||
.container {
|
||||
overflow-x: auto;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
@media (max-width: 590px) {
|
||||
.container {
|
||||
width: 90vw;
|
||||
}
|
||||
}
|
||||
|
||||
.group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
.group-category {
|
||||
font-size: 1rem;
|
||||
text-align: center;
|
||||
margin-top: 15px;
|
||||
margin-bottom: 7px;
|
||||
text-transform: capitalize;
|
||||
}
|
||||
|
||||
.actionBinds {
|
||||
position: relative;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.warning-container {
|
||||
flex-basis: 25%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: inherit;
|
||||
}
|
||||
|
||||
.actionName {
|
||||
flex-basis: 30%;
|
||||
margin-right: 5px;
|
||||
flex-wrap: wrap;
|
||||
align-self: center;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.undo-keyboard,
|
||||
.undo-gamepad {
|
||||
aspect-ratio: 1;
|
||||
}
|
||||
|
||||
.button {
|
||||
width: 100%;
|
||||
font-size: 7px;
|
||||
}
|
||||
|
||||
.margin-left {
|
||||
margin-left: 25px;
|
||||
}
|
||||
|
||||
.matched-bind {
|
||||
border: 1px solid red;
|
||||
border-bottom: 1px solid red;
|
||||
}
|
||||
|
||||
.matched-bind-warning {
|
||||
display: flex;
|
||||
color: yellow;
|
||||
font-family: inherit;
|
||||
font-size: 5px;
|
||||
width: fit-content;
|
||||
}
|
||||
|
||||
.matched-bind-warning a {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
/* ~~~~ custom bindings styles */
|
||||
|
||||
.chat-command {
|
||||
font: inherit;
|
||||
color: white;
|
||||
display: block;
|
||||
height: 100%;
|
||||
flex-grow: 1;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue