libs/design/hero/examples/src/hero-with-grid/hero-with-grid.component.scss
@use '../../../../scss/layout';
.daff-hero-with-grid {
&__grid {
// stylelint-disable-next-line scss/comment-no-loud
/* autoprefixer grid: autoplace */
display: grid;
grid-template:
'image'
'content' / 1fr;
grid-gap: 24px;
@include layout.breakpoint(tablet) {
grid-template:
'image content' / 1fr 1fr;
grid-gap: 48px;
align-items: center;
}
}
&__image {
grid-area: image;
}
&__content-wrapper {
grid-area: content;
}
&__icon {
display: flex;
background: rgba(var(--daff-theme-rgb), 0.2);
border-radius: 50%;
color: var(--daff-theme-contrast-rgb);
width: 48px;
height: 48px;
justify-content: center;
align-items: center;
padding: 12px 0;
}
}