File: /var/www/blog.affstore/src/components/layout/SharePost.svelte
<script lang="ts">
import Share from '../post/Share.svelte';
export let title: string ;
export let description: string;
</script>
<div class="layout-share" on:click={() => false} role="button" on:keydown={() => false} tabindex="0">
<Share title={title} description={description} />
</div>
<style lang="scss">
@import 'src/scss/media';
@import 'src/scss/variables';
.layout-share {
position: fixed;
left: 50%;
transform: translateX(-50%);
bottom: 32px;
z-index: 9;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
@include breakpoint-down('tabM') {
bottom: 24px;
}
@include breakpoint-down('tabS') {
bottom: 20px;
}
:global(.share) {
background: $white;
padding: 17px 19px;
@include breakpoint-down('tabM') {
padding: 9px 15px;
}
}
}
</style>