UNPKG

@swissup/pwa-highlight

Version:

Highlight integration into venia-ui (pwa-studio)

103 lines (84 loc) 1.7 kB
.root { display: flex; } .root .title { width: 23%; box-sizing: border-box; text-align: left; margin: 0; border: 0; background: none; position: relative; } .root .title > strong { color: #fff; font-size: 32px; line-height: normal; text-transform: none; padding: 25px; } .root .title > strong > span { font-weight: 300; padding: 0 0 0 25px; } .root .title > div > span { position: absolute; bottom: 0; } .root .title > div > span > img { width: 100%; height: auto; aspect-ratio: attr(width) / attr(height); margin: 0; } .root .title > p { margin: 10px 0 10px 20px; } .root .title > p > a { display: inline-block; padding: 5px 12px; background-color: #fff; border-radius: 2px; box-shadow: 0 2px 7px rgba(0, 0, 0, 0.1); text-decoration: none; color: #333; font-size: 1.9rem; font-weight: 600; text-shadow: 0 0 3px rgba(0, 0, 0, 0.1); transition: transform 200ms linear, box-shadow 200ms linear; } @media only screen and (max-width: 768px) { .root .title > strong { font-size: 16px; } .root .title > p { margin: 10px 0 10px 10px; } .root .title > p > a { font-size: 1rem; font-weight: 100; } } .root.hl-blue > .title { background-color: #1c73f5; } .root.hl-orange > .title { background-color: #fe6500; } .root.hl-green > .title { background-color: #45ca38; } .root.hl-purple > .title { background-color: #6346cf; } .root.hl-red > .title { background-color: #f54034; } .root .content { width: 95%; } /* :global(.highlight-title) { } :global(.highlight-content) { } */