afc56a8398
ButtonToolbar.svelte now has to assume that the button elements are two levels below it. This can be simplified once we can use flex-gap.
34 lines
765 B
Svelte
34 lines
765 B
Svelte
<!--
|
|
Copyright: Ankitects Pty Ltd and contributors
|
|
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
-->
|
|
<script lang="ts">
|
|
export let id: string | undefined = undefined;
|
|
let className: string = "";
|
|
export { className as class };
|
|
|
|
export let height: number = 0;
|
|
</script>
|
|
|
|
<footer {id} bind:offsetHeight={height} class="sticky-footer {className}">
|
|
<slot />
|
|
</footer>
|
|
|
|
<style lang="scss">
|
|
.sticky-footer {
|
|
position: sticky;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 10;
|
|
|
|
background: var(--window-bg);
|
|
border-style: solid;
|
|
border-color: var(--medium-border);
|
|
border-width: 0;
|
|
padding: 0 3px;
|
|
|
|
bottom: 0;
|
|
border-top-width: 1px;
|
|
}
|
|
</style>
|