Skip to content

Commit

Permalink
Add marquee animation and try to work out element cloning
Browse files Browse the repository at this point in the history
  • Loading branch information
michalczaplinski committed Jul 17, 2024
1 parent 464916a commit 556aed5
Show file tree
Hide file tree
Showing 15 changed files with 137 additions and 89 deletions.
16 changes: 7 additions & 9 deletions marquee/build/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,13 @@
},
"layout": {
"allowSizingOnChildren": false,
"allowOrientation": false
"allowOrientation": false,
"default": {
"type": "flex",
"flexWrap": "nowrap",
"orientation": "horizontal",
"justifyContent": "left"
}
},
"interactivity": {
"clientNavigation": true
Expand All @@ -91,14 +97,6 @@
},
"allowedBlocks": {
"type": "array"
},
"layout": {
"type": "object",
"default": {
"flexWrap": "nowrap",
"type": "flex",
"orientation": "horizontal"
}
}
},
"textdomain": "marquee",
Expand Down
17 changes: 0 additions & 17 deletions marquee/build/index-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,3 @@
margin-right: 0;
margin-left: 0;
}

.wp-block-wpcomsp-marquee.is-layout-flex.block-editor-block-list__block > .block-list-appender:only-child {
gap: inherit;
pointer-events: none;
}
.wp-block-wpcomsp-marquee.is-layout-flex.block-editor-block-list__block > .block-list-appender:only-child,
.wp-block-wpcomsp-marquee.is-layout-flex.block-editor-block-list__block > .block-list-appender:only-child .block-editor-default-block-appender__content,
.wp-block-wpcomsp-marquee.is-layout-flex.block-editor-block-list__block > .block-list-appender:only-child .block-editor-inserter {
display: inherit;
width: 100%;
flex-direction: inherit;
flex: 1;
}
.wp-block-wpcomsp-marquee.is-layout-flex.block-editor-block-list__block > .block-list-appender:only-child .block-editor-inserter,
.wp-block-wpcomsp-marquee.is-layout-flex.block-editor-block-list__block > .block-list-appender:only-child .block-editor-button-block-appender {
pointer-events: all;
}
2 changes: 1 addition & 1 deletion marquee/build/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-element'), 'version' => 'cdb4606f6ff9cde54c8f');
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-element'), 'version' => '4e89a2d734fd7167347a');
17 changes: 0 additions & 17 deletions marquee/build/index.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion marquee/build/index.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 26 additions & 12 deletions marquee/build/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 556aed5

Please sign in to comment.