Newer
Older
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
<template>
<header
class="navbar navbar-dark sticky-top bg-dark flex-md-nowrap p-0 shadow"
>
<slot name="header" />
</header>
<div class="container-fluid">
<div class="row">
<nav
id="sidebarMenu"
class="
col-md-3 col-lg-2
d-md-block
bg-light
sidebar sidebar-left
collapse
"
>
<slot name="sidebar" />
</nav>
<main class="col-md-9 ms-sm-auto col-lg-10 px-md-4 mt-4">
<slot />
</main>
</div>
</div>
</template>
<script>
export default {};
</script>
<style>
.sidebar-left {
position: fixed;
top: 0;
/* rtl:raw:
right: 0;
*/
bottom: 0;
/* rtl:remove */
left: 0;
z-index: 100; /* Behind the navbar */
padding: 48px 0 0; /* Height of navbar */
box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.1);
font-size: 0.875rem;
}
@media (max-width: 767.98px) {
.sidebar-left {
top: 2rem;
}
}
.sidebar-sticky {
position: relative;
top: 0;
height: calc(100vh - 48px);
padding-top: 0.5rem;
overflow-x: hidden;
overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}
.sidebar .nav-item .feather {
margin-right: 4px;
color: #727272;
}
.sidebar .entry {
padding: 0.5rem 1rem;
}
.sidebar button {
border: none;
background-color: inherit;
}
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
.sidebar .nav-link {
font-weight: 500;
color: #333;
}
.sidebar .nav-link .feather {
margin-right: 4px;
color: #727272;
}
.sidebar .nav-link.active {
color: #007bff;
}
.sidebar .nav-link:hover .feather,
.sidebar .nav-link.active .feather {
color: inherit;
}
.sidebar-heading {
font-size: 0.75rem;
text-transform: uppercase;
}
/*
* Navbar
*/
.navbar-brand {
padding-top: 0.75rem;
padding-bottom: 0.75rem;
font-size: 1rem;
background-color: rgba(0, 0, 0, 0.25);
box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.25);
}
.navbar .navbar-toggler {
top: 0.25rem;
right: 1rem;
}
</style>