2021-03-25 23:32:23 +01:00
|
|
|
<script lang="typescript">
|
2021-03-29 21:48:31 +02:00
|
|
|
import ButtonGroup from "./ButtonGroup.svelte";
|
2021-03-30 01:23:39 +02:00
|
|
|
import type { Buttons } from "./ButtonGroup.svelte";
|
2021-03-25 23:32:23 +01:00
|
|
|
|
2021-03-30 01:23:39 +02:00
|
|
|
export let buttons: Buttons = [];
|
2021-03-25 23:32:23 +01:00
|
|
|
export let nightMode: boolean;
|
|
|
|
|
|
|
|
console.log(nightMode);
|
2021-03-25 21:11:40 +01:00
|
|
|
</script>
|
|
|
|
|
2021-03-30 00:51:44 +02:00
|
|
|
<style lang="scss">
|
|
|
|
div {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
|
|
position: sticky;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
z-index: 5;
|
|
|
|
padding: 2px;
|
|
|
|
|
|
|
|
background: var(--bg-color);
|
2021-03-30 01:23:39 +02:00
|
|
|
border-bottom: 1px solid var(--border);
|
|
|
|
|
|
|
|
/* Remove most outer marigns */
|
|
|
|
& > :global(ul) {
|
|
|
|
& > :global(li:nth-child(1)) {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
& > :global(li:nth-last-child(1)) {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
}
|
2021-03-30 00:51:44 +02:00
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<ButtonGroup {buttons} />
|
|
|
|
</div>
|