2021-02-17 17:46:27 +00:00
|
|
|
<script lang="ts">
|
2021-02-17 19:08:16 +00:00
|
|
|
import WidgetContainer from './widgets/WidgetContainer.svelte';
|
2021-02-17 17:46:27 +00:00
|
|
|
import WidgetIconPanel from './widgets/WidgetIconPanel.svelte';
|
2021-02-20 09:43:43 +00:00
|
|
|
import { selectedWidget } from './stores';
|
2021-02-21 10:35:50 +00:00
|
|
|
import TabsPanel from './widgets/TabsPanel.svelte';
|
2021-02-22 16:34:24 +00:00
|
|
|
import TabContent from './TabContent.svelte';
|
2021-02-17 17:46:27 +00:00
|
|
|
</script>
|
|
|
|
|
2021-02-20 09:40:29 +00:00
|
|
|
<div class="theme-light">
|
2021-02-17 17:46:27 +00:00
|
|
|
<div class="iconbar">
|
|
|
|
<WidgetIconPanel />
|
|
|
|
</div>
|
|
|
|
<div class="statusbar" />
|
2021-02-17 19:08:16 +00:00
|
|
|
{#if $selectedWidget}
|
2021-02-20 09:43:43 +00:00
|
|
|
<div class="leftpanel">
|
2021-02-17 19:08:16 +00:00
|
|
|
<WidgetContainer />
|
|
|
|
</div>
|
|
|
|
{/if}
|
2021-02-21 10:35:50 +00:00
|
|
|
<div class="tabs">
|
|
|
|
<TabsPanel />
|
|
|
|
</div>
|
2021-02-22 16:34:24 +00:00
|
|
|
<div class="content">
|
|
|
|
<TabContent />
|
|
|
|
</div>
|
2021-02-17 17:46:27 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.iconbar {
|
|
|
|
position: fixed;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
2021-02-20 09:40:29 +00:00
|
|
|
bottom: var(--dim-statusbar-height);
|
|
|
|
width: var(--dim-widget-icon-size);
|
|
|
|
background: var(--theme-bg-inv-1);
|
2021-02-17 17:46:27 +00:00
|
|
|
}
|
|
|
|
.statusbar {
|
|
|
|
position: fixed;
|
2021-02-20 09:40:29 +00:00
|
|
|
background: var(--theme-bg-statusbar-inv);
|
|
|
|
height: var(--dim-statusbar-height);
|
2021-02-17 17:46:27 +00:00
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
}
|
2021-02-17 19:08:16 +00:00
|
|
|
.leftpanel {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
2021-02-20 09:40:29 +00:00
|
|
|
left: var(--dim-widget-icon-size);
|
|
|
|
bottom: var(--dim-statusbar-height);
|
2021-02-20 09:43:43 +00:00
|
|
|
width: var(--dim-left-panel-width);
|
2021-02-20 09:40:29 +00:00
|
|
|
background-color: var(--theme-bg-2);
|
2021-02-17 19:08:16 +00:00
|
|
|
display: flex;
|
|
|
|
}
|
2021-02-21 10:35:50 +00:00
|
|
|
.tabs {
|
|
|
|
display: flex;
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
2021-02-22 16:34:24 +00:00
|
|
|
left: var(--dim-content-left);
|
2021-02-21 10:35:50 +00:00
|
|
|
height: var(--dim-tabs-panel-height);
|
|
|
|
right: 0;
|
|
|
|
background-color: var(--theme-bg-2);
|
|
|
|
border-top: 1px solid var(--theme-border);
|
|
|
|
|
|
|
|
overflow-x: auto;
|
|
|
|
}
|
|
|
|
.tabs::-webkit-scrollbar {
|
|
|
|
height: 7px;
|
|
|
|
}
|
2021-02-22 16:34:24 +00:00
|
|
|
.content {
|
|
|
|
position: fixed;
|
|
|
|
top: var(--dim-tabs-panel-height);
|
|
|
|
left: var(--dim-content-left);
|
|
|
|
bottom: var(--dim-statusbar-height);
|
|
|
|
right: 0;
|
|
|
|
background-color: var(--theme-bg-1);
|
|
|
|
}
|
2021-02-17 17:46:27 +00:00
|
|
|
</style>
|