浏览代码

feat: Add sidebar component

Owen Diffey 2 周之前
父节点
当前提交
ac4e0d12ef
共有 1 个文件被更改,包括 27 次插入0 次删除
  1. 27 0
      frontend/src/pages/NewStation/Components/Sidebar.vue

+ 27 - 0
frontend/src/pages/NewStation/Components/Sidebar.vue

@@ -0,0 +1,27 @@
+<template>
+	<nav class="sidebar">
+		<slot />
+	</nav>
+</template>
+
+<style lang="less" scoped>
+.sidebar {
+	display: flex;
+	flex: 0 0 350px;
+	flex-direction: column;
+	min-height: 100%;
+	max-height: calc(100vh - 64px);
+	background-color: var(--white);
+	padding: 20px;
+	gap: 20px;
+	box-shadow: 0px 0px 2px 1px rgba(10, 10, 10, 0.1);
+	overflow: auto;
+
+	:deep(&__divider) {
+		background-color: var(--light-grey-2);
+		border-radius: 10px;
+		height: 5px;
+		flex-shrink: 0;
+	}
+}
+</style>