anki/ts/components/StickyBar.svelte

27 lines
597 B
Svelte
Raw Normal View History

<!--
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
export let id: string | undefined = undefined;
let className: string | undefined;
export { className as class };
</script>
<nav {id} class={`pb-1 pt-1 ${className}`}>
<slot />
</nav>
<style lang="scss">
nav {
position: sticky;
top: 0;
left: 0;
right: 0;
z-index: 10;
background: var(--window-bg);
2021-05-20 04:49:07 +02:00
border-bottom: 1px solid var(--medium-border);
}
</style>