File tree Expand file tree Collapse file tree 5 files changed +26
-80
lines changed
wp-content/themes/wp-starter/blocks/dialog Expand file tree Collapse file tree 5 files changed +26
-80
lines changed Original file line number Diff line number Diff line change 11@layer components {
2- .acf -block-dialog {
2+ .wp -block-acf -dialog {
33 @apply relative !border !bor der-black;
44 .inner {
5- @apply relative p-24;
5+ @apply ! relative p-24 ;
66 }
77
88 .acfbt-dialog-close {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1818<div
1919<?php if ( ! is_admin () ) : ?>
2020 x-data="{
21- openDialog: false,
21+ openDialog: false,
2222
23- // Close the dialog when the user clicks backdrop
24- handleDialogClick(event) {
25- (event.target === $refs.dialogRef) && this.handleDialogClose()
26- },
23+ // Close the dialog when the user clicks backdrop
24+ handleDialogClick(event) {
25+ (event.target === $refs.dialogRef) && this.handleDialogClose();
26+ },
2727
28- // Delay close to allow for animation
29- handleDialogClose() {
30- if (!this.openDialog) return
31- this.openDialog = false
32- $refs.dialogRef.close()
33- }
28+ // Delay close to allow for animation
29+ handleDialogClose() {
30+ if (!this.openDialog) return;
31+ this.openDialog = false;
32+ $refs.dialogRef.close();
33+ }
3434 }"
3535<?php endif ; ?>
3636>
Original file line number Diff line number Diff line change 1313<div
1414{% if function(' is_admin' ) == false %}
1515 x-data =" {
16- openDialog: false,
16+ openDialog: false,
1717
18- // Close the dialog when the user clicks backdrop
19- handleDialogClick(event) {
20- (event.target === $refs.dialogRef) && this.handleDialogClose()
21- },
18+ // Close the dialog when the user clicks backdrop
19+ handleDialogClick(event) {
20+ (event.target === $refs.dialogRef) && this.handleDialogClose();
21+ },
2222
23- // Delay close to allow for animation
24- handleDialogClose() {
25- if (!this.openDialog) return
26- this.openDialog = false
27- $refs.dialogRef.close()
28- }
23+ // Delay close to allow for animation
24+ handleDialogClose() {
25+ if (!this.openDialog) return;
26+ this.openDialog = false;
27+ $refs.dialogRef.close();
28+ }
2929 }"
3030{% endif %}
3131>
Original file line number Diff line number Diff line change 55 }
66
77 .acf-block-dialog {
8- @apply bottom -0 left -0 right -0 top -0 !m-auto h-1/2 w-1/2 rounded border-none bg-white;
8+ @apply top -0 right -0 bottom -0 left -0 !m-auto h-1/2 w-1/2 rounded border-none bg-white;
99
1010 & ::backdrop {
1111 @apply bg-black/70;
1212 }
1313
1414 .acf-dialog-close {
15- @apply absolute right -12 top -12 z-10 m-auto size-32 cursor-pointer border border-none border-black bg-transparent hover:bg-black;
15+ @apply absolute top -12 right -12 z-10 m-auto size-32 cursor-pointer border border-none border-black bg-transparent hover:bg-black;
1616 @apply after:flex after:items-center after:justify-center after:text-black after:content-['\2715' ] hover:after:text-white;
1717 }
1818
You can’t perform that action at this time.
0 commit comments