ctucx.git: ctucx.things

simple inventory management web-app

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 
22 
23 
24 
25 
26 
27 
28 
29 
30 
31 
32 
33 
34 
35 
36 
37 
38 
39 
40 
41 
42 
43 
44 
45 
46 
47 
48 
49 
50 
51 
52 
53 
54 
55 
56 
57 
58 
59 
60 
61 
62 
63 
64 
65 
66 
67 
68 
69 
70 
71 
72 
73 
74 
75 
76 
77 
78 
79 
80 
81 
82 
83 
84 
85 
86 
87 
88 
89 
90 
91 
92 
93 
94 
95 
96 
97 
<style lang="scss">
@import "../css/_globals";

$sidebarWidth: 280px;
$sidebarOverflow: 1000px;
$sidebarPadding: 20px;

#sidebar {
	background: #555;
	box-shadow: -7px 0 7px rgba(0, 0, 0, 0.2) inset;
	color: #fff;
	height: 100%;
	margin-left: -$sidebarOverflow;
	opacity: 0;
	padding-left: $sidebarOverflow + $sidebarPadding;
	padding-right: $sidebarPadding;
	position: fixed;
	transition: opacity $transitionDurationSlow ease-in-out 0s;
	width: $sidebarWidth + $sidebarOverflow + $sidebarPadding*2;
	z-index: $sidebar;

	.lpHasSidebar & {
		opacity: 1;
	}

	h1 {
		@include fullBleedLeft();

		height: 60px;
		margin: 0 -20px 20px 0;
		padding: 20px 0 20px;
		position: relative;

		span {
			color: #aaa;
		}
	}

	section {
		margin-bottom: 40px;
		position: relative;
	}

	h2 {
		font-size: 16px;
		margin: 0 0 10px;
	}

	ul {
		background: #606060;
		margin: 0;
		overflow-x: hidden;
		padding: 0;
	}

	.lpHref {
		color: $blue2;
	}
}

#scrollable {
	display: flex;
	flex-direction: column;
	height: 100%;
	position: relative;
	top: 0;

	> h1 {
		flex: 0 0 auto;
	}
}

</style>

<template>
	<div id="sidebar">
		<div id="scrollable">
			<h1>ctucx.things <span>(beta)</span></h1>

			<libraryLists />
			<libraryItems />
		</div>
	</div>
</template>

<script>
import libraryItems from './libraryItems.vue';
import libraryLists from './libraryLists.vue';

export default {
	name: 'Sidebar',
	components: {
		libraryItems,
		libraryLists,
	},
};
</script>