Skip to content

Commit faa4c5e

Browse files
committed
fixed classification section overflow in edit page
1 parent 3f2d9ec commit faa4c5e

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

static/css/components/form.olform.less

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,3 +265,58 @@
265265
}
266266
/* stylelint-enable selector-max-specificity */
267267
}
268+
269+
@media only screen and (max-width: @width-breakpoint-mobile) {
270+
.olform {
271+
// Make the two-column edit layout stack vertically
272+
.formBackLeft,
273+
.formBackRight,
274+
.formBackLeft.formBackLeft,
275+
.formBackRight.formBackRight {
276+
float: none !important;
277+
width: 100% !important;
278+
}
279+
280+
// Make identifier/classification tables responsive: stack cells
281+
table.identifiers {
282+
width: 100% !important;
283+
table-layout: auto;
284+
}
285+
286+
table.identifiers tr {
287+
display: block;
288+
margin: 0 0 8px 0;
289+
}
290+
291+
table.identifiers td {
292+
display: block;
293+
width: 100% !important;
294+
box-sizing: border-box;
295+
padding: 6px 0;
296+
border: none;
297+
}
298+
299+
// Make form inputs full-width and remove right margins that caused overflow
300+
input[type="text"],
301+
input[type="email"],
302+
input[type="url"],
303+
textarea,
304+
select {
305+
width: 100% !important;
306+
margin-right: 0 !important;
307+
}
308+
309+
// Links/form groups that used fixed min-width should be allowed to shrink
310+
.links-form__label,
311+
.links-form__url,
312+
.mia__reorder {
313+
min-width: 0 !important;
314+
}
315+
316+
// Avoid horizontal gutters from content areas
317+
.formBack {
318+
padding-left: 8px;
319+
padding-right: 8px;
320+
}
321+
}
322+
}

0 commit comments

Comments
 (0)