Spaces:
Sleeping
Sleeping
File size: 1,546 Bytes
43a06dc |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
<script lang="ts">
export let title: string;
export let description: string;
export let icon: ConstructorOfATypedSvelteComponent;
</script>
<div class="bullet-holder">
<div class="bullet-icon">
<svelte:component this={icon} />
</div>
<div class="bullet-content">
<div class="bullet-title">
{title}
</div>
<div class="subtext bullet-description">
{description}
</div>
</div>
</div>
<style>
.bullet-holder {
display: flex;
flex-direction: row;
text-align: start;
gap: var(--padding);
}
.bullet-content {
display: flex;
flex-direction: column;
gap: calc(var(--padding) / 2);
}
.bullet-title {
color: var(--secondary);
display: flex;
flex-direction: row;
align-items: center;
font-weight: 500;
gap: var(--padding);
}
.bullet-description {
padding: 0;
line-height: 1.5;
font-size: 13.5px;
}
.bullet-icon {
display: flex;
}
.bullet-icon :global(svg) {
width: 21px;
height: 21px;
}
@media screen and (max-width: 535px) {
.bullet-content {
gap: calc(var(--padding) / 2.5);
}
.bullet-title {
font-size: 15px;
}
.bullet-description {
font-size: 13px;
}
.bullet-icon :global(svg) {
width: 19px;
height: 19px;
}
}
</style>
|