+
{props.children}
)
diff --git a/src/components/controls/list/SingleItem.tsx b/src/components/controls/list/SingleItem.tsx
new file mode 100644
index 0000000000..da51911ba5
--- /dev/null
+++ b/src/components/controls/list/SingleItem.tsx
@@ -0,0 +1,17 @@
+import React from 'react'
+
+export interface SingleItemProps {
+ children: React.ReactNode;
+ // default: false
+ keepMargin?: boolean;
+}
+
+export function SingleItem(props: SingleItemProps) {
+ const keepMargin = props.keepMargin ?? false;
+
+ return (
+
+ );
+}
\ No newline at end of file
diff --git a/src/css/article.css b/src/css/article.css
index 5ff5f69af2..76d7f65178 100644
--- a/src/css/article.css
+++ b/src/css/article.css
@@ -4,6 +4,8 @@
--ifm-code-border-radius: 0.5rem;
--ifm-button-border-width: 2px;
--ifm-container-width-xl: 72vw;
+ /*--ifm-heading-margin-top: 0.83rem;*/
+ /*--ifm-heading-margin-bottom: 0;*/
--bedoc-section-bg: var(--ifm-background-color);
--bedoc-exp-title-background-color: var(--bedoc-title-background-color);
--bedoc-exp-title-color: var(--bedoc-title-color);
@@ -164,8 +166,10 @@ li > p {
margin-block-end: unset;
}
-ul {
- margin-bottom: var(--ifm-list-margin) !important;
+.hidden-source-text {
+ /*padding-inline-start: 1rem;*/
+ margin-top: calc(-1 * var(--ifm-list-margin));
+ /*margin-bottom: var(--ifm-list-margin);*/
}
/**更新日志总标题**/
@@ -295,6 +299,7 @@ img[loading='lazy'] {
/*margin-left: 4px;*/
/*margin-right: 4px;*/
}
+
.piston-toggle-rect-outline {
border: 2px solid var(--bedoc-piston-toggle-outline-color);
transform: rotate(45deg);
diff --git a/src/theme/MDXComponents.js b/src/theme/MDXComponents.js
index 9345a8ace7..de8508f98c 100644
--- a/src/theme/MDXComponents.js
+++ b/src/theme/MDXComponents.js
@@ -6,6 +6,7 @@ import {NavHiddenSwitcher} from '@site/src/components/controls/navigation/NavHid
import {HoverOverlayPanel} from '@site/src/components/controls/overlay/HoverOverlayPanel'
import {ClickOverplayPanel} from '@site/src/components/controls/overlay/ClickOverplayPanel'
import {PistonToggle} from '@site/src/components/controls/piston/PistonToggle'
+import {SingleItem} from '@site/src/components/controls/list/SingleItem'
export default {
// Re-use the default mapping
@@ -15,5 +16,6 @@ export default {
NavHiddenSwitcher,
HoverOverlayPanel,
ClickOverplayPanel,
- PistonToggle
+ PistonToggle,
+ SingleItem
};
\ No newline at end of file