dbgate/packages/web/src/Screen.svelte

46 lines
1.0 KiB
Svelte
Raw Normal View History

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-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-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-17 17:46:27 +00:00
</style>