Skip to content

Commit

Permalink
Eoxia#22 [Blocks] add: Summary back
Browse files Browse the repository at this point in the history
  • Loading branch information
eoxia-amandine committed Dec 5, 2024
1 parent 0f80e8a commit 148a6d7
Show file tree
Hide file tree
Showing 16 changed files with 287 additions and 49 deletions.
2 changes: 1 addition & 1 deletion blocks/build/eo-summary/hooks.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-components', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-i18n'), 'version' => 'a1ac68df0d1d3f7c2890');
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-components', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-i18n'), 'version' => 'c571588d03144d34d312');
6 changes: 3 additions & 3 deletions blocks/build/eo-summary/hooks.js

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

2 changes: 1 addition & 1 deletion blocks/build/eo-summary/hooks.js.map

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions blocks/build/eo-summary/index-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,30 @@
*
* Replace them with your own styles or remove the file completely.
*/
.wp-block-eo-summary {
display: flex;
gap: 1em;
flex-wrap: wrap;
}
.wp-block-eo-summary.is-orientation-horizontal {
flex-direction: row;
}
.wp-block-eo-summary.is-orientation-vertical {
flex-direction: column;
}
.wp-block-eo-summary.is-justification-left {
justify-content: flex-start;
}
.wp-block-eo-summary.is-justification-center {
justify-content: center;
}
.wp-block-eo-summary.is-justification-right {
justify-content: flex-end;
}
.wp-block-eo-summary.is-justification-space-between {
justify-content: space-between;
}

.full-width-control-wrapper {
grid-column: 1/-1;
}
Expand Down
2 changes: 1 addition & 1 deletion blocks/build/eo-summary/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n', 'wp-primitives'), 'version' => 'cfde12a3484c0adb8c96');
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-i18n', 'wp-primitives'), 'version' => 'a0768f4969c6512b4ebe');
24 changes: 24 additions & 0 deletions blocks/build/eo-summary/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 blocks/build/eo-summary/index.css.map

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

121 changes: 93 additions & 28 deletions blocks/build/eo-summary/index.js

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

2 changes: 1 addition & 1 deletion blocks/build/eo-summary/index.js.map

Large diffs are not rendered by default.

15 changes: 13 additions & 2 deletions blocks/build/eo-summary/style-index-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
display: flex;
gap: 1em;
flex-wrap: wrap;
color: #000;
}
.wp-block-eo-summary.is-orientation-horizontal {
flex-direction: row;
Expand All @@ -30,6 +31,16 @@
.wp-block-eo-summary.is-justification-space-between {
justify-content: space-between;
}
.wp-block-eo-summary .eo-summary__item.active {
color: red;
.wp-block-eo-summary:not(.has-text-color) .eo-summary__item {
color: #000;
}
.wp-block-eo-summary:not(.has-text-color) .eo-summary__item.active {
text-shadow: -0.4px 0.4px 0 #000;
}
.wp-block-eo-summary .eo-summary__item {
opacity: 0.6;
transition: all 0.2s ease-out;
}
.wp-block-eo-summary .eo-summary__item.active, .wp-block-eo-summary .eo-summary__item:hover {
opacity: 1;
}
Loading

0 comments on commit 148a6d7

Please sign in to comment.