diff --git a/packages/docusaurus-theme-live-codeblock/src/theme/CodeBlock/index.js b/packages/docusaurus-theme-live-codeblock/src/theme/CodeBlock/index.js index 5a8ec2f92b..9fd9c4bc0b 100644 --- a/packages/docusaurus-theme-live-codeblock/src/theme/CodeBlock/index.js +++ b/packages/docusaurus-theme-live-codeblock/src/theme/CodeBlock/index.js @@ -137,7 +137,7 @@ export default ({ onClick={handleCopyCode}> {showCopied ? 'Copied' : 'Copy'} -
-+ > )} diff --git a/packages/docusaurus-theme-live-codeblock/src/theme/CodeBlock/styles.module.css b/packages/docusaurus-theme-live-codeblock/src/theme/CodeBlock/styles.module.css index 473800e62c..436785d61b 100644 --- a/packages/docusaurus-theme-live-codeblock/src/theme/CodeBlock/styles.module.css +++ b/packages/docusaurus-theme-live-codeblock/src/theme/CodeBlock/styles.module.css @@ -20,9 +20,6 @@ .codeBlock { overflow: auto; - display: block; - padding: 0; - margin: 0; } .codeBlockWithTitle { @@ -59,9 +56,10 @@ } .codeBlockLines { - background-color: transparent; - border-radius: 0; - margin-bottom: 0; + font-family: var(--ifm-font-family-monospace); + font-size: inherit; + line-height: var(--ifm-pre-line-height); + white-space: pre; float: left; min-width: 100%; padding: var(--ifm-pre-padding); diff --git a/website/src/components/BrowserWindow/index.js b/website/src/components/BrowserWindow/index.js index 6bd2d1b6af..2b03802e9b 100644 --- a/website/src/components/BrowserWindow/index.js +++ b/website/src/components/BrowserWindow/index.js @@ -18,9 +18,7 @@ function BrowserWindow({children, minHeight, url}) { -
- Save time and focus on your project's documentation. Simply - write docs and blog posts with Markdown/MDX and Docusaurus will - publish a set of static HTML files ready to serve. You can even - embed JSX components into your Markdown thanks to MDX. -
-- Extend or customize your project's layout by reusing React. - Docusaurus can be extended while reusing the same header and - footer. -
-- Localization comes pre-configured. Use Crowdin to translate your - docs into over 70 languages. -
-- Support users on all versions of your project. Document - versioning helps you keep documentation in sync with project - releases. -
-- Make it easy for your community to find what they need in your - documentation. We proudly support Algolia documentation search. -
-- {quote.text} +
+ Save time and focus on your project's documentation. Simply + write docs and blog posts with Markdown/MDX and Docusaurus + will publish a set of static HTML files ready to serve. You + can even embed JSX components into your Markdown thanks to + MDX.
+ Extend or customize your project's layout by reusing React. + Docusaurus can be extended while reusing the same header and + footer. +
++ Localization comes pre-configured. Use Crowdin to translate + your docs into over 70 languages. +
++ Support users on all versions of your project. Document + versioning helps you keep documentation in sync with project + releases. +
++ Make it easy for your community to find what they need in your + documentation. We proudly support Algolia documentation + search. +
++ {quote.text} +
+