Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 0 additions & 34 deletions resources/css/components/publish.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,40 +45,6 @@
}


/* GROUP PUBLISH COMPONENT / FIELDS / FLUID
=================================================== */
/* =Jay. Use this class if the fields should be fluid and fill the remaining space e.g. /cp/collections/pages/edit.
Here flexbox is much better suited to create a layout that grows to fill space. */
.publish-fields-fluid {
@apply gap-2;

display: flex;
flex-wrap: wrap;
> * {
flex-grow: 1;
}

@variant lg {
/* 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 */
.field-w-25 { flex-basis: 24.5%; }
.field-w-33 { flex-basis: 32.5%; }
.field-w-50 { flex-basis: 49.4%; }
.field-w-66 { flex-basis: 66.1%; }
.field-w-75 { flex-basis: 74.5%; }
.field-w-undefined, .field-w-100 { flex-basis: 100%; }
}
}

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


/* GROUP PUBLISH COMPONENT / FIELD
=================================================== */
.publish-field {
Expand Down
3 changes: 1 addition & 2 deletions resources/css/core/animation.css
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@
@media (prefers-reduced-motion: no-preference) {
.starting-style-transition,
.starting-style-transition-children > *,
.publish-fields > *,
.publish-fields-fluid > * {
.publish-fields > * {
transition: opacity var(--starting-style-transition-duration);
@starting-style {
opacity: 0;
Expand Down
6 changes: 0 additions & 6 deletions resources/js/components/fields/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,6 @@ export default {
return blueprint;
},

selectedWidth: function () {
var width = this.config.width || 100;
var found = this.widths.find((w) => w.value === width);
return found.text;
},

fieldtypeConfig() {
return this.fieldtype.config;
},
Expand Down
Loading