From a8daeba237f87799100fcff0d239d7535858cc21 Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Mon, 14 Jun 2021 16:46:31 -0300 Subject: [PATCH] Begins implementation of related items carousel block. #358 --- compile-sass.sh | 4 +- ...gutenberg-block-carousel-related-items.css | 398 +++++++++ ...nberg-block-carousel-related-items.css.map | 7 + .../admin/components/lists/items-list.vue | 32 +- .../class-tainacan-gutenberg-block.php | 1 + .../carousel-related-items-deprecated.js | 1 + .../carousel-related-items-modal.js | 364 ++++++++ .../carousel-related-items-theme.js | 108 +++ .../carousel-related-items-theme.vue | 372 ++++++++ .../carousel-related-items.scss | 531 +++++++++++ .../carousel-related-items/index.js | 822 ++++++++++++++++++ webpack.common.js | 3 + 12 files changed, 2616 insertions(+), 27 deletions(-) create mode 100644 src/assets/css/tainacan-gutenberg-block-carousel-related-items.css create mode 100644 src/assets/css/tainacan-gutenberg-block-carousel-related-items.css.map create mode 100644 src/views/gutenberg-blocks/tainacan-items/carousel-related-items/carousel-related-items-deprecated.js create mode 100644 src/views/gutenberg-blocks/tainacan-items/carousel-related-items/carousel-related-items-modal.js create mode 100644 src/views/gutenberg-blocks/tainacan-items/carousel-related-items/carousel-related-items-theme.js create mode 100644 src/views/gutenberg-blocks/tainacan-items/carousel-related-items/carousel-related-items-theme.vue create mode 100644 src/views/gutenberg-blocks/tainacan-items/carousel-related-items/carousel-related-items.scss create mode 100644 src/views/gutenberg-blocks/tainacan-items/carousel-related-items/index.js diff --git a/compile-sass.sh b/compile-sass.sh index 88be95d24..24fd5c724 100644 --- a/compile-sass.sh +++ b/compile-sass.sh @@ -40,7 +40,9 @@ sass -E 'UTF-8' --cache-location .tmp/sass-cache-15 src/views/gutenberg-blocks/t sass -E 'UTF-8' --cache-location .tmp/sass-cache-16 src/views/gutenberg-blocks/tainacan-items/item-submission-form/item-submission-form.scss:src/assets/css/tainacan-gutenberg-block-item-submission-form.css -sass -E 'UTF-8' --cache-location .tmp/sass-cache-17 src/views/gutenberg-blocks/gutenberg-blocks-style.scss:src/assets/css/tainacan-gutenberg-block-common-styles.css +sass -E 'UTF-8' --cache-location .tmp/sass-cache-17 src/views/gutenberg-blocks/tainacan-items/carousel-related-items/carousel-related-items.scss:src/assets/css/tainacan-gutenberg-block-carousel-related-items.css + +sass -E 'UTF-8' --cache-location .tmp/sass-cache-18 src/views/gutenberg-blocks/gutenberg-blocks-style.scss:src/assets/css/tainacan-gutenberg-block-common-styles.css echo "Compilação do Sass Concluído!" exit 0 diff --git a/src/assets/css/tainacan-gutenberg-block-carousel-related-items.css b/src/assets/css/tainacan-gutenberg-block-carousel-related-items.css new file mode 100644 index 000000000..df451beaa --- /dev/null +++ b/src/assets/css/tainacan-gutenberg-block-carousel-related-items.css @@ -0,0 +1,398 @@ +.wp-block-tainacan-carousel-related-items { + margin: 2em auto; + --swiper-navigation-color: var(--tainacan-block-primary, $primary); + --swiper-theme-color: var(--tainacan-block-primary, $primary); } + .wp-block-tainacan-carousel-related-items .spinner-container { + min-height: 56px; + padding: 1em; + display: flex; + justify-content: center; + align-items: center; + color: var(--tainacan-block-gray4, #555758); } +@-webkit-keyframes skeleton-animation { + 0% { + opacity: 1.0; } + 50% { + opacity: 0.2; } + 100% { + opacity: 1.0; } } +@-moz-keyframes skeleton-animation { + 0% { + opacity: 1.0; } + 50% { + opacity: 0.2; } + 100% { + opacity: 1.0; } } +@-o-keyframes skeleton-animation { + 0% { + opacity: 1.0; } + 50% { + opacity: 0.2; } + 100% { + opacity: 1.0; } } +@keyframes skeleton-animation { + 0% { + opacity: 1.0; } + 50% { + opacity: 0.2; } + 100% { + opacity: 1.0; } } + .wp-block-tainacan-carousel-related-items .skeleton { + border-radius: 2px; + background: var(--tainacan-block-gray1, #f2f2f2); + -webkit-animation: skeleton-animation 1.8s ease infinite; + -moz-animation: skeleton-animation 1.8s ease infinite; + -o-animation: skeleton-animation 1.8s ease infinite; + animation: skeleton-animation 1.8s ease infinite; } + .wp-block-tainacan-carousel-related-items .carousel-items-collection-header { + display: flex; + width: 100%; + align-items: stretch; + text-decoration: none !important; + margin-bottom: 30px; } + .wp-block-tainacan-carousel-related-items .carousel-items-collection-header:hover { + text-decoration: none; } + .wp-block-tainacan-carousel-related-items .carousel-items-collection-header .collection-name { + width: auto; + min-width: 350px; + flex-grow: 1; + padding: 1em 100px 1em 1em; + text-align: right; + line-height: 1.5em; + min-height: 165px; + display: flex; + justify-content: flex-end; + align-items: center; + background-color: var(--tainacan-block-gray5, #454647); } + .wp-block-tainacan-carousel-related-items .carousel-items-collection-header .collection-name h3 { + color: white; + text-decoration: none; + font-size: 1.3em; + margin: 0; } + .wp-block-tainacan-carousel-related-items .carousel-items-collection-header .collection-name h3:hover { + text-decoration: none; } + .wp-block-tainacan-carousel-related-items .carousel-items-collection-header .collection-name span.label { + color: white; + font-weight: normal; + font-size: 0.75em; } + .wp-block-tainacan-carousel-related-items .carousel-items-collection-header .collection-name.only-collection-name { + justify-content: center; + padding: 1em; } + .wp-block-tainacan-carousel-related-items .carousel-items-collection-header .collection-name.only-collection-name h3 { + text-align: center; + font-size: 1.75em; } + .wp-block-tainacan-carousel-related-items .carousel-items-collection-header .collection-thumbnail { + height: 145px; + width: 145px; + background-size: cover; + background-position: center; + border-radius: 80px; + border: 4px solid white; + margin: 10px; + flex-shrink: 0; + position: relative; + margin-left: -155px; + left: 82px; + background-color: var(--tainacan-block-gray2, #dbdbdb); } + .wp-block-tainacan-carousel-related-items .carousel-items-collection-header .collection-header-image { + width: auto; + min-width: 150px; + min-height: 165px; + flex-grow: 2; + background-size: cover; + background-position: center; + background-color: var(--tainacan-block-gray2, #dbdbdb); } + @media only screen and (max-width: 1024px) { + .wp-block-tainacan-carousel-related-items .carousel-items-collection-header { + flex-wrap: wrap-reverse; } + .wp-block-tainacan-carousel-related-items .carousel-items-collection-header .collection-name { + width: 100% !important; + min-width: 100% !important; + justify-content: center !important; + text-align: center !important; + padding: 64px 1em 0em 1em; } + .wp-block-tainacan-carousel-related-items .carousel-items-collection-header .collection-name h3 { + margin-bottom: 1em; } + .wp-block-tainacan-carousel-related-items .carousel-items-collection-header .collection-thumbnail { + left: calc(-50% + 78px) !important; + top: -78px !important; } + .wp-block-tainacan-carousel-related-items .carousel-items-collection-header .collection-header-image { + background-color: transparent; } } + .wp-block-tainacan-carousel-related-items .tainacan-carousel { + position: relative; + width: calc(100% + 40px); + left: -20px; } + .wp-block-tainacan-carousel-related-items .tainacan-carousel .swiper-container { + margin: 0 50px; } + .wp-block-tainacan-carousel-related-items .tainacan-carousel .swiper-container a > span, + .wp-block-tainacan-carousel-related-items .tainacan-carousel .swiper-container a:hover > span { + color: var(--tainacan-block-gray5, #454647); + font-weight: bold; + text-decoration: none; + padding: 8px 16px; + display: block; + line-height: 1.2em; + word-break: break-word; } + .wp-block-tainacan-carousel-related-items .tainacan-carousel .swiper-container a > img { + width: 100%; + height: auto; } + .wp-block-tainacan-carousel-related-items .tainacan-carousel .swiper-container a:hover { + text-decoration: none; } + .wp-block-tainacan-carousel-related-items .preview-warning { + width: 100%; + font-size: 0.875em; + font-style: italic; + color: var(--tainacan-block-gray4, #555758); + text-align: center; + margin: 0 auto; + padding: 8px 2px 2px 2px; } + .wp-block-tainacan-carousel-related-items .swiper-button-prev, .wp-block-tainacan-carousel-related-items .swiper-button-next { + top: calc(50% - 42px); + bottom: initial; + background: none; + border: none; + width: 42px; + height: 42px; + padding: 0; + margin: 0 -4px; } + .wp-block-tainacan-carousel-related-items .swiper-button-prev svg, .wp-block-tainacan-carousel-related-items .swiper-button-next svg { + fill: var(--tainacan-block-primary, #298596); } + .wp-block-tainacan-carousel-related-items .swiper-button-prev::after, .wp-block-tainacan-carousel-related-items .swiper-button-prev::before, .wp-block-tainacan-carousel-related-items .swiper-button-next::after, .wp-block-tainacan-carousel-related-items .swiper-button-next::before { + content: none !important; } + .wp-block-tainacan-carousel-related-items .items-list-edit-container, + .wp-block-tainacan-carousel-related-items .tainacan-carousel { + position: relative; } + .wp-block-tainacan-carousel-related-items .items-list-edit-container .skeleton, + .wp-block-tainacan-carousel-related-items .tainacan-carousel .skeleton { + min-height: 150px; } + .wp-block-tainacan-carousel-related-items .items-list-edit-container.has-arrows-none .swiper-button-prev, .wp-block-tainacan-carousel-related-items .items-list-edit-container.has-arrows-none .swiper-button-next, + .wp-block-tainacan-carousel-related-items .tainacan-carousel.has-arrows-none .swiper-button-prev, + .wp-block-tainacan-carousel-related-items .tainacan-carousel.has-arrows-none .swiper-button-next { + display: none; } + .wp-block-tainacan-carousel-related-items .items-list-edit-container.has-arrows-left .swiper-button-next, + .wp-block-tainacan-carousel-related-items .tainacan-carousel.has-arrows-left .swiper-button-next { + left: 10px; + right: auto; + top: calc(50% + 12px) !important; } + .wp-block-tainacan-carousel-related-items .items-list-edit-container.has-arrows-right .swiper-button-prev, + .wp-block-tainacan-carousel-related-items .tainacan-carousel.has-arrows-right .swiper-button-prev { + right: 10px; + left: auto; } + .wp-block-tainacan-carousel-related-items .items-list-edit-container.has-arrows-right .swiper-button-next, + .wp-block-tainacan-carousel-related-items .tainacan-carousel.has-arrows-right .swiper-button-next { + top: calc(50% + 12px) !important; } + .wp-block-tainacan-carousel-related-items .items-list-edit-container.has-large-arrows .swiper-button-prev, .wp-block-tainacan-carousel-related-items .items-list-edit-container.has-large-arrows .swiper-button-next, + .wp-block-tainacan-carousel-related-items .tainacan-carousel.has-large-arrows .swiper-button-prev, + .wp-block-tainacan-carousel-related-items .tainacan-carousel.has-large-arrows .swiper-button-next { + top: calc(50% - 60px); + width: 60px; + height: 60px; + margin: 0 -24px; } + .wp-block-tainacan-carousel-related-items .items-list-edit-container.has-large-arrows.has-arrows-left .swiper-button-next, + .wp-block-tainacan-carousel-related-items .tainacan-carousel.has-large-arrows.has-arrows-left .swiper-button-next { + left: 30px; + right: auto; + top: calc(50% + 30px) !important; } + .wp-block-tainacan-carousel-related-items .items-list-edit-container.has-large-arrows.has-arrows-right .swiper-button-prev, + .wp-block-tainacan-carousel-related-items .tainacan-carousel.has-large-arrows.has-arrows-right .swiper-button-prev { + right: 30px; + left: auto; } + .wp-block-tainacan-carousel-related-items .items-list-edit-container.has-large-arrows.has-arrows-right .swiper-button-next, + .wp-block-tainacan-carousel-related-items .tainacan-carousel.has-large-arrows.has-arrows-right .swiper-button-next { + top: calc(50% + 30px) !important; } + .wp-block-tainacan-carousel-related-items ul.items-list-edit { + display: flex; + align-items: flex-start; + overflow-x: scroll; + list-style: none; + margin: 0 36px; + scroll-snap-type: x mandatory; + scroll-padding-left: 10px; } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item { + position: relative; + display: block; + margin: 16px; + width: calc(14.285% - 32px); + min-width: calc(14.285% - 32px); + scroll-snap-align: start; + scroll-margin: 0 16px; } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item a { + color: var(--tainacan-block-gray5, #454647); + font-weight: bold; + line-height: normal; } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item img { + height: auto; + display: block; + padding: 0px; + margin-bottom: 0.5em; } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item:hover a { + color: var(--tainacan-block-gray5, #454647); + text-decoration: none; } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item button { + position: absolute !important; + background-color: rgba(255, 255, 255, 0.75); + color: var(--tainacan-block-gray5, #454647); + padding: 2px; + margin-left: 5px; + min-width: 14px; + visibility: hidden; + position: relative; + opacity: 0; + right: -14px; + top: 0px; + justify-content: center; + z-index: 999; } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item button .dashicon { + margin: 0px; } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item:hover button { + height: auto; + visibility: visible; + background-color: white !important; + opacity: 1; + right: -8px; + top: -8px; + border: 1px solid var(--tainacan-block-gray3, #cbcbcb); + border-radius: 12px; + transition: opacity linear 0.15s, right linear 0.15s; } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item:hover button:hover { + background-color: white !important; + border: 1px solid var(--tainacan-block-gray3, #cbcbcb) !important; } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-9 { + width: calc((100% / 9) - 32px); + min-width: calc((100% / 9) - 32px); } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-8 { + width: calc((100% / 8) - 32px); + min-width: calc((100% / 8) - 32px); } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-7 { + width: calc((100% / 7) - 32px); + min-width: calc((100% / 7) - 32px); } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-6 { + width: calc((100% / 6) - 32px); + min-width: calc((100% / 6) - 32px); } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-5 { + width: calc((100% / 5) - 32px); + min-width: calc((100% / 5) - 32px); } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-4 { + width: calc((100% / 4) - 32px); + min-width: calc((100% / 4) - 32px); } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-3 { + width: calc((100% / 3) - 32px); + min-width: calc((100% / 3) - 32px); } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-2 { + width: calc((100% / 2) - 32px); + min-width: calc((100% / 2) - 32px); } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-1 { + width: calc(100% - 32px); + min-width: calc(100% - 32px); } + @media only screen and (max-width: 1686px) { + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item { + width: calc(16.666% - 32px); + min-width: calc(16.666% - 32px); } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-9 { + width: calc((100% / 8) - 32px); + min-width: calc((100% / 8) - 32px); } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-8 { + width: calc((100% / 7) - 32px); + min-width: calc((100% / 7) - 32px); } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-7 { + width: calc((100% / 6) - 32px); + min-width: calc((100% / 6) - 32px); } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-6 { + width: calc((100% / 5) - 32px); + min-width: calc((100% / 5) - 32px); } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-5 { + width: calc((100% / 4) - 32px); + min-width: calc((100% / 4) - 32px); } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-4 { + width: calc((100% / 3) - 32px); + min-width: calc((100% / 3) - 32px); } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-3 { + width: calc((100% / 2) - 32px); + min-width: calc((100% / 2) - 32px); } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-2, .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-1 { + width: calc(100% - 32px); + min-width: calc(100% - 32px); } } + @media only screen and (max-width: 1452px) { + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item { + width: calc(20% - 32px); + min-width: calc(20% - 32px); } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-9 { + width: calc((100% / 7) - 32px); + min-width: calc((100% / 7) - 32px); } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-8 { + width: calc((100% / 6) - 32px); + min-width: calc((100% / 6) - 32px); } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-7 { + width: calc((100% / 5) - 32px); + min-width: calc((100% / 5) - 32px); } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-6 { + width: calc((100% / 4) - 32px); + min-width: calc((100% / 4) - 32px); } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-5 { + width: calc((100% / 3) - 32px); + min-width: calc((100% / 3) - 32px); } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-4 { + width: calc((100% / 2) - 32px); + min-width: calc((100% / 2) - 32px); } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-3, .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-2, .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-1 { + width: calc(100% - 32px); + min-width: calc(100% - 32px); } } + @media only screen and (max-width: 1118px) { + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item { + width: calc(25% - 32px); + min-width: calc(25% - 32px); } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-9 { + width: calc((100% / 6) - 32px); + min-width: calc((100% / 6) - 32px); } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-8 { + width: calc((100% / 5) - 32px); + min-width: calc((100% / 5) - 32px); } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-7 { + width: calc((100% / 4) - 32px); + min-width: calc((100% / 4) - 32px); } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-6 { + width: calc((100% / 3) - 32px); + min-width: calc((100% / 3) - 32px); } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-5 { + width: calc((100% / 2) - 32px); + min-width: calc((100% / 2) - 32px); } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-4, .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-3, .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-2, .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-1 { + width: calc(100% - 32px); + min-width: calc(100% - 32px); } } + @media only screen and (max-width: 854px) { + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item { + width: calc(33.333% - 32px); + min-width: calc(33.333% - 32px); } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-9 { + width: calc((100% / 5) - 32px); + min-width: calc((100% / 5) - 32px); } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-8 { + width: calc((100% / 4) - 32px); + min-width: calc((100% / 4) - 32px); } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-7 { + width: calc((100% / 3) - 32px); + min-width: calc((100% / 3) - 32px); } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-6 { + width: calc((100% / 2) - 32px); + min-width: calc((100% / 2) - 32px); } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-5, .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-4, .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-3, .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-2, .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-1 { + width: calc(100% - 32px); + min-width: calc(100% - 32px); } } + @media only screen and (max-width: 584px) { + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item { + width: calc(50% - 32px); + min-width: calc(50% - 32px); } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-9 { + width: calc((100% / 4) - 32px); + min-width: calc((100% / 4) - 32px); } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-8 { + width: calc((100% / 3) - 32px); + min-width: calc((100% / 3) - 32px); } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-7 { + width: calc((100% / 2) - 32px); + min-width: calc((100% / 2) - 32px); } + .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-6, .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-5, .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-4, .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-3, .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-2, .wp-block-tainacan-carousel-related-items ul.items-list-edit li.item-list-item.max-itens-per-screen-1 { + width: calc(100% - 32px); + min-width: calc(100% - 32px); } } + +/*# sourceMappingURL=tainacan-gutenberg-block-carousel-related-items.css.map */ diff --git a/src/assets/css/tainacan-gutenberg-block-carousel-related-items.css.map b/src/assets/css/tainacan-gutenberg-block-carousel-related-items.css.map new file mode 100644 index 000000000..f54219344 --- /dev/null +++ b/src/assets/css/tainacan-gutenberg-block-carousel-related-items.css.map @@ -0,0 +1,7 @@ +{ +"version": 3, +"mappings": "AAEA,yCAA0C;EACtC,MAAM,EAAE,QAAQ;EAChB,yBAAyB,CAAC,wCAAwC;EAClE,oBAAoB,CAAC,wCAAwC;EAG7D,4DAAmB;IACf,UAAU,EAAE,IAAI;IAChB,OAAO,EAAE,GAAG;IACZ,OAAO,EAAE,IAAI;IACb,eAAe,EAAE,MAAM;IACvB,WAAW,EAAE,MAAM;IACnB,KAAK,EAAE,oCAAmC;AAI9C,qCAIC;EAHG,EAAE;IAAC,OAAO,EAAE,GAAG;EACf,GAAG;IAAC,OAAO,EAAE,GAAG;EAChB,IAAI;IAAC,OAAO,EAAE,GAAG;AAErB,kCAIC;EAHG,EAAE;IAAC,OAAO,EAAE,GAAG;EACf,GAAG;IAAC,OAAO,EAAE,GAAG;EAChB,IAAI;IAAC,OAAO,EAAE,GAAG;AAErB,gCAIC;EAHG,EAAE;IAAC,OAAO,EAAE,GAAG;EACf,GAAG;IAAC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AAuB;MAEtC,qGAAyB;QACrB,KAAK,EAAE,uBAAuB;QAC9B,SAAS,EAAE,uBAAuB;MAEtC,qGAAyB;QACrB,KAAK,EAAE,uBAAuB;QAC9B,SAAS,EAAE,uBAAuB;MAEtC,igBAIyB;QACrB,KAAK,EAAE,iBAAiB;QACxB,SAAS,EAAE,iBAAiB;EAIxC,yCAA0C;IAEtC,8EAAqC;MACjC,KAAK,EAAE,gBAAgB;MACvB,SAAS,EAAE,gBAAgB;MAE3B,qGAAyB;QACrB,KAAK,EAAE,uBAAuB;QAC9B,SAAS,EAAE,uBAAuB;MAEtC,qGAAyB;QACrB,KAAK,EAAE,uBAAuB;QAC9B,SAAS,EAAE,uBAAuB;MAEtC,qGAAyB;QACrB,KAAK,EAAE,uBAAuB;QAC9B,SAAS,EAAE,uBAAuB;MAEtC,wmBAKyB;QACrB,KAAK,EAAE,iBAAiB;QACxB,SAAS,EAAE,iBAAiB", +"sources": ["../../views/gutenberg-blocks/tainacan-items/carousel-related-items/carousel-related-items.scss"], +"names": [], +"file": "tainacan-gutenberg-block-carousel-related-items.css" +} diff --git a/src/views/admin/components/lists/items-list.vue b/src/views/admin/components/lists/items-list.vue index c8b367eff..77ed528d0 100644 --- a/src/views/admin/components/lists/items-list.vue +++ b/src/views/admin/components/lists/items-list.vue @@ -158,11 +158,7 @@
>>>>>> develop + :style="{ 'padding-left': !collectionId || !(isIframeMode || collection && collection.current_user_can_bulk_edit) || isReadMode? '0.5em !important' : (isOnAllItemsTabs ? '1.875em' : '2.75em') }" class="metadata-title">

>>>>>> develop + 'padding-left': !collectionId || !(isIframeMode || collection && collection.current_user_can_bulk_edit) || isReadMode ? '0 !important' : (isOnAllItemsTabs ? '0.5em' : '1em') }" @click.left="onClickItem($event, item)" @click.right="onRightClickItem($event, item)" @@ -442,13 +434,8 @@