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

34 lines
726 B
Svelte
Raw Normal View History

2020-06-19 09:14:03 +02:00
<script>
2020-10-02 13:22:49 +02:00
import SettingsModal from "./SettingsModal.svelte"
2020-06-19 09:14:03 +02:00
import { SettingsIcon } from "components/common/Icons/"
2020-10-02 13:22:49 +02:00
import { Modal } from "components/common/Modal"
2020-06-19 09:14:03 +02:00
let modalVisible
2020-06-19 09:14:03 +02:00
</script>
<span class="topnavitemright settings" on:click={() => (modalVisible = true)}>
2020-06-19 09:14:03 +02:00
<SettingsIcon />
</span>
{#if modalVisible}
<SettingsModal bind:visible={modalVisible} />
{/if}
2020-06-19 09:14:03 +02:00
<style>
span:first-letter {
text-transform: capitalize;
}
.topnavitemright {
cursor: pointer;
color: var(--grey-7);
2020-06-19 09:14:03 +02:00
margin: 0px 20px 0px 0px;
padding-top: 4px;
font-weight: 500;
font-size: 1rem;
height: 100%;
display: flex;
flex: 1;
align-items: center;
box-sizing: border-box;
}
</style>