diff --git a/assets/base.css b/assets/base.css index dbefe2f3416..694a36536b9 100644 --- a/assets/base.css +++ b/assets/base.css @@ -2384,7 +2384,7 @@ details-disclosure > details { .badge { border: 1px solid transparent; - border-radius: 4rem; + border-radius: var(--badge-corner-radius); display: inline-block; font-size: 1.2rem; letter-spacing: 0.1rem; @@ -2414,3 +2414,15 @@ details-disclosure > details { } } +.ratio { + display: flex; + position: relative; + align-items: stretch; +} + +.ratio::before { + content: ''; + width: 0; + height: 0; + padding-bottom: var(--ratio-percent); +} diff --git a/assets/collage.css b/assets/collage.css index 0fd675eb256..e488463e31a 100644 --- a/assets/collage.css +++ b/assets/collage.css @@ -98,12 +98,6 @@ grid-column: 1 / span 3; max-width: 100%; } - - .collage-card:not(.collage-card--left):not(.collage-card--right) > * { - position: absolute; - width: 100%; - height: 100%; - } } .collage-card .card, @@ -161,7 +155,6 @@ .collage-content { justify-content: center; - overflow: hidden; } .collage-content h3 { diff --git a/assets/component-card.css b/assets/component-card.css index 65a66a6530f..2ec5ef46ee2 100644 --- a/assets/component-card.css +++ b/assets/component-card.css @@ -1,290 +1,149 @@ -.card { - display: block; - overflow: hidden; +.card-wrapper { + color: inherit; + height: 100%; + position: relative; text-decoration: none; } -.card-information + .card { - margin-bottom: 1.3rem; -} - -@media screen and (min-width: 750px) { - .card-information + .card { - margin-bottom: 1.7rem; - } -} - -.card.card--soft { - background-color: rgba(var(--color-foreground), 0.04); - color: rgb(var(--color-foreground)); -} - -.card .icon-wrap { - margin-left: 0.8rem; - white-space: nowrap; - transition: transform var(--duration-short) ease; - overflow: hidden; -} - -.card--media { - display: block; +.card { + text-align: var(--card-text-alignment); text-decoration: none; } -.card--text-only { - display: flex; - justify-content: center; -} - -.card--text-only.card--product { - position: static; -} - -.card--text-only::before { - content: ''; - display: block; - padding-bottom: 100%; -} - -.card--product { +.card--card, +.card--standard .card__inner { + background-clip: padding-box; + border-radius: var(--card-corner-radius); + border: var(--card-border-width) solid rgba(var(--color-foreground), var(--card-border-opacity)); + box-shadow: var(--card-shadow-horizontal-offset) var(--card-shadow-vertical-offset) var(--card-shadow-blur-radius) rgba(var(--color-foreground), var(--card-shadow-opacity)); + overflow: hidden; position: relative; } -.card--stretch { - height: 100%; -} - -.card--outline:not(.card--soft) { - border: calc(0.1rem / var(--font-body-scale)) solid rgba(var(--color-foreground), 0.04); +.card--standard.card--text { + background-color: transparent; } -.card--light-border { - border: 0.1rem solid rgba(var(--color-foreground), 0.04); +.card-information { + text-align: var(--card-text-alignment); } -.card--light-border:hover { - border: 0.1rem solid rgba(var(--color-foreground), 0.3); - box-shadow: none; +.card__media, +.card .media { + bottom: 0; + position: absolute; + top: 0; } -.card__text-spacing { - padding: 3rem; +.card .media { + width: 100%; } -.card-colored.color-background-1 { - background-color: rgba(var(--color-foreground), 0.04); +.card__media { + margin: var(--card-image-padding); + width: calc(100% - 2 * var(--card-image-padding)); } -.card--media .card__text-spacing { - padding: 2rem; +.card--standard .card__media { + margin: var(--card-image-padding); } -@media screen and (min-width: 750px) { - .card--media .card__text-spacing { - padding-left: 3rem; - padding-right: 3rem; - } +.card__inner { + width: 100%; } -.card-information > * + * { - margin-top: 0.5rem; +.card--media .card__inner .card__content { + padding: calc(var(--card-image-padding) + 1rem); + position: relative; } -.card--text-only .card__inner { +.card__content { display: grid; - grid-template-rows: 1fr auto 1fr; + grid-template-rows: minmax(0,1fr) max-content minmax(0,1fr); + padding: 1rem; width: 100%; } -.card__content { - margin-left: 2.5rem; - margin-right: 2.5rem; -} - -.card__content > * { - margin: 0; +.card__content--auto-margins { + grid-template-rows: minmax(0,auto) max-content minmax(0,auto); } -.card--text-only .card__content { - grid-row: 2; - justify-self: flex-start; - margin-bottom: 6rem; - margin-top: 5rem; -} - -.card--text-only .card__badge { - align-self: flex-end; - grid-row: 3; -} - -.card--search .card__badge > *, -.card--text-only .card__badge > * { - margin: 0 1.2rem 1.2rem; -} - -.card--search .card__badge, -.card--text-only .card__badge { - position: initial; -} - -.card--text-only .card__content + .card__badge { - margin-top: -5rem; -} - -.media + .card__content { - margin-top: 2rem; - margin-bottom: 1.5rem; +.card__information { + grid-row-start: 2; + padding: 1.3rem 1rem; } @media screen and (min-width: 750px) { - .card--text-only .card__content { - margin-top: 7rem; - margin-bottom: 7rem; + .card__information { + padding-bottom: 1.7rem; + padding-top: 1.7rem; } - - .card--text-only .card__content + .card__badge { - margin-top: -7rem; - } -} - -.card__text-spacing > * { - margin: 0; } -.card__text-spacing > *:not(.overlay-card) + * { - margin-top: 1.5rem; +.card__badge { + align-self: flex-end; + grid-row-start: 3; + justify-self: flex-start; } -.card__text { - margin: 0; - word-break: break-word; +.card__badge.top { + align-self: flex-start; + grid-row-start: 1; } -.card-information__text { - display: block; - margin: 0; - padding-right: 1.2rem; +.card__badge.right { + justify-self: flex-end; } -.card-information__wrapper { +.card__media .media img { + height: 100%; + object-fit: cover; + object-position: center center; width: 100%; } -.card-information__wrapper > * { - line-height: calc(1 + 0.4 / var(--font-body-scale)); - color: rgb(var(--color-foreground)); -} - -.card-information__wrapper > .price { - color: rgb(var(--color-foreground)); -} - -.card-information__wrapper > .rating { - margin-top: 0.4rem; -} - -.card-information__wrapper - > *:not(.visually-hidden:first-child) - + *:not(.rating) { - margin-top: 0.7rem; +.card__inner:not(.ratio) > .card__content { + height: 100%; } -.card-information__wrapper .caption { - letter-spacing: 0.07rem; +.card__heading { + margin-top: 0; } -.card-wrapper { - color: inherit; - display: flex; - flex-direction: column; - position: relative; - text-decoration: none; - padding-bottom: 0.5rem; +.card__heading:last-child { + margin-bottom: 0; } -.card-wrapper .card-information { - order: 1; +.card--card.card--media > .card__content { + margin-top: calc(0rem - var(--card-image-padding)); } -.card-wrapper .full-unstyled-link::after { +.card__heading a::after { + bottom: 0; content: ""; + height: 100%; + left: 0; position: absolute; - top: 0; right: 0; - bottom: 0; - left: 0; + top: 0; width: 100%; - height: 100%; z-index: 1; } -.card-wrapper .full-unstyled-link:focus-visible { - outline: 0; - box-shadow: none; -} - -.card-wrapper .full-unstyled-link:focus-visible::after { - outline: .2rem solid rgba(var(--color-foreground),.5); - outline-offset: 0.3rem; +.card-wrapper:focus-within .card { box-shadow: 0 0 0 .3rem rgb(var(--color-background)),0 0 .5rem .4rem rgba(var(--color-foreground),.3); + outline-offset: 0.3rem; + outline: .2rem solid rgba(var(--color-foreground),.5); } -.card-wrapper:focus-within .card { +.card-wrapper:focus-within .card__heading a { box-shadow: none; -} - -.card__media-spacer { - padding: 2rem 2rem 0; -} - -@media screen and (min-width: 750px) { - .card__media-spacer { - padding: 3rem 3rem 0; - } -} - -.card__media-full-spacer { - padding: 2rem; -} - -.card-article-info { - margin-top: 1rem; - display: flex; - flex-wrap: wrap; -} - -.card__badge { - bottom: 1rem; - display: flex; - flex-wrap: wrap; - left: 1rem; - position: absolute; -} - -.card__badge > * { - margin-right: 1rem; - margin-top: 0.5rem; -} - -.overlay-card { - position: absolute; - top: 0; - bottom: 0; - left: 0; - right: 0; - display: flex; - background: transparent; - transition: background-color var(--duration-long) ease; -} - -.card:hover .card-colored .overlay-card { - background-color: rgba(var(--color-card-hover), 0.06); + outline: 0; } @media screen and (min-width: 990px) { .card .media.media--hover-effect > img:only-child, - .card-wrapper .media.media--hover-effect > img:only-child, - .card--search img { + .card-wrapper .media.media--hover-effect > img:only-child { transition: transform var(--duration-long) ease; } @@ -305,22 +164,90 @@ transform: scale(1.03); } - .card-wrapper:hover .card-information__text { + .underline-links-hover:hover a { text-decoration: underline; text-underline-offset: 0.3rem; } +} - .card-wrapper:hover .card--search img { - transform: scale(1.05); - } +.card--standard.card--media .card__inner .card__information, +.card--standard.card--text > .card__content .card__heading, +.card--standard > .card__content .card__badge, +.card--standard.card--text > .card__content .card-article-info, +.card--standard > .card__content .card__caption { + display: none; +} - .card-wrapper:hover .card__text { - text-decoration: underline; - text-underline-offset: 0.3rem; - } +.card--standard > .card__content { + padding: 0; +} - .card-wrapper:hover .card--soft { - background-color: rgba(var(--color-card-hover), 0.06); - transition: background-color var(--duration-long) ease; - } +.card--standard > .card__content .card__information { + padding-left: 0; + padding-right: 0; +} + +.card--card.card--media .card__inner .card__information, +.card--card.card--text .card__inner, +.card--card.card--media > .card__content .card__badge { + display: none; +} + +.card--height-auto .card__inner:before, +.card--height-auto.card--standard:before, +.card--height-auto.card--text:before { + display: none; +} + +.card--height-auto { + height: 100%; + display: flex; + flex-direction: column; +} + +.card--height-auto.card--text.card--card .card__content, +.card--height-auto .card__inner { + flex-grow: 1; +} + +.card .icon-wrap { + margin-left: 0.8rem; + white-space: nowrap; + transition: transform var(--duration-short) ease; + overflow: hidden; +} + +.card-information > * + * { + margin-top: 0.5rem; +} + +.card-information { + width: 100%; +} + +.card-information > * { + line-height: calc(1 + 0.4 / var(--font-body-scale)); + color: rgb(var(--color-foreground)); +} + +.card-information > .price { + color: rgb(var(--color-foreground)); +} + +.card-information > .rating { + margin-top: 0.4rem; +} + +.card-information + > *:not(.visually-hidden:first-child) + + *:not(.rating) { + margin-top: 0.7rem; +} + +.card-information .caption { + letter-spacing: 0.07rem; +} + +.card-article-info { + margin-top: 1rem; } diff --git a/assets/component-price.css b/assets/component-price.css index 72795fe4ff1..59bdb097145 100644 --- a/assets/component-price.css +++ b/assets/component-price.css @@ -1,26 +1,31 @@ .price { - align-items: center; - display: flex; - flex-direction: row; - flex-wrap: wrap; font-size: 1.6rem; letter-spacing: 0.1rem; line-height: calc(1 + 0.5 / var(--font-body-scale)); color: rgb(var(--color-foreground)); } +.price > * { + display: inline-block; + vertical-align: top; +} + .price.price--unavailable { visibility: hidden; } .price--end { - justify-content: flex-end; + text-align: right; } .price .price-item { margin: 0 1rem 0 0; } +.price__regular .price-item--regular { + margin-right: 0; +} + .price:not(.price--show-badge) .price-item--last:last-of-type { margin: 0; } @@ -59,17 +64,17 @@ .price--sold-out .price__badge-sold-out, .price--on-sale .price__badge-sale { - display: inline-flex; + display: inline-block; } .price--on-sale .price__sale { - display: flex; + display: initial; flex-direction: row; flex-wrap: wrap; } .price--center { - display: flex; + display: initial; justify-content: center; } diff --git a/assets/pickup-availability.js b/assets/pickup-availability.js index 3c61947f6f2..38f55fb9d70 100644 --- a/assets/pickup-availability.js +++ b/assets/pickup-availability.js @@ -57,7 +57,8 @@ if (!customElements.get('pickup-availability')) { document.body.appendChild(sectionInnerHTML.querySelector('pickup-availability-drawer')); - this.querySelector('button').addEventListener('click', (evt) => { + const button = this.querySelector('button'); + if (button) button.addEventListener('click', (evt) => { document.querySelector('pickup-availability-drawer').show(evt.target); }); } diff --git a/assets/section-collection-list.css b/assets/section-collection-list.css index 0430b957527..eebbd650759 100644 --- a/assets/section-collection-list.css +++ b/assets/section-collection-list.css @@ -50,10 +50,6 @@ width: 100%; } -.collection-list__item .card--light-border:hover { - border: 0.1rem solid rgba(var(--color-foreground), 0.04); -} - .collection-list__item:only-child .media { height: 35rem; } @@ -111,7 +107,3 @@ } } -.collection-list__item .card__text, -.collection-list__item .card-colored { - position: relative; -} diff --git a/assets/section-main-product.css b/assets/section-main-product.css index 58f0b408fe9..5bb2ce2ee60 100644 --- a/assets/section-main-product.css +++ b/assets/section-main-product.css @@ -305,12 +305,11 @@ a.product__text { padding: 0 1rem; } -.product .price { - align-items: flex-start; +.product .price .badge { + margin-bottom: 0.5rem; } -.product .price .badge { - margin-top: 0.5rem; +.product .price__container { margin-bottom: 0.5rem; } @@ -322,7 +321,7 @@ a.product__text { .product .price--sold-out .price__badge-sold-out { background: transparent; color: rgb(var(--color-background)); - border: none; + border-color: transparent; } .product .price--sold-out .price__badge-sale { @@ -402,7 +401,7 @@ a.product__text { } .product--no-media .price { - justify-content: center; + text-align: center; } .product--no-media .product__info-wrapper { diff --git a/config/settings_schema.json b/config/settings_schema.json index 28bb304a6a2..0ebca17fad3 100644 --- a/config/settings_schema.json +++ b/config/settings_schema.json @@ -2,11 +2,247 @@ { "name": "theme_info", "theme_name": "Dawn", - "theme_version": "2.3.0", + "theme_version": "2.4.0", "theme_author": "Shopify", "theme_documentation_url": "https://help.shopify.com/manual/online-store/themes/os20/themes-by-shopify/dawn", "theme_support_url": "https://support.shopify.com/" }, + { + "name": "t:settings_schema.badges.name", + "settings": [ + { + "type": "select", + "id": "badge_position", + "options": [ + { + "value": "bottom left", + "label": "t:settings_schema.badges.settings.position.options__1.label" + }, + { + "value": "bottom right", + "label": "t:settings_schema.badges.settings.position.options__2.label" + }, + { + "value": "top left", + "label": "t:settings_schema.badges.settings.position.options__3.label" + }, + { + "value": "top right", + "label": "t:settings_schema.badges.settings.position.options__4.label" + } + ], + "default": "bottom left", + "label": "t:settings_schema.badges.settings.position.label" + }, + { + "type": "range", + "id": "badge_corner_radius", + "min": 0, + "max": 20, + "step": 2, + "unit": "px", + "label": "t:settings_schema.global.settings.corner_radius.label", + "default": 20 + }, + { + "type": "select", + "id": "badge_sale_color_scheme", + "options": [ + { + "value": "accent-1", + "label": "t:settings_schema.global.settings.color_scheme.options__1.label" + }, + { + "value": "accent-2", + "label": "t:settings_schema.global.settings.color_scheme.options__2.label" + }, + { + "value": "background-2", + "label": "t:settings_schema.global.settings.color_scheme.options__4.label" + } + ], + "default": "accent-2", + "label": "t:settings_schema.badges.settings.badge_sale_color_scheme.label" + }, + { + "type": "select", + "id": "badge_sold_out_color_scheme", + "options": [ + { + "value": "background-1", + "label": "t:settings_schema.global.settings.color_scheme.options__3.label" + }, + { + "value": "inverse", + "label": "t:settings_schema.global.settings.color_scheme.options__5.label" + } + ], + "default": "inverse", + "label": "t:settings_schema.badges.settings.badge_sold_out_color_scheme.label" + } + ] + }, + { + "name": "t:settings_schema.cards.name", + "settings": [ + { + "type": "header", + "content": "t:settings_schema.global.settings.header__general.content" + }, + { + "type": "select", + "id": "card_style", + "options": [ + { + "value": "standard", + "label": "t:settings_schema.cards.settings.style.options__1.label" + }, + { + "value": "card", + "label": "t:settings_schema.cards.settings.style.options__2.label" + } + ], + "default": "standard", + "label": "t:settings_schema.cards.settings.style.label" + }, + { + "type": "range", + "id": "card_image_padding", + "min": 0, + "max": 20, + "step": 1, + "unit": "px", + "label": "t:settings_schema.global.settings.image_padding.label", + "default": 0 + }, + { + "type": "range", + "id": "card_corner_radius", + "min": 0, + "max": 30, + "step": 3, + "unit": "px", + "label": "t:settings_schema.global.settings.corner_radius.label", + "default": 0 + }, + { + "type": "select", + "id": "card_text_alignment", + "options": [ + { + "value": "left", + "label": "t:settings_schema.global.settings.text_alignment.options__1.label" + }, + { + "value": "center", + "label": "t:settings_schema.global.settings.text_alignment.options__2.label" + }, + { + "value": "right", + "label": "t:settings_schema.global.settings.text_alignment.options__3.label" + } + ], + "default": "left", + "label": "t:settings_schema.global.settings.text_alignment.label" + }, + { + "type": "select", + "id": "card_color_scheme", + "options": [ + { + "value": "accent-1", + "label": "t:settings_schema.global.settings.color_scheme.options__1.label" + }, + { + "value": "accent-2", + "label": "t:settings_schema.global.settings.color_scheme.options__2.label" + }, + { + "value": "background-1", + "label": "t:settings_schema.global.settings.color_scheme.options__3.label" + }, + { + "value": "background-2", + "label": "t:settings_schema.global.settings.color_scheme.options__4.label" + }, + { + "value": "inverse", + "label": "t:settings_schema.global.settings.color_scheme.options__5.label" + } + ], + "default": "background-1", + "label": "t:settings_schema.global.settings.color_scheme.label" + }, + { + "type": "header", + "content": "t:settings_schema.global.settings.header__border.content" + }, + { + "type": "range", + "id": "card_border_width", + "min": 0, + "max": 10, + "step": 1, + "unit": "px", + "label": "t:settings_schema.global.settings.width.label", + "default": 1 + }, + { + "type": "range", + "id": "card_border_opacity", + "min": 0, + "max": 100, + "step": 5, + "unit": "%", + "label": "t:settings_schema.global.settings.opacity.label", + "default": 10 + }, + { + "type": "header", + "content": "t:settings_schema.global.settings.header__shadow.content" + }, + { + "type": "range", + "id": "card_shadow_opacity", + "min": 0, + "max": 100, + "step": 5, + "unit": "%", + "label": "t:settings_schema.global.settings.opacity.label", + "default": 10 + }, + { + "type": "range", + "id": "card_shadow_horizontal_offset", + "min": -20, + "max": 20, + "step": 2, + "unit": "px", + "label": "t:settings_schema.global.settings.horizontal_offset.label", + "default": 0 + }, + { + "type": "range", + "id": "card_shadow_vertical_offset", + "min": -20, + "max": 20, + "step": 2, + "unit": "px", + "label": "t:settings_schema.global.settings.vertical_offset.label", + "default": 0 + }, + { + "type": "range", + "id": "card_shadow_blur_radius", + "min": 0, + "max": 20, + "step": 2, + "unit": "px", + "label": "t:settings_schema.global.settings.blur_radius.label", + "default": 0 + } + ] + }, { "name": "t:settings_schema.colors.name", "settings": [ @@ -564,46 +800,6 @@ "type": "header", "content": "t:settings_schema.styles.settings.header__1.content" }, - { - "type": "select", - "id": "sale_badge_color_scheme", - "options": [ - { - "value": "accent-1", - "label": "t:settings_schema.styles.settings.sale_badge_color_scheme.options__2.label" - }, - { - "value": "accent-2", - "label": "t:settings_schema.styles.settings.sale_badge_color_scheme.options__3.label" - }, - { - "value": "background-2", - "label": "t:settings_schema.styles.settings.sale_badge_color_scheme.options__1.label" - } - ], - "default": "accent-2", - "label": "t:settings_schema.styles.settings.sale_badge_color_scheme.label" - }, - { - "type": "select", - "id": "sold_out_badge_color_scheme", - "options": [ - { - "value": "background-1", - "label": "t:settings_schema.styles.settings.sold_out_badge_color_scheme.options__1.label" - }, - { - "value": "inverse", - "label": "t:settings_schema.styles.settings.sold_out_badge_color_scheme.options__2.label" - } - ], - "default": "inverse", - "label": "t:settings_schema.styles.settings.sold_out_badge_color_scheme.label" - }, - { - "type": "header", - "content": "t:settings_schema.styles.settings.header__2.content" - }, { "type": "select", "id": "accent_icons", diff --git a/layout/theme.liquid b/layout/theme.liquid index 9a1c350c78a..dd64a24ef3d 100644 --- a/layout/theme.liquid +++ b/layout/theme.liquid @@ -83,6 +83,18 @@ --page-width: {{ settings.page_width | divided_by: 10 }}rem; --page-width-margin: {% if settings.page_width == '1600' %}2{% else %}0{% endif %}rem; + --card-image-padding: {{ settings.card_image_padding | divided_by: 10.0 }}rem; + --card-corner-radius: {{ settings.card_corner_radius | divided_by: 10.0 }}rem; + --card-text-alignment: {{ settings.card_text_alignment }}; + --card-border-width: {{ settings.card_border_width | divided_by: 10.0 }}rem; + --card-border-opacity: {{ settings.card_border_opacity | divided_by: 100.0 }}; + --card-shadow-opacity: {{ settings.card_shadow_opacity | divided_by: 100.0 }}; + --card-shadow-horizontal-offset: {{ settings.card_shadow_horizontal_offset | divided_by: 10.0 }}rem; + --card-shadow-vertical-offset: {{ settings.card_shadow_vertical_offset | divided_by: 10.0 }}rem; + --card-shadow-blur-radius: {{ settings.card_shadow_blur_radius | divided_by: 10.0 }}rem; + + --badge-corner-radius: {{ settings.badge_corner_radius | divided_by: 10.0 }}rem; + --sections-spacing: {{ settings.sections_spacing }}px; --sections-safe-spacing: {% if settings.sections_spacing < 15 %}15{% else %}{{settings.sections_spacing}}{% endif %}px; --sections-padding: 20px; diff --git a/locales/en.default.schema.json b/locales/en.default.schema.json index 2ec3885c89b..3ff385fd210 100644 --- a/locales/en.default.schema.json +++ b/locales/en.default.schema.json @@ -1,5 +1,112 @@ { "settings_schema": { + "global": { + "settings": { + "header__general": { + "content": "General" + }, + "header__border": { + "content": "Border" + }, + "header__shadow": { + "content": "Shadow" + }, + "blur_radius": { + "label": "Blur radius" + }, + "corner_radius": { + "label": "Corner radius" + }, + "horizontal_offset": { + "label": "Horizontal offset" + }, + "vertical_offset": { + "label": "Vertical offset" + }, + "opacity": { + "label": "Opacity" + }, + "width": { + "label": "Width" + }, + "image_padding": { + "label": "Image padding" + }, + "text_alignment": { + "options__1": { + "label": "Left" + }, + "options__2": { + "label": "Center" + }, + "options__3": { + "label": "Right" + }, + "label": "Text alignment" + }, + "color_scheme": { + "options__1": { + "label": "Accent 1" + }, + "options__2": { + "label": "Accent 2" + }, + "options__3": { + "label": "Background 1" + }, + "options__4": { + "label": "Background 2" + }, + "options__5": { + "label": "Inverse" + }, + "label": "Color scheme" + } + } + }, + "cards": { + "name": "Cards", + "settings": { + "header__badge": { + "content": "Badge" + }, + "style": { + "options__1": { + "label": "Standard" + }, + "options__2": { + "label": "Card" + }, + "label": "Style" + } + } + }, + "badges": { + "name": "Badges", + "settings": { + "position": { + "options__1": { + "label": "Bottom left" + }, + "options__2": { + "label": "Bottom right" + }, + "options__3": { + "label": "Top left" + }, + "options__4": { + "label": "Top right" + }, + "label": "Position" + }, + "badge_sale_color_scheme": { + "label": "Sale badge color scheme" + }, + "badge_sold_out_color_scheme": { + "label": "Sold out badge color scheme" + } + } + }, "colors": { "name": "Colors", "settings": { @@ -104,32 +211,8 @@ "name": "Styles", "settings": { "header__1": { - "content": "Badges" - }, - "header__2": { "content": "Decorative elements" }, - "sale_badge_color_scheme": { - "options__1": { - "label": "Background 2" - }, - "options__2": { - "label": "Accent 1" - }, - "options__3": { - "label": "Accent 2" - }, - "label": "Sale badge color scheme" - }, - "sold_out_badge_color_scheme": { - "options__1": { - "label": "Background 1" - }, - "options__2": { - "label": "Inverse" - }, - "label": "Sold out badge color scheme" - }, "accent_icons": { "options__1": { "label": "Accent 1" @@ -358,11 +441,7 @@ }, "second_image": { "label": "Show second image on hover" - }, - "image_padding": { - "label": "Add image padding", - "info": "Select image padding if you don't want your images to be cropped." - } + } } }, "collection": { @@ -370,28 +449,6 @@ "settings": { "collection": { "label": "Collection" - }, - "image_padding": { - "label": "Add image padding", - "info": "Select image padding if you don't want your image to be cropped." - }, - "color_scheme": { - "options__1": { - "label": "Accent 1" - }, - "options__2": { - "label": "Accent 2" - }, - "options__3": { - "label": "Background 1" - }, - "options__4": { - "label": "Background 2" - }, - "options__5": { - "label": "Inverse" - }, - "label": "Color scheme" } } }, @@ -439,31 +496,10 @@ "label": "Square" }, "info": "Add images by editing your collections. [Learn more](https://help.shopify.com/en/manual/products/collections)" - }, - "color_scheme": { - "options__1": { - "label": "Accent 1" - }, - "options__2": { - "label": "Accent 2" - }, - "options__3": { - "label": "Background 1" - }, - "options__4": { - "label": "Background 2" - }, - "options__5": { - "label": "Inverse" - }, - "label": "Color scheme" - }, + }, "swipe_on_mobile": { "label": "Enable swipe on mobile" }, - "image_padding": { - "label": "Add image padding" - }, "show_view_all": { "label": "Enable \"View all\" button if list includes more collections than shown" } @@ -568,13 +604,7 @@ }, "show_secondary_image": { "label": "Show second image on hover" - }, - "add_image_padding": { - "label": "Add image padding" - }, - "show_image_outline": { - "label": "Show image border" - }, + }, "show_vendor": { "label": "Show vendor" }, @@ -1215,13 +1245,7 @@ }, "show_secondary_image": { "label": "Show second image on hover" - }, - "add_image_padding": { - "label": "Add image padding" - }, - "show_image_outline": { - "label": "Show image border" - }, + }, "show_vendor": { "label": "Show vendor" }, @@ -1283,28 +1307,7 @@ "label": "Square" }, "info": "Add images by editing your collections. [Learn more](https://help.shopify.com/en/manual/products/collections)" - }, - "color_scheme": { - "options__1": { - "label": "Accent 1" - }, - "options__2": { - "label": "Accent 2" - }, - "options__3": { - "label": "Background 1" - }, - "options__4": { - "label": "Background 2" - }, - "options__5": { - "label": "Inverse" - }, - "label": "Color scheme" - }, - "image_padding": { - "label": "Add image padding" - } + } } }, "main-page": { @@ -1590,13 +1593,7 @@ }, "show_secondary_image": { "label": "Show second image on hover" - }, - "add_image_padding": { - "label": "Add image padding" - }, - "show_image_outline": { - "label": "Show image border" - }, + }, "show_vendor": { "label": "Show vendor" }, @@ -1892,13 +1889,7 @@ }, "show_secondary_image": { "label": "Show second image on hover" - }, - "add_image_padding": { - "label": "Add image padding" - }, - "show_image_outline": { - "label": "Show image border" - }, + }, "show_vendor": { "label": "Show vendor" }, diff --git a/locales/pt-BR.schema.json b/locales/pt-BR.schema.json index add212918b6..305ba73b7e9 100644 --- a/locales/pt-BR.schema.json +++ b/locales/pt-BR.schema.json @@ -478,13 +478,17 @@ "label": "Habilitar o botão \"Ver tudo\" se o blog tiver mais posts que os mostrados" }, "show_image": { - "info": "Use uma imagem com proporção 3:2 para alcançar os melhores resultados. [Saiba mais](https://help.shopify.com/en/manual/shopify-admin/productivity-tools/image-editor#understanding-image-aspect-ratio)" + "info": "Use uma imagem com proporção 3:2 para alcançar os melhores resultados. [Saiba mais](https://help.shopify.com/en/manual/shopify-admin/productivity-tools/image-editor#understanding-image-aspect-ratio)", + "label": "Mostrar imagem em destaque" }, "show_date": { "label": "Mostrar data" }, "show_author": { "label": "Mostrar autor" + }, + "soft_background": { + "label": "Mostrar plano de fundo secundário" } }, "presets": { @@ -958,7 +962,7 @@ "content": "Cartão de post do blog" }, "show_image": { - "label": "Exibir imagem em destaque" + "label": "Mostrar imagem em destaque" }, "paragraph": { "content": "Edite os posts do blog para alterar os resumos. [Saiba mais](https://help.shopify.com/en/manual/online-store/blogs/writing-blogs#display-an-excerpt-from-a-blog-post)" diff --git a/sections/collage.liquid b/sections/collage.liquid index e450f7ededc..b371d25b84c 100644 --- a/sections/collage.liquid +++ b/sections/collage.liquid @@ -45,163 +45,24 @@ {%- endif -%} - {%- when 'product'-%} -
- {{- block.settings.collection.description | strip_html | truncatewords: 12 -}} {% render 'icon-arrow' %} -
- {%- endif -%} -