@docusaurus/theme-classic 0.0.0-4577 → 0.0.0-4593
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.
- package/lib-next/theme/DocCard/styles.module.css +1 -1
- package/lib-next/theme/DocPage/styles.module.css +3 -3
- package/lib-next/theme/DocSidebar/styles.module.css +4 -4
- package/lib-next/theme/ThemedImage/styles.module.css +2 -2
- package/lib-next/theme/Toggle/index.js +20 -5
- package/package.json +13 -13
- package/src/theme/DocCard/styles.module.css +1 -1
- package/src/theme/DocPage/styles.module.css +3 -3
- package/src/theme/DocSidebar/styles.module.css +4 -4
- package/src/theme/ThemedImage/styles.module.css +2 -2
- package/src/theme/Toggle/index.tsx +20 -5
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
box-shadow: 0 4px 8px 0 rgb(0 0 0 / 20%);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
[data-theme='dark'] .cardContainer.cardContainerLink:hover {
|
|
28
28
|
--ifm-card-background-color: #2d2d2d; /* original, non-hovered color is #242526 */
|
|
29
29
|
}
|
|
30
30
|
|
|
@@ -69,12 +69,12 @@
|
|
|
69
69
|
transform: rotate(0);
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
[dir='rtl'] .expandSidebarButtonIcon {
|
|
73
73
|
transform: rotate(180deg);
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
[data-theme='dark'] .collapsedDocSidebar:hover,
|
|
77
|
+
[data-theme='dark'] .collapsedDocSidebar:focus {
|
|
78
78
|
background-color: var(--collapse-button-bg-color-dark);
|
|
79
79
|
}
|
|
80
80
|
|
|
@@ -72,16 +72,16 @@
|
|
|
72
72
|
margin-top: 4px;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
|
|
75
|
+
[dir='rtl'] .collapseSidebarButtonIcon {
|
|
76
76
|
transform: rotate(0);
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
|
|
79
|
+
[data-theme='dark'] .collapseSidebarButton {
|
|
80
80
|
background-color: var(--collapse-button-bg-color-dark);
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
[data-theme='dark'] .collapseSidebarButton:hover,
|
|
84
|
+
[data-theme='dark'] .collapseSidebarButton:focus {
|
|
85
85
|
background-color: var(--ifm-color-emphasis-200);
|
|
86
86
|
}
|
|
87
87
|
}
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
display: none;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
[data-theme='light'] .themedImage--light {
|
|
13
13
|
display: initial;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
[data-theme='dark'] .themedImage--dark {
|
|
17
17
|
display: initial;
|
|
18
18
|
}
|
|
@@ -48,11 +48,26 @@ const ToggleComponent = memo(
|
|
|
48
48
|
checked={checked}
|
|
49
49
|
type="checkbox"
|
|
50
50
|
className={styles.toggleScreenReader}
|
|
51
|
-
aria-label={translate(
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
51
|
+
aria-label={translate(
|
|
52
|
+
{
|
|
53
|
+
message: 'Switch between dark and light mode (currently {mode})',
|
|
54
|
+
id: 'theme.colorToggle.ariaLabel',
|
|
55
|
+
description: 'The ARIA label for the navbar color mode toggle',
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
mode: checked
|
|
59
|
+
? translate({
|
|
60
|
+
message: 'dark mode',
|
|
61
|
+
id: 'theme.colorToggle.ariaLabel.mode.dark',
|
|
62
|
+
description: 'The name for the dark color mode',
|
|
63
|
+
})
|
|
64
|
+
: translate({
|
|
65
|
+
message: 'light mode',
|
|
66
|
+
id: 'theme.colorToggle.ariaLabel.mode.light',
|
|
67
|
+
description: 'The name for the light color mode',
|
|
68
|
+
}),
|
|
69
|
+
},
|
|
70
|
+
)}
|
|
56
71
|
onChange={onChange}
|
|
57
72
|
onClick={() => setChecked(!checked)}
|
|
58
73
|
onFocus={() => setFocused(true)}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/theme-classic",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-4593",
|
|
4
4
|
"description": "Classic theme for Docusaurus",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/theme-classic.d.ts",
|
|
@@ -21,15 +21,15 @@
|
|
|
21
21
|
"format:lib-next": "prettier --config ../../.prettierrc --write \"lib-next/**/*.{js,ts,jsx,tsc}\""
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@docusaurus/core": "0.0.0-
|
|
25
|
-
"@docusaurus/plugin-content-blog": "0.0.0-
|
|
26
|
-
"@docusaurus/plugin-content-docs": "0.0.0-
|
|
27
|
-
"@docusaurus/plugin-content-pages": "0.0.0-
|
|
28
|
-
"@docusaurus/theme-common": "0.0.0-
|
|
29
|
-
"@docusaurus/theme-translations": "0.0.0-
|
|
30
|
-
"@docusaurus/utils": "0.0.0-
|
|
31
|
-
"@docusaurus/utils-common": "0.0.0-
|
|
32
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
24
|
+
"@docusaurus/core": "0.0.0-4593",
|
|
25
|
+
"@docusaurus/plugin-content-blog": "0.0.0-4593",
|
|
26
|
+
"@docusaurus/plugin-content-docs": "0.0.0-4593",
|
|
27
|
+
"@docusaurus/plugin-content-pages": "0.0.0-4593",
|
|
28
|
+
"@docusaurus/theme-common": "0.0.0-4593",
|
|
29
|
+
"@docusaurus/theme-translations": "0.0.0-4593",
|
|
30
|
+
"@docusaurus/utils": "0.0.0-4593",
|
|
31
|
+
"@docusaurus/utils-common": "0.0.0-4593",
|
|
32
|
+
"@docusaurus/utils-validation": "0.0.0-4593",
|
|
33
33
|
"@mdx-js/react": "^1.6.22",
|
|
34
34
|
"clsx": "^1.1.1",
|
|
35
35
|
"copy-text-to-clipboard": "^3.0.1",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"rtlcss": "^3.3.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@docusaurus/module-type-aliases": "0.0.0-
|
|
46
|
-
"@docusaurus/types": "0.0.0-
|
|
45
|
+
"@docusaurus/module-type-aliases": "0.0.0-4593",
|
|
46
|
+
"@docusaurus/types": "0.0.0-4593",
|
|
47
47
|
"@types/mdx-js__react": "^1.5.5",
|
|
48
48
|
"@types/prismjs": "^1.26.0",
|
|
49
49
|
"@types/rtlcss": "^3.1.2",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"engines": {
|
|
60
60
|
"node": ">=14"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "fc32eabcb5fb2b1f75d1582d2ea5aa7a0679f241"
|
|
63
63
|
}
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
box-shadow: 0 4px 8px 0 rgb(0 0 0 / 20%);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
[data-theme='dark'] .cardContainer.cardContainerLink:hover {
|
|
28
28
|
--ifm-card-background-color: #2d2d2d; /* original, non-hovered color is #242526 */
|
|
29
29
|
}
|
|
30
30
|
|
|
@@ -69,12 +69,12 @@
|
|
|
69
69
|
transform: rotate(0);
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
[dir='rtl'] .expandSidebarButtonIcon {
|
|
73
73
|
transform: rotate(180deg);
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
[data-theme='dark'] .collapsedDocSidebar:hover,
|
|
77
|
+
[data-theme='dark'] .collapsedDocSidebar:focus {
|
|
78
78
|
background-color: var(--collapse-button-bg-color-dark);
|
|
79
79
|
}
|
|
80
80
|
|
|
@@ -72,16 +72,16 @@
|
|
|
72
72
|
margin-top: 4px;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
|
|
75
|
+
[dir='rtl'] .collapseSidebarButtonIcon {
|
|
76
76
|
transform: rotate(0);
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
|
|
79
|
+
[data-theme='dark'] .collapseSidebarButton {
|
|
80
80
|
background-color: var(--collapse-button-bg-color-dark);
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
[data-theme='dark'] .collapseSidebarButton:hover,
|
|
84
|
+
[data-theme='dark'] .collapseSidebarButton:focus {
|
|
85
85
|
background-color: var(--ifm-color-emphasis-200);
|
|
86
86
|
}
|
|
87
87
|
}
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
display: none;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
[data-theme='light'] .themedImage--light {
|
|
13
13
|
display: initial;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
[data-theme='dark'] .themedImage--dark {
|
|
17
17
|
display: initial;
|
|
18
18
|
}
|
|
@@ -62,11 +62,26 @@ const ToggleComponent = memo(
|
|
|
62
62
|
checked={checked}
|
|
63
63
|
type="checkbox"
|
|
64
64
|
className={styles.toggleScreenReader}
|
|
65
|
-
aria-label={translate(
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
65
|
+
aria-label={translate(
|
|
66
|
+
{
|
|
67
|
+
message: 'Switch between dark and light mode (currently {mode})',
|
|
68
|
+
id: 'theme.colorToggle.ariaLabel',
|
|
69
|
+
description: 'The ARIA label for the navbar color mode toggle',
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
mode: checked
|
|
73
|
+
? translate({
|
|
74
|
+
message: 'dark mode',
|
|
75
|
+
id: 'theme.colorToggle.ariaLabel.mode.dark',
|
|
76
|
+
description: 'The name for the dark color mode',
|
|
77
|
+
})
|
|
78
|
+
: translate({
|
|
79
|
+
message: 'light mode',
|
|
80
|
+
id: 'theme.colorToggle.ariaLabel.mode.light',
|
|
81
|
+
description: 'The name for the light color mode',
|
|
82
|
+
}),
|
|
83
|
+
},
|
|
84
|
+
)}
|
|
70
85
|
onChange={onChange}
|
|
71
86
|
onClick={() => setChecked(!checked)}
|
|
72
87
|
onFocus={() => setFocused(true)}
|