@docusaurus/theme-classic 0.0.0-4927 → 0.0.0-4930

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.
Files changed (36) hide show
  1. package/lib/theme-classic.d.ts +37 -2
  2. package/lib-next/theme/DocPage/Layout/Main.js +1 -1
  3. package/lib-next/theme/DocPage/Layout/Main.module.css +28 -0
  4. package/lib-next/theme/DocPage/Layout/Sidebar/ExpandButton.js +34 -0
  5. package/lib-next/theme/DocPage/Layout/Sidebar/ExpandButton.module.css +37 -0
  6. package/lib-next/theme/DocPage/Layout/{Aside.js → Sidebar/index.js} +5 -31
  7. package/lib-next/theme/DocPage/Layout/Sidebar/index.module.css +32 -0
  8. package/lib-next/theme/DocPage/Layout/index.js +3 -3
  9. package/lib-next/theme/DocPage/Layout/index.module.css +15 -0
  10. package/lib-next/theme/DocPage/index.js +2 -32
  11. package/lib-next/theme/TOCCollapsible/CollapseButton.js +29 -0
  12. package/{src/theme/TOCCollapsible/styles.module.css → lib-next/theme/TOCCollapsible/CollapseButton.module.css} +1 -22
  13. package/lib-next/theme/TOCCollapsible/index.js +3 -13
  14. package/lib-next/theme/TOCCollapsible/index.module.css +31 -0
  15. package/lib-next/theme/TOCItems/Tree.js +41 -0
  16. package/lib-next/theme/TOCItems/index.js +3 -34
  17. package/package.json +13 -13
  18. package/src/theme/DocPage/Layout/Main.module.css +28 -0
  19. package/src/theme/DocPage/Layout/Main.tsx +1 -1
  20. package/src/theme/DocPage/Layout/Sidebar/ExpandButton.module.css +37 -0
  21. package/src/theme/DocPage/Layout/Sidebar/ExpandButton.tsx +40 -0
  22. package/src/theme/DocPage/Layout/Sidebar/index.module.css +32 -0
  23. package/src/theme/DocPage/Layout/{Aside.tsx → Sidebar/index.tsx} +5 -31
  24. package/src/theme/DocPage/Layout/index.module.css +15 -0
  25. package/src/theme/DocPage/Layout/index.tsx +3 -3
  26. package/src/theme/DocPage/index.tsx +2 -39
  27. package/src/theme/MDXComponents/Details.tsx +2 -3
  28. package/{lib-next/theme/TOCCollapsible/styles.module.css → src/theme/TOCCollapsible/CollapseButton.module.css} +1 -22
  29. package/src/theme/TOCCollapsible/CollapseButton.tsx +35 -0
  30. package/src/theme/TOCCollapsible/index.module.css +31 -0
  31. package/src/theme/TOCCollapsible/index.tsx +3 -14
  32. package/src/theme/TOCItems/Tree.tsx +46 -0
  33. package/src/theme/TOCItems/index.tsx +2 -41
  34. package/src/theme-classic.d.ts +37 -2
  35. package/lib-next/theme/DocPage/Layout/styles.module.css +0 -87
  36. package/src/theme/DocPage/Layout/styles.module.css +0 -87
@@ -1,87 +0,0 @@
1
- /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
-
8
- :root {
9
- --doc-sidebar-width: 300px;
10
- --doc-sidebar-hidden-width: 30px;
11
- }
12
-
13
- .docPage,
14
- .docMainContainer {
15
- width: 100%;
16
- }
17
-
18
- .docsWrapper,
19
- .docPage,
20
- .docMainContainer {
21
- display: flex;
22
- }
23
-
24
- .docSidebarContainer {
25
- display: none;
26
- }
27
-
28
- @media (min-width: 997px) {
29
- .docMainContainer {
30
- flex-grow: 1;
31
- max-width: calc(100% - var(--doc-sidebar-width));
32
- }
33
-
34
- .docMainContainerEnhanced {
35
- max-width: calc(100% - var(--doc-sidebar-hidden-width));
36
- }
37
-
38
- .docSidebarContainer {
39
- display: block;
40
- width: var(--doc-sidebar-width);
41
- margin-top: calc(-1 * var(--ifm-navbar-height));
42
- border-right: 1px solid var(--ifm-toc-border-color);
43
- will-change: width;
44
- transition: width var(--ifm-transition-fast) ease;
45
- clip-path: inset(0);
46
- }
47
-
48
- .docSidebarContainerHidden {
49
- width: var(--doc-sidebar-hidden-width);
50
- cursor: pointer;
51
- }
52
-
53
- .collapsedDocSidebar {
54
- position: sticky;
55
- top: 0;
56
- height: 100%;
57
- max-height: 100vh;
58
- display: flex;
59
- align-items: center;
60
- justify-content: center;
61
- transition: background-color var(--ifm-transition-fast) ease;
62
- }
63
-
64
- .collapsedDocSidebar:hover,
65
- .collapsedDocSidebar:focus {
66
- background-color: var(--ifm-color-emphasis-200);
67
- }
68
-
69
- .expandSidebarButtonIcon {
70
- transform: rotate(0);
71
- }
72
-
73
- [dir='rtl'] .expandSidebarButtonIcon {
74
- transform: rotate(180deg);
75
- }
76
-
77
- [data-theme='dark'] .collapsedDocSidebar:hover,
78
- [data-theme='dark'] .collapsedDocSidebar:focus {
79
- background-color: var(--collapse-button-bg-color-dark);
80
- }
81
-
82
- .docItemWrapperEnhanced {
83
- max-width: calc(
84
- var(--ifm-container-width) + var(--doc-sidebar-width)
85
- ) !important;
86
- }
87
- }
@@ -1,87 +0,0 @@
1
- /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
-
8
- :root {
9
- --doc-sidebar-width: 300px;
10
- --doc-sidebar-hidden-width: 30px;
11
- }
12
-
13
- .docPage,
14
- .docMainContainer {
15
- width: 100%;
16
- }
17
-
18
- .docsWrapper,
19
- .docPage,
20
- .docMainContainer {
21
- display: flex;
22
- }
23
-
24
- .docSidebarContainer {
25
- display: none;
26
- }
27
-
28
- @media (min-width: 997px) {
29
- .docMainContainer {
30
- flex-grow: 1;
31
- max-width: calc(100% - var(--doc-sidebar-width));
32
- }
33
-
34
- .docMainContainerEnhanced {
35
- max-width: calc(100% - var(--doc-sidebar-hidden-width));
36
- }
37
-
38
- .docSidebarContainer {
39
- display: block;
40
- width: var(--doc-sidebar-width);
41
- margin-top: calc(-1 * var(--ifm-navbar-height));
42
- border-right: 1px solid var(--ifm-toc-border-color);
43
- will-change: width;
44
- transition: width var(--ifm-transition-fast) ease;
45
- clip-path: inset(0);
46
- }
47
-
48
- .docSidebarContainerHidden {
49
- width: var(--doc-sidebar-hidden-width);
50
- cursor: pointer;
51
- }
52
-
53
- .collapsedDocSidebar {
54
- position: sticky;
55
- top: 0;
56
- height: 100%;
57
- max-height: 100vh;
58
- display: flex;
59
- align-items: center;
60
- justify-content: center;
61
- transition: background-color var(--ifm-transition-fast) ease;
62
- }
63
-
64
- .collapsedDocSidebar:hover,
65
- .collapsedDocSidebar:focus {
66
- background-color: var(--ifm-color-emphasis-200);
67
- }
68
-
69
- .expandSidebarButtonIcon {
70
- transform: rotate(0);
71
- }
72
-
73
- [dir='rtl'] .expandSidebarButtonIcon {
74
- transform: rotate(180deg);
75
- }
76
-
77
- [data-theme='dark'] .collapsedDocSidebar:hover,
78
- [data-theme='dark'] .collapsedDocSidebar:focus {
79
- background-color: var(--collapse-button-bg-color-dark);
80
- }
81
-
82
- .docItemWrapperEnhanced {
83
- max-width: calc(
84
- var(--ifm-container-width) + var(--doc-sidebar-width)
85
- ) !important;
86
- }
87
- }