@docusaurus/theme-classic 0.0.0-5057 → 0.0.0-5059

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.
@@ -6,13 +6,14 @@
6
6
  */
7
7
  import React from 'react';
8
8
  import clsx from 'clsx';
9
+ import styles from './styles.module.css';
9
10
  function transformUlClassName(className) {
10
11
  return clsx(
11
12
  className,
12
13
  // This class is set globally by GitHub/MDX. We keep the global class, and
13
- // add another Infima class to get list without styling
14
+ // add another class to get a task list without the default ul styling
14
15
  // See https://github.com/syntax-tree/mdast-util-to-hast/issues/28
15
- className?.includes('contains-task-list') && 'clean-list',
16
+ className?.includes('contains-task-list') && styles.containsTaskList,
16
17
  );
17
18
  }
18
19
  export default function MDXUl(props) {
@@ -0,0 +1,14 @@
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
+ .containsTaskList {
9
+ list-style: none;
10
+ }
11
+
12
+ :not(.containsTaskList > li) > .containsTaskList {
13
+ padding-left: 0;
14
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/theme-classic",
3
- "version": "0.0.0-5057",
3
+ "version": "0.0.0-5059",
4
4
  "description": "Classic theme for Docusaurus",
5
5
  "main": "lib/index.js",
6
6
  "types": "src/theme-classic.d.ts",
@@ -20,15 +20,15 @@
20
20
  "copy:watch": "node ../../admin/scripts/copyUntypedFiles.js --watch"
21
21
  },
22
22
  "dependencies": {
23
- "@docusaurus/core": "0.0.0-5057",
24
- "@docusaurus/plugin-content-blog": "0.0.0-5057",
25
- "@docusaurus/plugin-content-docs": "0.0.0-5057",
26
- "@docusaurus/plugin-content-pages": "0.0.0-5057",
27
- "@docusaurus/theme-common": "0.0.0-5057",
28
- "@docusaurus/theme-translations": "0.0.0-5057",
29
- "@docusaurus/utils": "0.0.0-5057",
30
- "@docusaurus/utils-common": "0.0.0-5057",
31
- "@docusaurus/utils-validation": "0.0.0-5057",
23
+ "@docusaurus/core": "0.0.0-5059",
24
+ "@docusaurus/plugin-content-blog": "0.0.0-5059",
25
+ "@docusaurus/plugin-content-docs": "0.0.0-5059",
26
+ "@docusaurus/plugin-content-pages": "0.0.0-5059",
27
+ "@docusaurus/theme-common": "0.0.0-5059",
28
+ "@docusaurus/theme-translations": "0.0.0-5059",
29
+ "@docusaurus/utils": "0.0.0-5059",
30
+ "@docusaurus/utils-common": "0.0.0-5059",
31
+ "@docusaurus/utils-validation": "0.0.0-5059",
32
32
  "@mdx-js/react": "^1.6.22",
33
33
  "clsx": "^1.1.1",
34
34
  "copy-text-to-clipboard": "^3.0.1",
@@ -43,8 +43,8 @@
43
43
  "tslib": "^2.4.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@docusaurus/module-type-aliases": "0.0.0-5057",
47
- "@docusaurus/types": "0.0.0-5057",
46
+ "@docusaurus/module-type-aliases": "0.0.0-5059",
47
+ "@docusaurus/types": "0.0.0-5059",
48
48
  "@types/mdx-js__react": "^1.5.5",
49
49
  "@types/nprogress": "^0.2.0",
50
50
  "@types/prismjs": "^1.26.0",
@@ -60,5 +60,5 @@
60
60
  "engines": {
61
61
  "node": ">=16.14"
62
62
  },
63
- "gitHead": "3f928ce89e585ef863bb6b25450198cd7537c275"
63
+ "gitHead": "c24f5c455a125fd0da360e7946641f0566a718b7"
64
64
  }
@@ -9,13 +9,15 @@ import React from 'react';
9
9
  import clsx from 'clsx';
10
10
  import type {Props} from '@theme/MDXComponents/Ul';
11
11
 
12
+ import styles from './styles.module.css';
13
+
12
14
  function transformUlClassName(className?: string): string {
13
15
  return clsx(
14
16
  className,
15
17
  // This class is set globally by GitHub/MDX. We keep the global class, and
16
- // add another Infima class to get list without styling
18
+ // add another class to get a task list without the default ul styling
17
19
  // See https://github.com/syntax-tree/mdast-util-to-hast/issues/28
18
- className?.includes('contains-task-list') && 'clean-list',
20
+ className?.includes('contains-task-list') && styles.containsTaskList,
19
21
  );
20
22
  }
21
23
 
@@ -0,0 +1,14 @@
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
+ .containsTaskList {
9
+ list-style: none;
10
+ }
11
+
12
+ :not(.containsTaskList > li) > .containsTaskList {
13
+ padding-left: 0;
14
+ }