@benpley/wappler-responsive-sidebar 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/includes/responsive-sidebar.css +58 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,10 +5,16 @@
|
|
|
5
5
|
|
|
6
6
|
/* Header Navbar */
|
|
7
7
|
.bd-navbar {
|
|
8
|
-
box-shadow:
|
|
8
|
+
-webkit-box-shadow:
|
|
9
|
+
0 0.5rem 1rem rgba(0, 0, 0, 0.15),
|
|
10
|
+
inset 0 -1px rgba(255, 255, 255, 0.15);
|
|
11
|
+
box-shadow:
|
|
12
|
+
0 0.5rem 1rem rgba(0, 0, 0, 0.15),
|
|
13
|
+
inset 0 -1px rgba(255, 255, 255, 0.15);
|
|
9
14
|
}
|
|
10
15
|
|
|
11
16
|
.bd-navbar.no-shadow {
|
|
17
|
+
-webkit-box-shadow: none;
|
|
12
18
|
box-shadow: none;
|
|
13
19
|
}
|
|
14
20
|
|
|
@@ -18,13 +24,20 @@
|
|
|
18
24
|
display: grid;
|
|
19
25
|
grid-template-areas: "sidebar main";
|
|
20
26
|
grid-template-columns: 1fr 5fr;
|
|
27
|
+
-webkit-box-flex: 1;
|
|
28
|
+
-ms-flex: 1;
|
|
21
29
|
flex: 1;
|
|
22
30
|
}
|
|
23
31
|
}
|
|
24
32
|
|
|
25
33
|
.bd-main {
|
|
26
34
|
grid-area: main;
|
|
35
|
+
display: -webkit-box;
|
|
36
|
+
display: -ms-flexbox;
|
|
27
37
|
display: flex;
|
|
38
|
+
-webkit-box-orient: vertical;
|
|
39
|
+
-webkit-box-direction: normal;
|
|
40
|
+
-ms-flex-direction: column;
|
|
28
41
|
flex-direction: column;
|
|
29
42
|
min-height: 0;
|
|
30
43
|
}
|
|
@@ -38,9 +51,9 @@
|
|
|
38
51
|
@media (min-width: 992px) {
|
|
39
52
|
.bd-sidebar {
|
|
40
53
|
position: sticky;
|
|
41
|
-
top:
|
|
54
|
+
top: 4.5rem;
|
|
42
55
|
display: block !important;
|
|
43
|
-
height: calc(100vh -
|
|
56
|
+
height: calc(100vh - 4.5rem);
|
|
44
57
|
overflow-y: auto;
|
|
45
58
|
min-width: 13rem;
|
|
46
59
|
max-width: 20rem;
|
|
@@ -48,18 +61,30 @@
|
|
|
48
61
|
|
|
49
62
|
.bd-sidebar .offcanvas-lg {
|
|
50
63
|
height: 100%;
|
|
64
|
+
display: -webkit-box !important;
|
|
65
|
+
display: -ms-flexbox !important;
|
|
51
66
|
display: flex !important;
|
|
67
|
+
-webkit-box-orient: vertical;
|
|
68
|
+
-webkit-box-direction: normal;
|
|
69
|
+
-ms-flex-direction: column;
|
|
52
70
|
flex-direction: column;
|
|
53
71
|
background-color: var(--bs-secondary-bg);
|
|
54
72
|
}
|
|
55
73
|
|
|
56
74
|
.bd-sidebar .offcanvas-body {
|
|
75
|
+
-webkit-box-flex: 1;
|
|
76
|
+
-ms-flex: 1;
|
|
57
77
|
flex: 1;
|
|
78
|
+
display: -webkit-box;
|
|
79
|
+
display: -ms-flexbox;
|
|
58
80
|
display: flex;
|
|
81
|
+
-webkit-box-orient: vertical;
|
|
82
|
+
-webkit-box-direction: normal;
|
|
83
|
+
-ms-flex-direction: column;
|
|
59
84
|
flex-direction: column;
|
|
60
85
|
background-color: var(--bs-secondary-bg);
|
|
61
86
|
}
|
|
62
|
-
|
|
87
|
+
|
|
63
88
|
.bd-sidebar .bd-links {
|
|
64
89
|
padding-top: 1.5rem !important;
|
|
65
90
|
}
|
|
@@ -68,6 +93,7 @@
|
|
|
68
93
|
@media (max-width: 991.98px) {
|
|
69
94
|
.bd-sidebar .offcanvas-lg {
|
|
70
95
|
border-right-color: var(--bs-border-color);
|
|
96
|
+
-webkit-box-shadow: var(--bs-box-shadow-lg);
|
|
71
97
|
box-shadow: var(--bs-box-shadow-lg);
|
|
72
98
|
}
|
|
73
99
|
}
|
|
@@ -79,16 +105,42 @@ responsive-sidebar {
|
|
|
79
105
|
|
|
80
106
|
/* Sidebar menu styling helpers */
|
|
81
107
|
.bd-links a {
|
|
108
|
+
-webkit-transition: background-color 0.15s ease-in-out;
|
|
82
109
|
transition: background-color 0.15s ease-in-out;
|
|
83
110
|
}
|
|
84
111
|
|
|
85
112
|
.bd-links a:hover {
|
|
86
|
-
background-color: rgba(
|
|
113
|
+
background-color: rgba(var(--bs-primary-rgb), 0.08);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/* Active navigation link styles */
|
|
117
|
+
.bd-links a.active {
|
|
118
|
+
background-color: rgba(var(--bs-primary-rgb), 0.12);
|
|
119
|
+
color: var(--bs-primary);
|
|
120
|
+
font-weight: 500;
|
|
121
|
+
border-left: 3px solid var(--bs-primary);
|
|
122
|
+
padding-left: calc(1rem - 3px);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.bd-links a.active:hover {
|
|
126
|
+
background-color: rgba(var(--bs-primary-rgb), 0.18);
|
|
127
|
+
color: var(--bs-primary);
|
|
87
128
|
}
|
|
88
129
|
|
|
89
130
|
/* Dark mode support */
|
|
90
131
|
@media (prefers-color-scheme: dark) {
|
|
91
132
|
.bd-links a:hover {
|
|
92
|
-
background-color: rgba(
|
|
133
|
+
background-color: rgba(var(--bs-primary-rgb), 0.1);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.bd-links a.active {
|
|
137
|
+
background-color: rgba(var(--bs-primary-rgb), 0.25);
|
|
138
|
+
color: var(--bs-primary-text-emphasis);
|
|
139
|
+
border-left-color: var(--bs-primary-text-emphasis);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.bd-links a.active:hover {
|
|
143
|
+
background-color: rgba(var(--bs-primary-rgb), 0.35);
|
|
144
|
+
color: var(--bs-primary-text-emphasis);
|
|
93
145
|
}
|
|
94
146
|
}
|