@docusaurus/theme-classic 0.0.0-5388 → 0.0.0-5392

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.
@@ -7,10 +7,11 @@
7
7
 
8
8
  @media (min-width: 997px) {
9
9
  .expandButton {
10
- position: sticky;
10
+ position: absolute;
11
11
  top: 0;
12
+ right: 0;
13
+ width: 100%;
12
14
  height: 100%;
13
- max-height: 100vh;
14
15
  display: flex;
15
16
  align-items: center;
16
17
  justify-content: center;
@@ -52,15 +52,20 @@ export default function DocRootLayoutSidebar({
52
52
  }
53
53
  }}>
54
54
  <ResetOnSidebarChange>
55
- <DocSidebar
56
- sidebar={sidebar}
57
- path={pathname}
58
- onCollapse={toggleSidebar}
59
- isHidden={hiddenSidebar}
60
- />
55
+ <div
56
+ className={clsx(
57
+ styles.sidebarViewport,
58
+ hiddenSidebar && styles.sidebarViewportHidden,
59
+ )}>
60
+ <DocSidebar
61
+ sidebar={sidebar}
62
+ path={pathname}
63
+ onCollapse={toggleSidebar}
64
+ isHidden={hiddenSidebar}
65
+ />
66
+ {hiddenSidebar && <ExpandButton toggleSidebar={toggleSidebar} />}
67
+ </div>
61
68
  </ResetOnSidebarChange>
62
-
63
- {hiddenSidebar && <ExpandButton toggleSidebar={toggleSidebar} />}
64
69
  </aside>
65
70
  );
66
71
  }
@@ -29,4 +29,11 @@
29
29
  width: var(--doc-sidebar-hidden-width);
30
30
  cursor: pointer;
31
31
  }
32
+
33
+ .sidebarViewport {
34
+ top: 0;
35
+ position: sticky;
36
+ height: 100%;
37
+ max-height: 100vh;
38
+ }
32
39
  }
@@ -9,13 +9,9 @@
9
9
  .sidebar {
10
10
  display: flex;
11
11
  flex-direction: column;
12
- max-height: 100vh;
13
12
  height: 100%;
14
- position: sticky;
15
- top: 0;
16
13
  padding-top: var(--ifm-navbar-height);
17
14
  width: var(--doc-sidebar-width);
18
- transition: opacity 50ms ease;
19
15
  }
20
16
 
21
17
  .sidebarWithHideableNavbar {
@@ -24,8 +20,6 @@
24
20
 
25
21
  .sidebarHidden {
26
22
  opacity: 0;
27
- height: 0;
28
- overflow: hidden;
29
23
  visibility: hidden;
30
24
  }
31
25
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/theme-classic",
3
- "version": "0.0.0-5388",
3
+ "version": "0.0.0-5392",
4
4
  "description": "Classic theme for Docusaurus",
5
5
  "main": "lib/index.js",
6
6
  "types": "src/theme-classic.d.ts",
@@ -20,18 +20,18 @@
20
20
  "copy:watch": "node ../../admin/scripts/copyUntypedFiles.js --watch"
21
21
  },
22
22
  "dependencies": {
23
- "@docusaurus/core": "0.0.0-5388",
24
- "@docusaurus/mdx-loader": "0.0.0-5388",
25
- "@docusaurus/module-type-aliases": "0.0.0-5388",
26
- "@docusaurus/plugin-content-blog": "0.0.0-5388",
27
- "@docusaurus/plugin-content-docs": "0.0.0-5388",
28
- "@docusaurus/plugin-content-pages": "0.0.0-5388",
29
- "@docusaurus/theme-common": "0.0.0-5388",
30
- "@docusaurus/theme-translations": "0.0.0-5388",
31
- "@docusaurus/types": "0.0.0-5388",
32
- "@docusaurus/utils": "0.0.0-5388",
33
- "@docusaurus/utils-common": "0.0.0-5388",
34
- "@docusaurus/utils-validation": "0.0.0-5388",
23
+ "@docusaurus/core": "0.0.0-5392",
24
+ "@docusaurus/mdx-loader": "0.0.0-5392",
25
+ "@docusaurus/module-type-aliases": "0.0.0-5392",
26
+ "@docusaurus/plugin-content-blog": "0.0.0-5392",
27
+ "@docusaurus/plugin-content-docs": "0.0.0-5392",
28
+ "@docusaurus/plugin-content-pages": "0.0.0-5392",
29
+ "@docusaurus/theme-common": "0.0.0-5392",
30
+ "@docusaurus/theme-translations": "0.0.0-5392",
31
+ "@docusaurus/types": "0.0.0-5392",
32
+ "@docusaurus/utils": "0.0.0-5392",
33
+ "@docusaurus/utils-common": "0.0.0-5392",
34
+ "@docusaurus/utils-validation": "0.0.0-5392",
35
35
  "@mdx-js/react": "^1.6.22",
36
36
  "clsx": "^1.2.1",
37
37
  "copy-text-to-clipboard": "^3.0.1",
@@ -62,5 +62,5 @@
62
62
  "engines": {
63
63
  "node": ">=16.14"
64
64
  },
65
- "gitHead": "5724aa75bd5befedc156a3936cd1c7235f690198"
65
+ "gitHead": "e35cea1c914d7b9a383f43914edb31eeb5cb0518"
66
66
  }
@@ -7,10 +7,11 @@
7
7
 
8
8
  @media (min-width: 997px) {
9
9
  .expandButton {
10
- position: sticky;
10
+ position: absolute;
11
11
  top: 0;
12
+ right: 0;
13
+ width: 100%;
12
14
  height: 100%;
13
- max-height: 100vh;
14
15
  display: flex;
15
16
  align-items: center;
16
17
  justify-content: center;
@@ -60,15 +60,20 @@ export default function DocRootLayoutSidebar({
60
60
  }
61
61
  }}>
62
62
  <ResetOnSidebarChange>
63
- <DocSidebar
64
- sidebar={sidebar}
65
- path={pathname}
66
- onCollapse={toggleSidebar}
67
- isHidden={hiddenSidebar}
68
- />
63
+ <div
64
+ className={clsx(
65
+ styles.sidebarViewport,
66
+ hiddenSidebar && styles.sidebarViewportHidden,
67
+ )}>
68
+ <DocSidebar
69
+ sidebar={sidebar}
70
+ path={pathname}
71
+ onCollapse={toggleSidebar}
72
+ isHidden={hiddenSidebar}
73
+ />
74
+ {hiddenSidebar && <ExpandButton toggleSidebar={toggleSidebar} />}
75
+ </div>
69
76
  </ResetOnSidebarChange>
70
-
71
- {hiddenSidebar && <ExpandButton toggleSidebar={toggleSidebar} />}
72
77
  </aside>
73
78
  );
74
79
  }
@@ -29,4 +29,11 @@
29
29
  width: var(--doc-sidebar-hidden-width);
30
30
  cursor: pointer;
31
31
  }
32
+
33
+ .sidebarViewport {
34
+ top: 0;
35
+ position: sticky;
36
+ height: 100%;
37
+ max-height: 100vh;
38
+ }
32
39
  }
@@ -9,13 +9,9 @@
9
9
  .sidebar {
10
10
  display: flex;
11
11
  flex-direction: column;
12
- max-height: 100vh;
13
12
  height: 100%;
14
- position: sticky;
15
- top: 0;
16
13
  padding-top: var(--ifm-navbar-height);
17
14
  width: var(--doc-sidebar-width);
18
- transition: opacity 50ms ease;
19
15
  }
20
16
 
21
17
  .sidebarWithHideableNavbar {
@@ -24,8 +20,6 @@
24
20
 
25
21
  .sidebarHidden {
26
22
  opacity: 0;
27
- height: 0;
28
- overflow: hidden;
29
23
  visibility: hidden;
30
24
  }
31
25