Skip to content

Commit d3f0788

Browse files
authored
Исправляет фон лэйбла языка в блоке кода (#1311)
1 parent 0d2f038 commit d3f0788

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/styles/blocks/block-code.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
font-size: 0.6em;
2424
line-height: 1;
2525
letter-spacing: 0.025em;
26-
background-color: hsl(var(--color-fade));
26+
background-color: var(--code-lang-lable-background, hsl(var(--color-fade)));
2727
border-radius: 2em;
2828
transition: opacity 0.2s;
2929
}

src/styles/blocks/callout.css

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
.callout__content {
2020
--background-code-color: hsl(var(--color-base-background));
21+
--code-lang-lable-background: var(--background-code-color);
2122
display: flex;
2223
flex-direction: column;
2324
flex: 1 1 320px;

0 commit comments

Comments
 (0)