refactor(theme-classic): cleanup of code blocks (#6987)

This commit is contained in:
Alexey Pyltsyn 2022-03-25 14:56:00 +03:00 committed by GitHub
parent 78ecff907a
commit c2ac22ec15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 7 deletions

View file

@ -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',

View file

@ -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}

View file

@ -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 {