mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-01 16:00:29 +02:00
fix(theme-classic): adjust shadow on code block (#7013)
* fix(theme-classic): adjust shadow on code block * More refactoring Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
This commit is contained in:
parent
4957ec947b
commit
50e38ec4c9
1 changed files with 4 additions and 3 deletions
|
@ -8,13 +8,14 @@
|
||||||
.codeBlockContainer {
|
.codeBlockContainer {
|
||||||
margin-bottom: var(--ifm-leading);
|
margin-bottom: var(--ifm-leading);
|
||||||
box-shadow: var(--ifm-global-shadow-lw);
|
box-shadow: var(--ifm-global-shadow-lw);
|
||||||
|
border-radius: var(--ifm-code-border-radius);
|
||||||
}
|
}
|
||||||
|
|
||||||
.codeBlockContent {
|
.codeBlockContent {
|
||||||
position: relative;
|
position: relative;
|
||||||
/* rtl:ignore */
|
/* rtl:ignore */
|
||||||
direction: ltr;
|
direction: ltr;
|
||||||
border-radius: var(--ifm-global-radius);
|
border-radius: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
.codeBlockTitle {
|
.codeBlockTitle {
|
||||||
|
@ -22,8 +23,8 @@
|
||||||
font-size: var(--ifm-code-font-size);
|
font-size: var(--ifm-code-font-size);
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
padding: 0.75rem var(--ifm-pre-padding);
|
padding: 0.75rem var(--ifm-pre-padding);
|
||||||
border-top-left-radius: var(--ifm-global-radius);
|
border-top-left-radius: inherit;
|
||||||
border-top-right-radius: var(--ifm-global-radius);
|
border-top-right-radius: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
.codeBlock {
|
.codeBlock {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue