budibase/packages/builder/src/components/settings/ThemeEditorDropdown.svelte

42 lines
844 B
Svelte
Raw Normal View History

<script>
2021-04-23 11:55:27 +02:00
import { Icon, Label, Popover } from "@budibase/bbui"
import ThemeEditor from "./ThemeEditor.svelte"
let anchor
let popover
</script>
<div class="topnavitemright" on:click={popover.show} bind:this={anchor}>
2021-04-23 11:55:27 +02:00
<Icon hoverable name="ColorFill" />
</div>
<div class="dropdown">
<Popover bind:this={popover} {anchor} align="right">
<div class="content">
<Label extraSmall grey>Theme</Label>
<ThemeEditor />
</div>
</Popover>
</div>
<style>
.dropdown {
z-index: 2;
}
.topnavitemright {
cursor: pointer;
color: var(--grey-7);
margin: 0 12px 0 0;
font-weight: 500;
font-size: 1rem;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
height: 24px;
width: 24px;
}
.content {
padding: var(--spacing-xl);
}
</style>