@docusaurus/theme-classic 0.0.0-4633 → 0.0.0-4636
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/Heading/index.js +0 -1
- package/lib-next/theme/Heading/styles.module.css +16 -0
- package/package.json +13 -13
- package/src/theme/Heading/index.tsx +0 -1
- package/src/theme/Heading/styles.module.css +16 -0
- package/lib-next/theme/Heading/styles.css +0 -22
- package/src/theme/Heading/styles.css +0 -22
|
@@ -8,7 +8,6 @@ import React from 'react';
|
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import {translate} from '@docusaurus/Translate';
|
|
10
10
|
import {useThemeConfig} from '@docusaurus/theme-common';
|
|
11
|
-
import './styles.css';
|
|
12
11
|
import styles from './styles.module.css';
|
|
13
12
|
|
|
14
13
|
function AnchorHeading({as: As, id, ...props}) {
|
|
@@ -17,3 +17,19 @@ See https://twitter.com/JoshWComeau/status/1332015868725891076
|
|
|
17
17
|
.anchorWithHideOnScrollNavbar {
|
|
18
18
|
scroll-margin-top: 0.5rem;
|
|
19
19
|
}
|
|
20
|
+
|
|
21
|
+
:global(.hash-link) {
|
|
22
|
+
opacity: 0;
|
|
23
|
+
padding-left: 0.5rem;
|
|
24
|
+
transition: opacity var(--ifm-transition-fast);
|
|
25
|
+
user-select: none;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:global(.hash-link::before) {
|
|
29
|
+
content: '#';
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:global(.hash-link:focus),
|
|
33
|
+
:global(*:hover > .hash-link) {
|
|
34
|
+
opacity: 1;
|
|
35
|
+
}
|
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-4636",
|
|
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-4636",
|
|
25
|
+
"@docusaurus/plugin-content-blog": "0.0.0-4636",
|
|
26
|
+
"@docusaurus/plugin-content-docs": "0.0.0-4636",
|
|
27
|
+
"@docusaurus/plugin-content-pages": "0.0.0-4636",
|
|
28
|
+
"@docusaurus/theme-common": "0.0.0-4636",
|
|
29
|
+
"@docusaurus/theme-translations": "0.0.0-4636",
|
|
30
|
+
"@docusaurus/utils": "0.0.0-4636",
|
|
31
|
+
"@docusaurus/utils-common": "0.0.0-4636",
|
|
32
|
+
"@docusaurus/utils-validation": "0.0.0-4636",
|
|
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-4636",
|
|
46
|
+
"@docusaurus/types": "0.0.0-4636",
|
|
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": "7f3323c9a4070ba60e238ca4b34855cbb86eeed1"
|
|
63
63
|
}
|
|
@@ -11,7 +11,6 @@ import type {Props} from '@theme/Heading';
|
|
|
11
11
|
import {translate} from '@docusaurus/Translate';
|
|
12
12
|
import {useThemeConfig} from '@docusaurus/theme-common';
|
|
13
13
|
|
|
14
|
-
import './styles.css';
|
|
15
14
|
import styles from './styles.module.css';
|
|
16
15
|
|
|
17
16
|
function AnchorHeading({as: As, id, ...props}: Props) {
|
|
@@ -17,3 +17,19 @@ See https://twitter.com/JoshWComeau/status/1332015868725891076
|
|
|
17
17
|
.anchorWithHideOnScrollNavbar {
|
|
18
18
|
scroll-margin-top: 0.5rem;
|
|
19
19
|
}
|
|
20
|
+
|
|
21
|
+
:global(.hash-link) {
|
|
22
|
+
opacity: 0;
|
|
23
|
+
padding-left: 0.5rem;
|
|
24
|
+
transition: opacity var(--ifm-transition-fast);
|
|
25
|
+
user-select: none;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:global(.hash-link::before) {
|
|
29
|
+
content: '#';
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:global(.hash-link:focus),
|
|
33
|
+
:global(*:hover > .hash-link) {
|
|
34
|
+
opacity: 1;
|
|
35
|
+
}
|
|
@@ -1,22 +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
|
-
.hash-link {
|
|
9
|
-
opacity: 0;
|
|
10
|
-
padding-left: 0.5rem;
|
|
11
|
-
transition: opacity var(--ifm-transition-fast);
|
|
12
|
-
user-select: none;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.hash-link::before {
|
|
16
|
-
content: '#';
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.hash-link:focus,
|
|
20
|
-
*:hover > .hash-link {
|
|
21
|
-
opacity: 1;
|
|
22
|
-
}
|
|
@@ -1,22 +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
|
-
.hash-link {
|
|
9
|
-
opacity: 0;
|
|
10
|
-
padding-left: 0.5rem;
|
|
11
|
-
transition: opacity var(--ifm-transition-fast);
|
|
12
|
-
user-select: none;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.hash-link::before {
|
|
16
|
-
content: '#';
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.hash-link:focus,
|
|
20
|
-
*:hover > .hash-link {
|
|
21
|
-
opacity: 1;
|
|
22
|
-
}
|