2021-04-27 22:35:25 +02:00
|
|
|
<!--
|
|
|
|
Copyright: Ankitects Pty Ltd and contributors
|
|
|
|
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
-->
|
2021-10-26 00:43:02 +02:00
|
|
|
<script lang="ts">
|
2021-05-05 01:22:51 +02:00
|
|
|
export let id: string | undefined = undefined;
|
2021-05-27 20:28:23 +02:00
|
|
|
let className: string = "";
|
2021-04-27 22:35:25 +02:00
|
|
|
export { className as class };
|
|
|
|
</script>
|
|
|
|
|
2021-10-28 11:37:52 +02:00
|
|
|
<header {id} class="sticky-header container-fluid {className}">
|
2021-05-26 01:21:33 +02:00
|
|
|
<slot />
|
2021-09-15 23:15:55 +02:00
|
|
|
</header>
|
2021-05-26 01:21:33 +02:00
|
|
|
|
2021-04-27 22:35:25 +02:00
|
|
|
<style lang="scss">
|
2021-10-28 11:37:52 +02:00
|
|
|
.sticky-header {
|
2021-04-27 22:35:25 +02:00
|
|
|
position: sticky;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
z-index: 10;
|
|
|
|
|
|
|
|
background: var(--window-bg);
|
2021-10-18 14:01:15 +02:00
|
|
|
border-style: solid;
|
|
|
|
border-color: var(--medium-border);
|
|
|
|
border-width: 0;
|
|
|
|
padding: 0 3px;
|
|
|
|
|
|
|
|
top: 0;
|
|
|
|
border-bottom-width: 1px;
|
2021-04-27 22:35:25 +02:00
|
|
|
}
|
|
|
|
</style>
|