diff --git a/src/assets/css/tainacan-gutenberg-blocks-style.css b/src/assets/css/tainacan-gutenberg-blocks-style.css index 96ea96e22..ff60a144b 100644 --- a/src/assets/css/tainacan-gutenberg-blocks-style.css +++ b/src/assets/css/tainacan-gutenberg-blocks-style.css @@ -454,7 +454,7 @@ flex-shrink: 0; position: relative; margin-left: -155px; - left: 84px; + left: 82px; background-color: #dbdbdb; } .wp-block-tainacan-dynamic-items-list .dynamic-items-collection-header .collection-header-image { width: auto; diff --git a/src/gutenberg-blocks/tainacan-items/dynamic-items-list/dynamic-items-list-theme.js b/src/gutenberg-blocks/tainacan-items/dynamic-items-list/dynamic-items-list-theme.js index 62b08394d..37fd29b8b 100644 --- a/src/gutenberg-blocks/tainacan-items/dynamic-items-list/dynamic-items-list-theme.js +++ b/src/gutenberg-blocks/tainacan-items/dynamic-items-list/dynamic-items-list-theme.js @@ -17,6 +17,8 @@ document.addEventListener("DOMContentLoaded", () => { order: 'asc', showSearchBar: false, showCollectionHeader: false, + collectionBackgroundColor: '#454647', + collectionTextColor: '#ffffff', tainacanApiRoot: '', tainacanBaseUrl: '', className: '' @@ -34,6 +36,8 @@ document.addEventListener("DOMContentLoaded", () => { order: this.order, showSearchBar: this.showSearchBar, showCollectionHeader: this.showCollectionHeader, + collectionBackgroundColor: this.collectionBackgroundColor, + collectionTextColor: this.collectionTextColor, tainacanApiRoot: this.tainacanApiRoot, tainacanBaseUrl: this.tainacanBaseUrl, className: this.className @@ -52,6 +56,8 @@ document.addEventListener("DOMContentLoaded", () => { this.order = this.$el.attributes['order'] != undefined ? this.$el.attributes['order'].value : undefined; this.showSearchBar = this.$el.attributes['show-search-bar'] != undefined ? this.$el.attributes['show-search-bar'].value == 'true' : false; this.showCollectionHeader = this.$el.attributes['show-collection-header'] != undefined ? this.$el.attributes['show-collection-header'].value == 'true' : false; + this.collectionBackgroundColor = this.$el.attributes['collection-background-color'] != undefined ? this.$el.attributes['collection-background-color'].value : undefined; + this.collectionTextColor = this.$el.attributes['collection-text-color'] != undefined ? this.$el.attributes['collection-text-color'].value : undefined; this.tainacanApiRoot = this.$el.attributes['tainacan-api-root'] != undefined ? this.$el.attributes['tainacan-api-root'].value : undefined; this.tainacanBaseUrl = this.$el.attributes['tainacan-base-url'] != undefined ? this.$el.attributes['tainacan-base-url'].value : undefined; }, diff --git a/src/gutenberg-blocks/tainacan-items/dynamic-items-list/dynamic-items-list-theme.vue b/src/gutenberg-blocks/tainacan-items/dynamic-items-list/dynamic-items-list-theme.vue index 2a2b91dc6..8e825f19e 100644 --- a/src/gutenberg-blocks/tainacan-items/dynamic-items-list/dynamic-items-list-theme.vue +++ b/src/gutenberg-blocks/tainacan-items/dynamic-items-list/dynamic-items-list-theme.vue @@ -12,7 +12,8 @@ :href="collection.url ? collection.url : ''" class="dynamic-items-collection-header">