fix kb nav in debug and debug styling

This commit is contained in:
thecozies 2024-03-02 14:22:30 -06:00
parent 39fd31f731
commit d3bb526c91
3 changed files with 76 additions and 45 deletions

View File

@ -9,7 +9,10 @@
<div class="config-debug-option"> <div class="config-debug-option">
<label <label
class="config-debug-option__label" class="config-debug-option__label"
>Warp</label> >
<div>Warp</div>
</label>
<div class="config-debug__option-split">
<div class="config-debug__option-controls"> <div class="config-debug__option-controls">
<div class="config-debug__select-wrapper"> <div class="config-debug__select-wrapper">
<div class="config-debug__select-label"><div>Region</div></div> <div class="config-debug__select-label"><div>Region</div></div>
@ -30,6 +33,7 @@
</select> </select>
</div> </div>
</div> </div>
<div class="config-debug__option-trigger">
<button <button
class="icon-button icon-button--success" onclick="do_warp" class="icon-button icon-button--success" onclick="do_warp"
> >
@ -39,6 +43,8 @@
</div> </div>
</div> </div>
</div> </div>
</div>
</div>
</form> </form>
</body> </body>
</template> </template>

File diff suppressed because one or more lines are too long

View File

@ -18,15 +18,13 @@
.config-debug-option { .config-debug-option {
@include set-color($color-text-dim); @include set-color($color-text-dim);
@include trans-colors-svg; @include trans-colors-svg;
display: flex; @include border-bottom($color-border-soft);
display: block;
position: relative; position: relative;
flex-direction: row; flex-direction: column;
align-items: center;
justify-content: space-between;
width: 100%; width: 100%;
height: auto; height: auto;
padding: space(4) space(16) space(4) space(20); padding: space(12) space(4);
border-radius: $border-radius-sm;
background-color: rgba(0, 0, 0, 0); background-color: rgba(0, 0, 0, 0);
&:focus-visible:not(:disabled, [disabled]), &:focus-visible:not(:disabled, [disabled]),
@ -40,26 +38,41 @@
} }
.icon-button { .icon-button {
flex: 1 1 auto; margin-left: space(8);
} }
} }
.config-debug__option-split {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}
.config-debug-option__label { .config-debug-option__label {
@extend %label-md; @extend %label-md;
flex: 1 1 auto; display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-start;
padding: space(4) space(16) space(12);
width: auto;
height: auto; height: auto;
white-space: nowrap; white-space: nowrap;
} }
.config-debug__option-controls { .config-debug__option-controls {
display: flex; display: block;
position: relative; position: relative;
flex-direction: row; flex: 1 1 auto;
align-items: center; height: auto;
justify-content: space-between; width: auto;
flex: 1 1 100%; max-width: space(600);
height: space(56); padding: 0 space(12);
padding: 0 space(12) 0 space(12); }
.config-debug__option-trigger {
flex: 1 1 auto;
} }
.config-debug__select-wrapper { .config-debug__select-wrapper {
@ -70,14 +83,15 @@
justify-content: flex-start; justify-content: flex-start;
flex: 1 1 100%; flex: 1 1 100%;
width: auto; width: auto;
max-width: space(600);
height: auto; height: auto;
padding: 0 space(8); padding: space(4);
.config-debug__select-label { .config-debug__select-label {
@extend %label-sm; @extend %label-sm;
padding-right: space(16); padding-right: space(16);
flex: auto; flex: auto;
width: auto; width: space(144);
> div { > div {
display: inline; display: inline;
@ -100,8 +114,14 @@
height: space(40); height: space(40);
border-radius: $border-radius-md; border-radius: $border-radius-md;
background-color: $color-white-a5; background-color: $color-white-a5;
cursor: pointer;
&:hover { &:hover:not(:focus) {
@include border($color-white-a80);
}
&:hover:focus, &:focus {
@include border($color-white-a80);
background-color: $color-white-a20; background-color: $color-white-a20;
} }
@ -129,12 +149,17 @@
color: $color-text-dim; color: $color-text-dim;
font-weight: 400; font-weight: 400;
&:hover { &:hover, &:focus {
background-color: $color-bg-overlay; background-color: $color-white-a20;
}
&:hover:not(:checked) {
cursor: pointer;
} }
&:checked { &:checked {
color: $color-white; color: $color-white;
background-color: $color-white-a5;
} }
} }
} }