Skip to content

Commit 9470874

Browse files
authored
Merge pull request #3 from caseydwyer/enhancement-border-styles-and-positioning
Enhancement: Tweak border styles and positioning
2 parents 44b7739 + c53514c commit 9470874

File tree

8 files changed

+13
-13
lines changed

8 files changed

+13
-13
lines changed

dist/build/assets/statamic-group-29b7d030.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/build/assets/statamic-group-68f349f8.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/build/assets/statamic-group-7565f277.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/build/assets/statamic-group-7ed307c9.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/build/manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"resources/css/statamic-group.css": {
3-
"file": "assets/statamic-group-29b7d030.css",
3+
"file": "assets/statamic-group-7ed307c9.css",
44
"isEntry": true,
55
"src": "resources/css/statamic-group.css"
66
},
77
"resources/js/statamic-group.js": {
8-
"file": "assets/statamic-group-7565f277.js",
8+
"file": "assets/statamic-group-68f349f8.js",
99
"isEntry": true,
1010
"src": "resources/js/statamic-group.js"
1111
}

resources/css/statamic-group.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
@import "tailwindcss/utilities";
33

44
.group-fieldtype {
5-
padding: 0 !important;
6-
border-top-width: 1px;
7-
border-bottom-width: 1px;
5+
@apply grp-relative -grp-mt-px grp-border-t !grp-p-0;
86
}
97

108
.group-fieldtype > .field-inner,
@@ -14,7 +12,9 @@
1412
}
1513

1614
.group-fieldtype .section-fieldtype.form-group:first-child {
17-
border-top-left-radius: 0;
18-
border-top-right-radius: 0;
19-
border-top-width: 1px;
15+
@apply grp-relative grp-mt-0 grp-rounded-t-md grp-border-t-0;
16+
}
17+
18+
.group-fieldtype:last-child .section-fieldtype.form-group:not(.active) {
19+
@apply grp-rounded-b-md;
2020
}

resources/js/compontents/GroupFieldtype.vue renamed to resources/js/components/GroupFieldtype.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div>
3-
<div class="form-group section-fieldtype w-full" v-if="config.show_header">
3+
<div class="form-group section-fieldtype w-full" :class="{'active': toggle}" v-if="config.show_header">
44
<div class="flex grp-justify-between grp-items-center">
55
<div class="field-inner">
66
<label class="publish-field-label">
@@ -63,4 +63,4 @@ export default {
6363
},
6464
6565
}
66-
</script>
66+
</script>

resources/js/statamic-group.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import GroupFieldtype from './compontents/GroupFieldtype.vue';
1+
import GroupFieldtype from './components/GroupFieldtype.vue';
22

33
Statamic.booting(() => {
44
Statamic.$components.register('group-fieldtype', GroupFieldtype);

0 commit comments

Comments
 (0)