Skip to content

Commit

Permalink
Update section.css
Browse files Browse the repository at this point in the history
  • Loading branch information
caseydwyer committed Oct 4, 2023
1 parent 076857c commit 945289f
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions resources/css/components/fieldtypes/section.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,20 @@

.section-fieldtype {
@apply border-t border-b bg-gray-200;
top: -1px; /* Avoid adjacent borders just in case they're stacked */
@apply -mt-px; /* Avoid adjacent borders just in case they're stacked */

&.form-group {
position: relative;
&:first-child {
@apply rounded-t border-t-0;
@apply rounded-t-md border-t-0;
}

&:last-child {
@apply rounded-b-md mt-0;
}

.field-inner > label {
@apply uppercase text-sm font-bold mt-2;
@apply uppercase text-sm font-bold;
}
}

Expand All @@ -33,5 +37,13 @@
}

.bard-fieldtype .section-fieldtype {
top: 0;
@apply mt-0;
}

.publish-section-header + .publish-fields .section-fieldtype {
&.form-group {
&:first-child {
@apply rounded-t-none;
}
}
}

0 comments on commit 945289f

Please sign in to comment.