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
|
|
|
|
2020-10-05 12:13:09 +02:00
|
|
|
let modalVisible
|
2020-06-19 09:14:03 +02:00
|
|
|
</script>
|
|
|
|
|
2020-10-05 12:13:09 +02:00
|
|
|
<span class="topnavitemright settings" on:click={() => (modalVisible = true)}>
|
2020-06-19 09:14:03 +02:00
|
|
|
<SettingsIcon />
|
|
|
|
</span>
|
2020-10-05 12:13:09 +02:00
|
|
|
{#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;
|
2020-07-12 20:19:12 +02:00
|
|
|
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>
|