Skip to content

Commit c04551e

Browse files
committed
Add a modifier class to fluid publish fields that prevents the fields from being fluid on smaller screens to help legibility
1 parent 3b79986 commit c04551e

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

resources/css/components/publish.css

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Here flexbox is much better suited to create a layout that grows to fill space.
5151
}
5252

5353
@variant lg {
54-
/* Here we have to cut short the proper width very slightly to account for the gap value. Because we're using flex-grow it should be pretty unnoticeable */
54+
/* Here we have to cut short the proper width very slightly to account for the gap value. Because we're using flex-grow it should be pretty unnoticeable */
5555
.field-w-25 { flex-basis: 24.5%; }
5656
.field-w-33 { flex-basis: 32.5%; }
5757
.field-w-50 { flex-basis: 49.4%; }
@@ -61,6 +61,15 @@ Here flexbox is much better suited to create a layout that grows to fill space.
6161
}
6262
}
6363

64+
.publish-fields-fluid--xl-only {
65+
/* A modifier that prevents the fields from being fluid on smaller screens to help legibility, for example on the Blueprints builder */
66+
@media (width < 1400px) {
67+
[class*="field-w-"] {
68+
flex-basis: 100%;
69+
}
70+
}
71+
}
72+
6473

6574
/* GROUP PUBLISH COMPONENT / FIELD
6675
=================================================== */

0 commit comments

Comments
 (0)