Skip to content

Commit 647e8f5

Browse files
authored
[6.x] Remove dead fluid publish-fields CSS and JS helpers (#15304)
1 parent 90fb277 commit 647e8f5

3 files changed

Lines changed: 1 addition & 42 deletions

File tree

resources/css/components/publish.css

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -45,40 +45,6 @@
4545
}
4646

4747

48-
/* GROUP PUBLISH COMPONENT / FIELDS / FLUID
49-
=================================================== */
50-
/* =Jay. Use this class if the fields should be fluid and fill the remaining space e.g. /cp/collections/pages/edit.
51-
Here flexbox is much better suited to create a layout that grows to fill space. */
52-
.publish-fields-fluid {
53-
@apply gap-2;
54-
55-
display: flex;
56-
flex-wrap: wrap;
57-
> * {
58-
flex-grow: 1;
59-
}
60-
61-
@variant lg {
62-
/* 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 */
63-
.field-w-25 { flex-basis: 24.5%; }
64-
.field-w-33 { flex-basis: 32.5%; }
65-
.field-w-50 { flex-basis: 49.4%; }
66-
.field-w-66 { flex-basis: 66.1%; }
67-
.field-w-75 { flex-basis: 74.5%; }
68-
.field-w-undefined, .field-w-100 { flex-basis: 100%; }
69-
}
70-
}
71-
72-
.publish-fields-fluid--xl-only {
73-
/* A modifier that prevents the fields from being fluid on smaller screens to help legibility, for example on the Blueprints builder */
74-
@media (width < 1400px) {
75-
[class*="field-w-"] {
76-
flex-basis: 100%;
77-
}
78-
}
79-
}
80-
81-
8248
/* GROUP PUBLISH COMPONENT / FIELD
8349
=================================================== */
8450
.publish-field {

resources/css/core/animation.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@
6969
@media (prefers-reduced-motion: no-preference) {
7070
.starting-style-transition,
7171
.starting-style-transition-children > *,
72-
.publish-fields > *,
73-
.publish-fields-fluid > * {
72+
.publish-fields > * {
7473
transition: opacity var(--starting-style-transition-duration);
7574
@starting-style {
7675
opacity: 0;

resources/js/components/fields/Settings.vue

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,6 @@ export default {
154154
return blueprint;
155155
},
156156
157-
selectedWidth: function () {
158-
var width = this.config.width || 100;
159-
var found = this.widths.find((w) => w.value === width);
160-
return found.text;
161-
},
162-
163157
fieldtypeConfig() {
164158
return this.fieldtype.config;
165159
},

0 commit comments

Comments
 (0)