Skip to content

Commit 534c308

Browse files
committed
Improved navigation.
1 parent 1b4a21f commit 534c308

File tree

5 files changed

+22
-4
lines changed

5 files changed

+22
-4
lines changed

docs/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ <h1><a href="https://threejs.org">three.js</a></h1>
2121

2222
<div id="sections">
2323
<span class="selected">docs</span>
24-
<a href="../examples/#webgl_animation_keyframes">examples</a>
24+
<a href="../manual/">manual</a>
2525
</div>
2626

2727
<div id="expandButton"></div>

examples/index.html

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
<h1><a href="https://threejs.org">three.js</a></h1>
1717

1818
<div id="sections">
19-
<a href="../docs/index.html#manual/introduction/Creating-a-scene">docs</a>
2019
<span class="selected">examples</span>
2120
</div>
2221

files/main.css

+11-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
--font-size: 16px;
1212
--line-height: 26px;
1313

14-
--border-style: 1px solid #E8E8E8;
14+
--border-color: #E8E8E8;
15+
--border-style: 1px solid var(--border-color);
1516
--header-height: 48px;
1617
--panel-width: 300px;
1718
--panel-padding: 16px;
@@ -27,7 +28,8 @@
2728
--text-color: #bbb;
2829
--secondary-text-color: #666;
2930

30-
--border-style: 1px solid #444;
31+
--border-color: #444;
32+
--border-style: 1px solid var(--border-color);
3133
}
3234

3335
#previewsToggler {
@@ -103,6 +105,13 @@ h1 a {
103105
color: var(--color-blue);
104106
}
105107

108+
hr {
109+
border: 0;
110+
height: 1px;
111+
background-color: var(--border-color);
112+
margin: 16px 0;
113+
}
114+
106115
#header {
107116
display: flex;
108117
height: var(--header-height);

manual/index.html

+9
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
<h1><a href="https://threejs.org">three.js</a></h1>
2121

2222
<div id="sections">
23+
<a href="../docs/">docs</a>
2324
<span class="selected">manual</span>
2425
</div>
2526

@@ -231,6 +232,14 @@ <h1><a href="https://threejs.org">three.js</a></h1>
231232

232233
// Create categories
233234

235+
if ( category === '---' ) {
236+
237+
const separator = document.createElement( 'hr' );
238+
navigation.appendChild( separator );
239+
continue;
240+
241+
}
242+
234243
const pages = categories[ category ];
235244

236245
const categoryContainer = document.createElement( 'div' );

manual/list.json

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"How to use Post Processing": "en/how-to-use-post-processing",
2222
"Matrix Transformations": "en/matrix-transformations"
2323
},
24+
"---": {},
2425
"Basics": {
2526
"Fundamentals": "en/fundamentals",
2627
"Responsive Design": "en/responsive",

0 commit comments

Comments
 (0)