258 lines
5.0 KiB
CSS
258 lines
5.0 KiB
CSS
.add-dsp-form__header {
|
|
margin-bottom: var(--space-5);
|
|
}
|
|
|
|
.add-dsp-form__title {
|
|
margin: 0;
|
|
font-size: var(--font-lg);
|
|
font-weight: var(--font-weight-semibold);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.add-dsp-form__hint {
|
|
margin: var(--space-2) 0 0;
|
|
font-size: var(--font-sm);
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.add-dsp-form__field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-2);
|
|
margin-bottom: var(--space-4);
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.add-dsp-form__row {
|
|
display: flex;
|
|
gap: var(--space-3);
|
|
}
|
|
|
|
.add-dsp-form__field label {
|
|
font-size: var(--font-sm);
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* Input */
|
|
|
|
.add-dsp-form__field input {
|
|
height: var(--card-control-height);
|
|
padding: 0 var(--space-3);
|
|
|
|
background: var(--bg-panel);
|
|
color: var(--text-primary);
|
|
|
|
border: var(--border-width) solid var(--border-hairline);
|
|
border-radius: var(--radius-sm);
|
|
|
|
font-family: var(--font-ui);
|
|
font-size: var(--font-sm);
|
|
|
|
outline: none;
|
|
|
|
appearance: none;
|
|
-webkit-appearance: none;
|
|
|
|
transition: border-color var(--dur-base) var(--ease-standard);
|
|
}
|
|
|
|
.add-dsp-form__field input.mono {
|
|
font-family: var(--font-mono);
|
|
font-weight: var(--font-weight-normal);
|
|
}
|
|
|
|
.add-dsp-form__field input:focus {
|
|
border-color: var(--accent-brand);
|
|
}
|
|
|
|
.add-dsp-form__field input::placeholder {
|
|
color: var(--text-muted);
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.add-dsp-form__actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: var(--space-3);
|
|
margin-top: var(--space-2);
|
|
}
|
|
|
|
.add-dsp-form__field input:disabled {
|
|
color: var(--text-muted);
|
|
background: var(--bg-panel);
|
|
border-color: var(--border-hairline);
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* CheckBox */
|
|
|
|
.add-dsp-form__checkbox-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.add-dsp-form__checkbox-label input[type='checkbox'] {
|
|
appearance: none;
|
|
-webkit-appearance: none;
|
|
box-sizing: border-box;
|
|
|
|
flex: 0 0 auto;
|
|
display: block;
|
|
|
|
width: 18px;
|
|
height: 18px;
|
|
aspect-ratio: 1 / 1;
|
|
padding: 0;
|
|
margin: 0;
|
|
|
|
background: var(--bg-panel);
|
|
border: var(--border-width) solid var(--border-hairline);
|
|
border-radius: var(--radius-sm);
|
|
|
|
position: relative;
|
|
cursor: pointer;
|
|
transition:
|
|
border-color var(--dur-base) var(--ease-standard),
|
|
background var(--dur-base) var(--ease-standard);
|
|
}
|
|
|
|
.add-dsp-form__checkbox-label input[type='checkbox']:checked {
|
|
background: var(--accent-brand);
|
|
border-color: var(--accent-brand);
|
|
}
|
|
|
|
.add-dsp-form__checkbox-label input[type='checkbox']:checked::after {
|
|
content: '';
|
|
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
|
|
width: 5px;
|
|
height: 9px;
|
|
|
|
border: solid var(--bg-panel);
|
|
border-width: 0 2px 2px 0;
|
|
|
|
transform: translate(-50%, -60%) rotate(45deg);
|
|
}
|
|
|
|
.add-dsp-form__checkbox-label input[type='checkbox']:focus-visible {
|
|
outline: 2px solid var(--accent-brand);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
/* Stepper */
|
|
|
|
.add-dsp-form__stepper {
|
|
width: auto;
|
|
flex: 0 0 auto;
|
|
min-width: 120px;
|
|
height: var(--card-control-height);
|
|
}
|
|
|
|
.add-dsp-form__selector {
|
|
color: var(--text-primary);
|
|
height: var(--card-control-height);
|
|
}
|
|
|
|
.add-dsp-form__field .choice-stepper__input {
|
|
border: none;
|
|
background: transparent;
|
|
font-family: var(--font-mono);
|
|
font-weight: var(--font-weight-normal);
|
|
text-align: left;
|
|
}
|
|
|
|
.add-dsp-form {
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
}
|
|
|
|
.add-dsp-form input,
|
|
.add-dsp-form select {
|
|
user-select: text;
|
|
-webkit-user-select: text;
|
|
}
|
|
|
|
.add-dsp-form__field[data-disabled] {
|
|
opacity: 0.45;
|
|
}
|
|
|
|
.add-dsp-form__field[data-disabled] .choice-stepper__input {
|
|
color: var(--border-hairline);
|
|
}
|
|
|
|
.choice-stepper__input:disabled {
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* ---------- Phone / touch ---------- */
|
|
|
|
@media (pointer: coarse) {
|
|
/* Comfortable control height, keeps your variable as the minimum */
|
|
.add-dsp-form__field input:not([type='checkbox']),
|
|
.add-dsp-form__stepper,
|
|
.add-dsp-form__selector {
|
|
min-height: 44px;
|
|
}
|
|
|
|
/* Undo the global min-height on the custom checkbox (it's a fixed 18px box) */
|
|
.add-dsp-form__checkbox-label input[type='checkbox'] {
|
|
min-height: 0;
|
|
}
|
|
|
|
/* Make the whole label row the tap target instead */
|
|
.add-dsp-form__checkbox-label {
|
|
min-height: 44px;
|
|
align-items: center;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
/* Prevent iOS focus-zoom (must be >= 16px) */
|
|
.add-dsp-form__field input,
|
|
.add-dsp-form__field .choice-stepper__input {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.add-dsp-form {
|
|
width: 100%;
|
|
max-width: 520px;
|
|
}
|
|
}
|
|
|
|
/* Narrow phones: one field per line */
|
|
@media (max-width: 420px) {
|
|
.add-dsp-form__row {
|
|
flex-direction: column;
|
|
gap: 0;
|
|
}
|
|
|
|
.add-dsp-form__row .add-dsp-form__field {
|
|
flex: none;
|
|
}
|
|
|
|
.add-dsp-form__stepper {
|
|
width: 100%;
|
|
min-width: 0;
|
|
flex: 1 1 auto;
|
|
}
|
|
|
|
.add-dsp-form__checkbox-label {
|
|
align-items: flex-start;
|
|
line-height: 1.35;
|
|
}
|
|
|
|
/* Full-width buttons, primary action on top (thumb-friendly) */
|
|
.add-dsp-form__actions {
|
|
flex-direction: column-reverse;
|
|
}
|
|
.add-dsp-form__actions > * {
|
|
width: 100%;
|
|
}
|
|
} |