Skip to content

Commit e09944e

Browse files
committed
refactor: adjust form.olform.less for responsive padding, label width, and input sizing
1 parent ac090c7 commit e09944e

File tree

1 file changed

+28
-24
lines changed

1 file changed

+28
-24
lines changed

static/css/components/form.olform.less

Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -237,36 +237,40 @@
237237
width: 100%;
238238
select {
239239
width: 130px;
240-
241-
@media (pointer: coarse) {
242-
padding: 8px 3px;
243-
min-height: 44px;
244-
}
245240
}
241+
}
246242

247-
.label {
248-
width: 90%;
249-
}
243+
.label {
244+
width: 90%;
245+
}
250246

251-
table {
252-
input {
253-
width: 300px;
254-
}
247+
table {
248+
input {
249+
width: 300px;
255250
}
256-
&.books {
257-
.TitleAuthor {
258-
// stylelint-disable-next-line max-nesting-depth
259-
input#work-title {
260-
width: 900px !important;
261-
}
262-
263-
// stylelint-disable-next-line max-nesting-depth
264-
input#author {
265-
width: 550px !important;
266-
}
251+
}
252+
253+
&.books {
254+
.TitleAuthor {
255+
// stylelint-disable-next-line max-nesting-depth
256+
input#work-title {
257+
width: 900px !important;
258+
}
259+
260+
// stylelint-disable-next-line max-nesting-depth
261+
input#author {
262+
width: 550px !important;
267263
}
268264
}
269265
}
270-
/* stylelint-enable selector-max-specificity */
266+
}
267+
/* stylelint-enable selector-max-specificity */
268+
}
269+
270+
/* Touch-friendly select styling for mobile dropdown consistency - Issue #11182 */
271+
@media (pointer: coarse) {
272+
.olform .input select {
273+
padding: 8px 3px;
274+
min-height: 44px;
271275
}
272276
}

0 commit comments

Comments
 (0)