InvokeAI/invokeai/frontend/web/src/common/components/IAINumberInput.scss

67 lines
1.4 KiB
SCSS
Raw Normal View History

.invokeai__number-input-form-control {
display: flex;
align-items: center;
column-gap: 1rem;
.invokeai__number-input-form-label {
color: var(--text-color-secondary);
&[data-focus] + .invokeai__number-input-root {
outline: none;
border: 2px solid var(--input-border-color);
box-shadow: 0 0 10px 0 var(--input-box-shadow-color);
}
&[aria-invalid='true'] + .invokeai__number-input-root {
outline: none;
border: 2px solid var(--border-color-invalid);
box-shadow: 0 0 10px 0 var(--box-shadow-color-invalid);
}
}
.invokeai__number-input-root {
height: 2rem;
display: grid;
grid-template-columns: auto max-content;
column-gap: 0.5rem;
align-items: center;
background-color: var(--background-color-secondary);
border: 2px solid var(--border-color);
border-radius: 0.3rem;
}
.invokeai__number-input-field {
border: none;
font-weight: bold;
width: 100%;
height: auto;
font-size: 0.9rem;
padding: 0 0.5rem;
&:focus {
outline: none;
box-shadow: none;
}
&:disabled {
opacity: 0.2;
}
}
.invokeai__number-input-stepper {
display: grid;
padding-right: 0.5rem;
.invokeai__number-input-stepper-button {
border: none;
// expand arrow hitbox
padding: 0 0.5rem;
margin: 0 -0.5rem;
svg {
width: 10px;
height: 10px;
}
}
}
}