mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-30 05:52:50 +00:00
Some checks failed
Argos CI / take-screenshots (push) Has been cancelled
Build Hash Router / Build Hash Router (push) Has been cancelled
Canary Release / Publish Canary (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Continuous Releases / Continuous Releases (push) Has been cancelled
E2E Tests / E2E — Yarn v1 (18.0) (push) Has been cancelled
E2E Tests / E2E — Yarn v1 (20) (push) Has been cancelled
E2E Tests / E2E — Yarn v1 (22) (push) Has been cancelled
E2E Tests / E2E — Yarn Berry (node-modules, -s) (push) Has been cancelled
E2E Tests / E2E — Yarn Berry (node-modules, -st) (push) Has been cancelled
E2E Tests / E2E — Yarn Berry (pnp, -s) (push) Has been cancelled
E2E Tests / E2E — Yarn Berry (pnp, -st) (push) Has been cancelled
E2E Tests / E2E — npm (push) Has been cancelled
E2E Tests / E2E — pnpm (push) Has been cancelled
* introduce CodeBlockContextProvider * refactor: apply lint autofix * add comment * move wordWrap to context * Refactor button components * remove console logs * Extract more code block components * Extract CodeBlockLineToken subcomponent * add TODOs --------- Co-authored-by: slorber <749374+slorber@users.noreply.github.com>
28 lines
661 B
CSS
28 lines
661 B
CSS
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
.codeBlockContent {
|
|
position: relative;
|
|
/* rtl:ignore */
|
|
direction: ltr;
|
|
border-radius: inherit;
|
|
}
|
|
|
|
.codeBlockTitle {
|
|
border-bottom: 1px solid var(--ifm-color-emphasis-300);
|
|
font-size: var(--ifm-code-font-size);
|
|
font-weight: 500;
|
|
padding: 0.75rem var(--ifm-pre-padding);
|
|
border-top-left-radius: inherit;
|
|
border-top-right-radius: inherit;
|
|
}
|
|
|
|
.codeBlockTitle + .codeBlockContent .codeBlock {
|
|
border-top-left-radius: 0;
|
|
border-top-right-radius: 0;
|
|
}
|