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 5a8ec2f92bca..9fd9c4bc0bb6 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 473800e62ca6..436785d61bd6 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 6bd2d1b6afcf..2b03802e9b5c 100644 --- a/website/src/components/BrowserWindow/index.js +++ b/website/src/components/BrowserWindow/index.js @@ -18,9 +18,7 @@ function BrowserWindow({children, minHeight, url}) { -
- -
+
{url}
diff --git a/website/src/components/BrowserWindow/styles.module.css b/website/src/components/BrowserWindow/styles.module.css index a8c67fef4738..40f5a4db4ef9 100644 --- a/website/src/components/BrowserWindow/styles.module.css +++ b/website/src/components/BrowserWindow/styles.module.css @@ -35,8 +35,13 @@ .browserWindowAddressBar { flex: 1 0; - margin-left: 0.5rem; - margin-right: 1rem; + margin: 0 1rem 0 0.5rem; + border-radius: 12.5px; + background-color: #fff; + color: #666; + padding: 5px 15px; + font: 400 13px Arial; + user-select: none; } .dot { @@ -49,17 +54,6 @@ display: inline-block; } -input[type='text'] { - width: 100%; - border-radius: 12.5px; - border: none; - background-color: white; - margin-top: -8px; - height: 25px; - color: #666; - padding: 5px 15px; -} - .browserWindowMenuIcon { margin-left: auto; } diff --git a/website/src/pages/index.js b/website/src/pages/index.js index 21c3707e07fe..73c05dbd4629 100644 --- a/website/src/pages/index.js +++ b/website/src/pages/index.js @@ -68,150 +68,163 @@ function Home() { permalink="/" title={tagline} description={customFields.description}> -
-
-

- Docusaurus with Keytar - Build optimized{' '} - websites quickly - , focus on your{' '} - content -

-
- - Get Started - - -