UnisKB/ui/src/layout/layout-template/AppLayout.vue

37 lines
643 B
Vue
Raw Normal View History

2023-10-16 10:58:51 +00:00
<script setup lang="ts">
import { TopBar, AppMain } from '../components'
</script>
<template>
<div class="app-layout">
<div class="app-header">
<TopBar />
</div>
<div class="app-main">
<AppMain />
</div>
</div>
</template>
2024-07-10 03:27:52 +00:00
<style lang="scss">
2023-10-16 10:58:51 +00:00
.app-layout {
background-color: var(--app-layout-bg-color);
2023-11-21 07:22:10 +00:00
height: 100%;
2023-10-16 10:58:51 +00:00
}
.app-main {
2023-11-21 07:22:10 +00:00
position: relative;
height: 100%;
padding: var(--app-header-height) 0 0 !important;
2023-11-02 10:25:09 +00:00
box-sizing: border-box;
2023-11-21 07:22:10 +00:00
overflow: auto;
2023-10-16 10:58:51 +00:00
}
.app-header {
2023-11-02 10:25:09 +00:00
background: var(--app-header-bg-color);
2023-11-21 07:22:10 +00:00
position: fixed;
width: 100%;
left: 0;
top: 0;
z-index: 100;
2023-10-16 10:58:51 +00:00
}
</style>