@brillout/docpress 0.8.8 → 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,
@@ -58,9 +58,8 @@ function NavigationContent(props) {
58
58
  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
- width: 6,
62
61
  background: navItemLevel1.color,
63
- height: "calc(100% - ".concat(paddingBottom, "px - 13px)"),
62
+ height: "calc(100% - ".concat(paddingBottom, "px - 53px)"),
64
63
  } }));
65
64
  }
66
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
- margin-top: 14px;
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;
@@ -34,8 +38,8 @@
34
38
  padding-right: 4px;
35
39
  text-decoration: underline;
36
40
  text-underline-offset: .2em;
37
- text-decoration-thickness: .18em;
38
41
  text-decoration-color: var(--category-color);
42
+ text-decoration-thickness: 3px;
39
43
  }
40
44
  .nav-item-level-2 {
41
45
  font-size: 14.4px;
@@ -104,5 +108,6 @@
104
108
  .category-border {
105
109
  position: absolute;
106
110
  top: 0;
107
- transform: translate(0, 13px);
111
+ transform: translate(0, 53px);
112
+ width: 3px;
108
113
  }
@@ -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,
@@ -100,9 +100,8 @@ function CategoryBorder({ navItemLevel1, paddingBottom }: { navItemLevel1?: NavI
100
100
  <div
101
101
  className="category-border"
102
102
  style={{
103
- width: 6,
104
103
  background: navItemLevel1.color!,
105
- height: `calc(100% - ${paddingBottom}px - 13px)`,
104
+ height: `calc(100% - ${paddingBottom}px - 53px)`,
106
105
  }}
107
106
  />
108
107
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brillout/docpress",
3
- "version": "0.8.8",
3
+ "version": "0.8.9",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@brillout/picocolors": "^1.0.10",