mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-18 02:32:28 +02:00
refactor(theme-classic): cleanup of code blocks (#6987)
This commit is contained in:
parent
78ecff907a
commit
c2ac22ec15
3 changed files with 2 additions and 7 deletions
|
@ -42,7 +42,6 @@ export default function CopyButton({code}: Props): JSX.Element {
|
|||
description: 'The ARIA label for copy code blocks button',
|
||||
})
|
||||
}
|
||||
// @todo: check it again later
|
||||
title={translate({
|
||||
id: 'theme.CodeBlock.copy',
|
||||
message: 'Copy',
|
||||
|
|
|
@ -111,9 +111,7 @@ export default function CodeBlock({
|
|||
{codeBlockTitle}
|
||||
</div>
|
||||
)}
|
||||
<div
|
||||
className={clsx(styles.codeBlockContent, language)}
|
||||
style={style}>
|
||||
<div className={styles.codeBlockContent} style={style}>
|
||||
<pre
|
||||
/* eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex */
|
||||
tabIndex={0}
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
|
||||
.codeBlockContainer {
|
||||
margin-bottom: var(--ifm-leading);
|
||||
border-radius: var(--ifm-global-radius);
|
||||
box-shadow: var(--ifm-global-shadow-lw);
|
||||
}
|
||||
|
||||
|
@ -15,6 +14,7 @@
|
|||
position: relative;
|
||||
/* rtl:ignore */
|
||||
direction: ltr;
|
||||
border-radius: var(--ifm-global-radius);
|
||||
}
|
||||
|
||||
.codeBlockTitle {
|
||||
|
@ -29,7 +29,6 @@
|
|||
.codeBlock {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border-radius: var(--ifm-global-radius);
|
||||
background-color: inherit;
|
||||
}
|
||||
|
||||
|
@ -40,7 +39,6 @@
|
|||
|
||||
.codeBlockStandalone {
|
||||
padding: 0;
|
||||
border-radius: var(--ifm-global-radius);
|
||||
}
|
||||
|
||||
.codeBlockLines {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue