@brillout/docpress 0.8.8-commit-4e4a6e4 → 0.8.9
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.
|
@@ -37,7 +37,7 @@ function NavigationContent(props) {
|
|
|
37
37
|
display: 'flex',
|
|
38
38
|
justifyContent: 'center',
|
|
39
39
|
} },
|
|
40
|
-
React.createElement("div", { className: "column-layout-".concat(i) + (!isFullWidth ? '' : ' nav-category'), style: {
|
|
40
|
+
React.createElement("div", { className: "column-layout-".concat(i) + (!isFullWidth ? '' : ' nav-category nav-category-full-width'), style: {
|
|
41
41
|
flexGrow: 1,
|
|
42
42
|
columnGap: 20,
|
|
43
43
|
paddingBottom: isFullWidth ? paddingBottom_1 : undefined,
|
|
@@ -59,7 +59,7 @@ function CategoryBorder(_a) {
|
|
|
59
59
|
var navItemLevel1 = _a.navItemLevel1, paddingBottom = _a.paddingBottom;
|
|
60
60
|
return !navItemLevel1 ? null : (React.createElement("div", { className: "category-border", style: {
|
|
61
61
|
background: navItemLevel1.color,
|
|
62
|
-
height: "calc(100% - ".concat(paddingBottom, "px -
|
|
62
|
+
height: "calc(100% - ".concat(paddingBottom, "px - 53px)"),
|
|
63
63
|
} }));
|
|
64
64
|
}
|
|
65
65
|
function NavItemComponent(_a) {
|
|
@@ -10,11 +10,8 @@
|
|
|
10
10
|
.nav-item code {
|
|
11
11
|
font-size: 0.9em;
|
|
12
12
|
}
|
|
13
|
-
.nav-item-level-1 + .nav-item-level-4 {
|
|
14
|
-
margin-top: -2px;
|
|
15
|
-
}
|
|
16
13
|
.nav-item-level-4 {
|
|
17
|
-
|
|
14
|
+
padding-top: 14px;
|
|
18
15
|
margin-bottom: -1px;
|
|
19
16
|
color: #999;
|
|
20
17
|
font-size: 12px;
|
|
@@ -23,6 +20,13 @@
|
|
|
23
20
|
padding-left: var(--padding-left-global);
|
|
24
21
|
padding-right: 4px;
|
|
25
22
|
}
|
|
23
|
+
.nav-category-full-width .nav-item-level-4 {
|
|
24
|
+
padding-top: 50px;
|
|
25
|
+
}
|
|
26
|
+
.nav-item-level-1 + .nav-item-level-4 {
|
|
27
|
+
padding-top: 0;
|
|
28
|
+
margin-top: -2px;
|
|
29
|
+
}
|
|
26
30
|
.nav-item-level-1 {
|
|
27
31
|
font-size: 19px;
|
|
28
32
|
text-transform: uppercase;
|
|
@@ -35,7 +39,7 @@
|
|
|
35
39
|
text-decoration: underline;
|
|
36
40
|
text-underline-offset: .2em;
|
|
37
41
|
text-decoration-color: var(--category-color);
|
|
38
|
-
text-decoration-thickness:
|
|
42
|
+
text-decoration-thickness: 3px;
|
|
39
43
|
}
|
|
40
44
|
.nav-item-level-2 {
|
|
41
45
|
font-size: 14.4px;
|
|
@@ -104,9 +108,6 @@
|
|
|
104
108
|
.category-border {
|
|
105
109
|
position: absolute;
|
|
106
110
|
top: 0;
|
|
107
|
-
transform: translate(0,
|
|
111
|
+
transform: translate(0, 53px);
|
|
108
112
|
width: 3px;
|
|
109
113
|
}
|
|
110
|
-
.nav-category:hover .category-border {
|
|
111
|
-
width: 4px;
|
|
112
|
-
}
|
|
@@ -51,7 +51,7 @@ function NavigationContent(props: {
|
|
|
51
51
|
}}
|
|
52
52
|
>
|
|
53
53
|
<div
|
|
54
|
-
className={`column-layout-${i}` + (!isFullWidth ? '' : ' nav-category')}
|
|
54
|
+
className={`column-layout-${i}` + (!isFullWidth ? '' : ' nav-category nav-category-full-width')}
|
|
55
55
|
style={{
|
|
56
56
|
flexGrow: 1,
|
|
57
57
|
columnGap: 20,
|
|
@@ -101,7 +101,7 @@ function CategoryBorder({ navItemLevel1, paddingBottom }: { navItemLevel1?: NavI
|
|
|
101
101
|
className="category-border"
|
|
102
102
|
style={{
|
|
103
103
|
background: navItemLevel1.color!,
|
|
104
|
-
height: `calc(100% - ${paddingBottom}px -
|
|
104
|
+
height: `calc(100% - ${paddingBottom}px - 53px)`,
|
|
105
105
|
}}
|
|
106
106
|
/>
|
|
107
107
|
)
|