jekyll-theme-zer0 0.16.0 → 0.17.2
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +115 -10
- data/README.md +7 -7
- data/_data/authors.yml +2 -2
- data/_data/features.yml +676 -0
- data/_data/navigation/README.md +54 -0
- data/_data/navigation/about.yml +7 -5
- data/_data/navigation/docs.yml +77 -31
- data/_data/navigation/home.yml +4 -3
- data/_data/navigation/main.yml +16 -7
- data/_data/navigation/quickstart.yml +4 -2
- data/_includes/components/cookie-consent.html +81 -9
- data/_includes/components/js-cdn.html +2 -2
- data/_includes/components/mermaid.html +260 -14
- data/_includes/core/head.html +1 -0
- data/_includes/landing/landing-install-cards.html +8 -8
- data/_includes/landing/landing-quick-links.html +4 -4
- data/_includes/navigation/breadcrumbs.html +29 -6
- data/_includes/navigation/nav-tree.html +181 -0
- data/_includes/navigation/navbar.html +262 -9
- data/_includes/navigation/sidebar-left.html +22 -23
- data/_layouts/default.html +1 -1
- data/_layouts/landing.html +21 -21
- data/_layouts/notebook.html +4 -4
- data/_layouts/root.html +2 -2
- data/_sass/core/_nav-tree.scss +145 -0
- data/_sass/core/code-copy.scss +45 -6
- data/_sass/custom.scss +541 -1
- data/assets/js/code-copy.js +79 -13
- data/assets/js/modules/navigation/config.js +149 -0
- data/assets/js/modules/navigation/focus.js +189 -0
- data/assets/js/modules/navigation/gestures.js +179 -0
- data/assets/js/modules/navigation/index.js +227 -0
- data/assets/js/modules/navigation/keyboard.js +237 -0
- data/assets/js/modules/navigation/scroll-spy.js +219 -0
- data/assets/js/modules/navigation/sidebar-state.js +267 -0
- data/assets/js/modules/navigation/smooth-scroll.js +153 -0
- data/assets/js/ui-enhancements.js +194 -0
- data/scripts/migrate-nav-modes.sh +146 -0
- metadata +20 -7
- data/assets/js/sidebar.js +0 -511
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
// ===================================================================
|
|
2
|
+
// NAV TREE - Sidebar Navigation Tree Styles
|
|
3
|
+
// ===================================================================
|
|
4
|
+
//
|
|
5
|
+
// File: _nav-tree.scss
|
|
6
|
+
// Path: _sass/core/_nav-tree.scss
|
|
7
|
+
// Purpose: Styles for the hierarchical navigation tree component
|
|
8
|
+
//
|
|
9
|
+
// Features:
|
|
10
|
+
// - Collapsible tree nodes with smooth transitions
|
|
11
|
+
// - Active state highlighting
|
|
12
|
+
// - Hover effects
|
|
13
|
+
// - Chevron rotation on expand/collapse
|
|
14
|
+
// - Nested indentation
|
|
15
|
+
//
|
|
16
|
+
// ===================================================================
|
|
17
|
+
|
|
18
|
+
// Navigation Tree Container
|
|
19
|
+
.nav-tree {
|
|
20
|
+
font-size: 0.875rem;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.nav-tree-root {
|
|
24
|
+
margin: 0;
|
|
25
|
+
padding: 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// Navigation Tree Items
|
|
29
|
+
.nav-tree-item {
|
|
30
|
+
margin-bottom: 0.125rem;
|
|
31
|
+
|
|
32
|
+
// Nested items get additional indentation via ps-3 class
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// Navigation Tree Links
|
|
36
|
+
.nav-tree-link {
|
|
37
|
+
color: var(--bs-body-color);
|
|
38
|
+
transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
|
|
39
|
+
|
|
40
|
+
&:hover {
|
|
41
|
+
color: var(--bs-primary);
|
|
42
|
+
background-color: var(--bs-tertiary-bg);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&.active {
|
|
46
|
+
color: var(--bs-primary);
|
|
47
|
+
background-color: var(--bs-primary-bg-subtle);
|
|
48
|
+
font-weight: 500;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// Navigation Tree Text (non-link items)
|
|
53
|
+
.nav-tree-text {
|
|
54
|
+
color: var(--bs-secondary-color);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// Navigation Tree Toggle Buttons
|
|
58
|
+
.nav-tree-toggle {
|
|
59
|
+
color: var(--bs-body-color);
|
|
60
|
+
text-decoration: none;
|
|
61
|
+
border: none;
|
|
62
|
+
background: transparent;
|
|
63
|
+
transition: color 0.15s ease-in-out;
|
|
64
|
+
|
|
65
|
+
&:hover {
|
|
66
|
+
color: var(--bs-primary);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&:focus {
|
|
70
|
+
outline: none;
|
|
71
|
+
box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// Chevron rotation
|
|
75
|
+
.bi-chevron-down,
|
|
76
|
+
.nav-tree-chevron {
|
|
77
|
+
transition: transform 0.2s ease-in-out;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&.collapsed {
|
|
81
|
+
.bi-chevron-down,
|
|
82
|
+
.nav-tree-chevron {
|
|
83
|
+
transform: rotate(-90deg);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// Children container
|
|
89
|
+
.nav-tree-children {
|
|
90
|
+
margin-top: 0.25rem;
|
|
91
|
+
border-left: 1px solid var(--bs-border-color);
|
|
92
|
+
margin-left: 0.5rem;
|
|
93
|
+
padding-left: 0.75rem;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// Collapse animation
|
|
97
|
+
.nav-tree .collapse {
|
|
98
|
+
transition: height 0.2s ease-in-out;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// Depth-based styling
|
|
102
|
+
.nav-tree-item[data-depth="0"] > .nav-tree-link,
|
|
103
|
+
.nav-tree-item[data-depth="0"] > div > .nav-tree-link,
|
|
104
|
+
.nav-tree-item[data-depth="0"] > .nav-tree-toggle {
|
|
105
|
+
font-weight: 500;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.nav-tree-item[data-depth="1"] > .nav-tree-link,
|
|
109
|
+
.nav-tree-item[data-depth="1"] > div > .nav-tree-link {
|
|
110
|
+
font-weight: normal;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.nav-tree-item[data-depth="2"] > .nav-tree-link,
|
|
114
|
+
.nav-tree-item[data-depth="2"] > div > .nav-tree-link {
|
|
115
|
+
font-size: 0.8125rem;
|
|
116
|
+
color: var(--bs-secondary-color);
|
|
117
|
+
|
|
118
|
+
&.active {
|
|
119
|
+
color: var(--bs-primary);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
// Keyboard navigation focus state
|
|
124
|
+
.keyboard-nav .nav-tree-link:focus,
|
|
125
|
+
.keyboard-nav .nav-tree-toggle:focus {
|
|
126
|
+
outline: 2px solid var(--bs-primary);
|
|
127
|
+
outline-offset: 2px;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// Dark mode adjustments
|
|
131
|
+
[data-bs-theme="dark"] {
|
|
132
|
+
.nav-tree-link {
|
|
133
|
+
&:hover {
|
|
134
|
+
background-color: rgba(255, 255, 255, 0.05);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
&.active {
|
|
138
|
+
background-color: rgba(var(--bs-primary-rgb), 0.15);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.nav-tree-children {
|
|
143
|
+
border-left-color: var(--bs-border-color);
|
|
144
|
+
}
|
|
145
|
+
}
|
data/_sass/core/code-copy.scss
CHANGED
|
@@ -10,10 +10,27 @@
|
|
|
10
10
|
background-color: black;
|
|
11
11
|
border: none;
|
|
12
12
|
cursor: pointer;
|
|
13
|
+
transition: all 0.3s ease;
|
|
14
|
+
|
|
13
15
|
&:focus {
|
|
14
16
|
outline: none; // remove default focus outline
|
|
15
17
|
box-shadow: 0 0 0 3px rgba(21, 156, 228, 0.4); // add custom focus style
|
|
16
|
-
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:hover {
|
|
21
|
+
background-color: rgba(0, 0, 0, 0.8);
|
|
22
|
+
transform: translateY(-1px);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&.copied {
|
|
26
|
+
background-color: #28a745;
|
|
27
|
+
animation: pulse 0.3s ease;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@keyframes pulse {
|
|
32
|
+
0%, 100% { transform: scale(1); }
|
|
33
|
+
50% { transform: scale(1.05); }
|
|
17
34
|
}
|
|
18
35
|
|
|
19
36
|
pre.highlight {
|
|
@@ -48,21 +65,43 @@
|
|
|
48
65
|
position: absolute;
|
|
49
66
|
right: 1.2rem;
|
|
50
67
|
top: 1.2rem;
|
|
51
|
-
|
|
52
|
-
|
|
68
|
+
opacity: 0.7;
|
|
69
|
+
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
70
|
+
background: rgba(0, 0, 0, 0.5);
|
|
71
|
+
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
72
|
+
border-radius: 0.375rem;
|
|
73
|
+
padding: 0.375rem 0.75rem;
|
|
74
|
+
font-size: 0.75rem;
|
|
75
|
+
font-weight: 500;
|
|
76
|
+
backdrop-filter: blur(4px);
|
|
77
|
+
|
|
53
78
|
&:active,
|
|
54
79
|
&:focus,
|
|
55
80
|
&:hover {
|
|
56
|
-
background: rgba(0, 0, 0, 0.
|
|
81
|
+
background: rgba(0, 0, 0, 0.8);
|
|
57
82
|
opacity: 1;
|
|
83
|
+
transform: scale(1.05);
|
|
84
|
+
border-color: rgba(255, 255, 255, 0.4);
|
|
85
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&:active {
|
|
89
|
+
transform: scale(0.95);
|
|
58
90
|
}
|
|
59
91
|
}
|
|
60
92
|
|
|
61
93
|
&:active .copy,
|
|
62
94
|
&:focus .copy,
|
|
63
95
|
&:hover .copy {
|
|
64
|
-
background: rgba(0, 0, 0, 0.
|
|
65
|
-
|
|
96
|
+
background: rgba(0, 0, 0, 0.8);
|
|
97
|
+
opacity: 1;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// Show copy button on hover
|
|
101
|
+
position: relative;
|
|
102
|
+
|
|
103
|
+
&:hover .copy {
|
|
104
|
+
opacity: 1;
|
|
66
105
|
}
|
|
67
106
|
}
|
|
68
107
|
|