mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-19 19:36:04 +00:00
docs: simplify navigation hierarchy
This commit is contained in:
@@ -148,6 +148,66 @@ a:not([class]):hover {
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
/* ── On-page navigation ── */
|
||||
|
||||
#table-of-contents-content {
|
||||
position: relative;
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
#table-of-contents-content::before {
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
bottom: 8px;
|
||||
left: 0;
|
||||
width: 1px;
|
||||
background: var(--hf-border-color-light);
|
||||
content: '';
|
||||
}
|
||||
|
||||
#table-of-contents-content .toc-item {
|
||||
border-left: 0 !important;
|
||||
}
|
||||
|
||||
#table-of-contents-content .toc-item > a {
|
||||
position: relative;
|
||||
border-left-color: transparent !important;
|
||||
}
|
||||
|
||||
#table-of-contents-content .toc-item[data-depth='0'] > a::before {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: -4px;
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
border: 2px solid var(--hf-background);
|
||||
border-radius: 999px;
|
||||
background: var(--hf-border-color-light);
|
||||
content: '';
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
|
||||
#table-of-contents-content .toc-item[data-depth='0'] > a[class*='border-primary']::before {
|
||||
background: var(--hf-accent-green);
|
||||
}
|
||||
|
||||
#table-of-contents-content .toc-item[data-depth='1'] {
|
||||
margin-left: 1px;
|
||||
padding-left: 18px;
|
||||
}
|
||||
|
||||
#table-of-contents-content .toc-item[data-depth='1']::before {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: -1px;
|
||||
width: 14px;
|
||||
height: 50%;
|
||||
border-bottom: 1px solid var(--hf-border-color-light);
|
||||
border-left: 1px solid var(--hf-border-color-light);
|
||||
border-bottom-left-radius: 8px;
|
||||
content: '';
|
||||
}
|
||||
|
||||
/* Catalog texture examples */
|
||||
|
||||
.hf-texture-preview-panel {
|
||||
|
||||
+11
-41
@@ -50,12 +50,8 @@
|
||||
{
|
||||
"tab": "Guides",
|
||||
"icon": "book-open",
|
||||
"groups": [
|
||||
{
|
||||
"group": "Guides",
|
||||
"root": "guides/index",
|
||||
"directory": "card",
|
||||
"pages": [
|
||||
"pages": [
|
||||
"guides/index",
|
||||
{
|
||||
"group": "Start here",
|
||||
"root": "introduction",
|
||||
@@ -99,7 +95,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"group": "Learn",
|
||||
"group": "Concepts",
|
||||
"root": "concepts/index",
|
||||
"expanded": false,
|
||||
"pages": [
|
||||
@@ -139,13 +135,7 @@
|
||||
"guides/performance"
|
||||
]
|
||||
},
|
||||
{
|
||||
"group": "Examples",
|
||||
"expanded": false,
|
||||
"pages": [
|
||||
"examples"
|
||||
]
|
||||
},
|
||||
"examples",
|
||||
{
|
||||
"group": "Help",
|
||||
"root": "guides/help",
|
||||
@@ -158,26 +148,20 @@
|
||||
},
|
||||
{
|
||||
"group": "What's new",
|
||||
"root": "product-updates",
|
||||
"expanded": false,
|
||||
"pages": [
|
||||
"product-updates",
|
||||
"weekly-updates",
|
||||
"changelog"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"tab": "Studio",
|
||||
"icon": "palette",
|
||||
"groups": [
|
||||
{
|
||||
"group": "Studio",
|
||||
"root": "studio/index",
|
||||
"directory": "card",
|
||||
"pages": [
|
||||
"pages": [
|
||||
"studio/index",
|
||||
"studio/tour",
|
||||
{
|
||||
"group": "Review",
|
||||
@@ -218,19 +202,13 @@
|
||||
"studio/troubleshooting"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"tab": "Catalog",
|
||||
"icon": "grid-2",
|
||||
"groups": [
|
||||
{
|
||||
"group": "Catalog",
|
||||
"root": "catalog/index",
|
||||
"directory": "card",
|
||||
"pages": [
|
||||
"pages": [
|
||||
"catalog/index",
|
||||
{
|
||||
"group": "Code Animations",
|
||||
"pages": [
|
||||
@@ -431,19 +409,13 @@
|
||||
],
|
||||
"expanded": false
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"tab": "Developers",
|
||||
"icon": "code",
|
||||
"groups": [
|
||||
{
|
||||
"group": "Developers",
|
||||
"root": "developers/index",
|
||||
"directory": "card",
|
||||
"pages": [
|
||||
"pages": [
|
||||
"developers/index",
|
||||
{
|
||||
"group": "Command line",
|
||||
"expanded": true,
|
||||
@@ -524,8 +496,6 @@
|
||||
"community/adopters"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user