input conf header swap and rounded container

This commit is contained in:
thecozies 2024-01-29 09:42:23 -06:00 committed by Mr-Wiseguy
parent 28104fa76d
commit 66f184eec4
5 changed files with 45 additions and 30 deletions

View File

@ -128,6 +128,27 @@
</tab> </tab>
<panel class="config" data-model="controls_model"> <panel class="config" data-model="controls_model">
<form class="config__form" data-attr-cur-input="cur_input_row"> <form class="config__form" data-attr-cur-input="cur_input_row">
<div class="config__header">
<div class="config__header-left">
<button
class="button button--primary"
>
<div class="button__label">Controller</div>
</button>
<button
class="button button--secondary"
>
<div class="button__label">Keyboard</div>
</button>
</div>
<div>
<button
class="button button--warning"
>
<div class="button__label">Reset to defaults</div>
</button>
</div>
</div>
<div class="config__wrapper input-config"> <div class="config__wrapper input-config">
<div class="input-config__horizontal-split"> <div class="input-config__horizontal-split">
<div class="input-config__mappings" data-event-mouseout="set_input_row_focus(-1)"> <div class="input-config__mappings" data-event-mouseout="set_input_row_focus(-1)">
@ -296,27 +317,6 @@
</div> </div>
</div> </div>
</div> </div>
<div class="config__footer">
<div class="config__footer-left">
<button
class="button button--primary"
>
<div class="button__label">Controller</div>
</button>
<button
class="button button--secondary"
>
<div class="button__label">Keyboard</div>
</button>
</div>
<div>
<button
class="button button--warning"
>
<div class="button__label">Reset to defaults</div>
</button>
</div>
</div>
</form> </form>
</panel> </panel>
<tab class="tab"> <tab class="tab">

File diff suppressed because one or more lines are too long

View File

@ -28,19 +28,27 @@
background-color: $color-bg-shadow; background-color: $color-bg-shadow;
} }
.config__footer { .config__header, .config__footer {
@include border-top($color-border-soft);
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
width: 100%; width: 100%;
padding: space(20) space(20);
background-color: $color-bg-shadow; background-color: $color-bg-shadow;
}
.config__header {
@include border-bottom($color-border-soft);
padding: space(12) space(20);
}
.config__footer {
@include border-top($color-border-soft);
padding: space(20) space(20);
border-bottom-left-radius: $border-radius-modal; border-bottom-left-radius: $border-radius-modal;
border-bottom-right-radius: $border-radius-modal; border-bottom-right-radius: $border-radius-modal;
} }
.config__footer-left { .config__header-left {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
flex: 1 1 auto; flex: 1 1 auto;

View File

@ -55,10 +55,12 @@ $visual-max-width: $base-modal-max-width - $mapping-min-width - $scrollbar-width
display: flex; display: flex;
flex-direction: column; flex-direction: column;
position: absolute; position: absolute;
top: 0; top: space(16);
right: 0; right: space(16);
bottom: 0; bottom: space(16);
left: 0; left: space(16);
border-radius: space(108);
background-color: $color-white-a5;
} }
.input-config__visual-half { .input-config__visual-half {

View File

@ -18,3 +18,8 @@ $border-width-thickness: space($border-width-thickness-num);
border-top-color: $col; border-top-color: $col;
border-top-width: $border-width-thickness; border-top-width: $border-width-thickness;
} }
@mixin border-bottom($col: $color-border) {
border-bottom-color: $col;
border-bottom-width: $border-width-thickness;
}