Apps feature

This commit is contained in:
rotimi_best
2021-05-29 20:47:46 +03:00
parent 8b4cf30465
commit 674e9c59b8
17 changed files with 319 additions and 64 deletions
+44
View File
@@ -0,0 +1,44 @@
<script>
export let title;
</script>
<style>
.tooltip {
position: relative;
display: inline-block;
}
.tooltip .tooltiptext {
color: #fff;
padding: 4px 8px;
font-size: 0.625rem;
max-width: 300px;
word-wrap: break-word;
font-family: "Roboto", "Helvetica", "Arial", sans-serif;
font-weight: 500;
line-height: 1.4em;
border-radius: 4px;
background-color: rgba(97, 97, 97, 0.9);
visibility: hidden;
text-align: center;
/* Position the tooltip */
position: absolute;
z-index: 1;
top: 100%;
left: 0;
}
.tooltip:hover .tooltiptext {
visibility: visible;
}
</style>
{#if !!title}
<div class="tooltip">
<span class="tooltiptext">{title}</span>
<slot />
</div>
{:else}
<slot />
{/if}