File: D:/HostingSpaces/SBogers95/rentman.io/resources/assets/sass/site/5-Components/_components.tile.scss
.c-tile {
@include border-radius(large);
@include box-shadow(high);
display: flex;
flex-direction: column;
background-color: palette(light);
overflow: hidden;
}
.c-tile__visual {
width: 100%;
height: auto;
aspect-ratio: 432 / 240;
}
.c-tile__body {
flex: 1;
display: flex;
flex-direction: column;
padding: var(--body-padding, clamp(16px, 8.3%, 32px));
// when there is no image body is first, and we tweak some properties
&:first-child {
--body-padding: clamp(24px, 12.5%, 48px);
--title-fs: 1.75rem;
}
}
.c-tile__heading {
display: flex;
align-items: center;
gap: 16px;
margin-bottom: 20px;
}
.c-tile__icon {
flex: none;
width: 40px;
height: 40px;
background-color: palette(primary);
color: white;
display: inline-grid;
place-content: center;
place-items: center;
border-radius: 4px;
svg {
width: 100%;
height: auto;
max-height: 24px;
}
}
.c-tile__title {
@include font-family(primary);
font-size: var(--title-fs, 1.5rem);
line-height: 1;
font-weight: 600;
color: palette(dark);
}
.c-tile__subtitle {
@include font-family(primary);
font-size: 1.125rem;
line-height: 1.33333;
font-weight: 600;
color: palette(dark);
margin-bottom: 24px;
}
.c-tile__description {
font-size: 1rem;
line-height: 1.5;
}
.c-tile__action {
margin-top: auto;
padding-top: 30px;
}