mirror of
https://github.com/ReVanced/revanced-website.git
synced 2026-01-25 11:51:03 +00:00
feat: Add verified badge to team member card (#216)
Co-authored-by: Kendell R <KTibow@users.noreply.github.com> Co-authored-by: Ushie <ushiekane@gmail.com>
This commit is contained in:
29
src/lib/components/ToolTip.svelte
Normal file
29
src/lib/components/ToolTip.svelte
Normal file
@@ -0,0 +1,29 @@
|
||||
<script lang="ts">
|
||||
import { tooltip } from 'svooltip';
|
||||
import '../styles/ToolTip.scss';
|
||||
|
||||
export let content: string;
|
||||
export let html: boolean = false;
|
||||
</script>
|
||||
|
||||
<div
|
||||
use:tooltip={{
|
||||
content: content,
|
||||
html: html
|
||||
}}
|
||||
>
|
||||
<slot />
|
||||
</div>
|
||||
|
||||
<style>
|
||||
:root {
|
||||
--svooltip-bg: var(--surface-three);
|
||||
--svooltip-text: var(--text-four);
|
||||
--svooltip-padding: 0.75rem 1rem;
|
||||
--svooltip-weight: bold;
|
||||
--svooltip-text-size: 16px;
|
||||
--svooltip-shadow: var(--drop-shadow-one);
|
||||
--svooltip-arrow-size: 0;
|
||||
--svooltip-roundness: 12px;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user