feat: home pages adapted to mobile
This commit is contained in:
@@ -190,3 +190,69 @@
|
||||
.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%;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user