diff --git a/src/es/components/molecules/brandWrapper/BrandWrapper.js b/src/es/components/molecules/brandWrapper/BrandWrapper.js index 8218c66..e492d14 100644 --- a/src/es/components/molecules/brandWrapper/BrandWrapper.js +++ b/src/es/components/molecules/brandWrapper/BrandWrapper.js @@ -1,32 +1,46 @@ import { Shadow } from '../../web-components-toolbox/src/es/components/prototypes/Shadow.js' export default class BrandWrapper extends Shadow() { - constructor (options = {}, ...args) { + constructor(options = {}, ...args) { super({ hoverInit: undefined, importMetaUrl: import.meta.url, ...options }, ...args) } - connectedCallback () { + connectedCallback() { if (this.shouldRenderCSS()) this.renderCSS() } - shouldRenderCSS () { + shouldRenderCSS() { return !this.root.querySelector(`:host > style[_css], ${this.tagName} > style[_css]`) } - renderCSS () { + renderCSS() { this.css = /* css */` :host{ display: var(--any-display, block); flex-wrap: wrap; flex-direction: row; - justify-content: space-between; + justify-content: center; gap: 0.5em; --any-display: var(--brand-wrapper-any-display, flex); --img-height: var(--brand-wrapper-img-height, 1%); --picture-scale-up-img-height: var(--brand-wrapper-picture-scale-up-img-height, 8em); - --picture-scale-up-img-width: var(--brand-wrapper-picture-scale-up-img-width, 10em); + --picture-scale-up-img-width: var(--brand-wrapper-picture-scale-up-img-width, fit-content); + --wrapper-teaser-gap: 2.3em; + --picture-scale-up-img-width-mobile: 16em; } + + :host > section{ + --wrapper-teaser-justify-content: space-between; + } + + @media only screen and (max-width: 767px) { + :host{ + flex-direction: row; + flex-wrap: nowrap; + } + } + ` } }