Skip to content

Commit

Permalink
Исправляет фон лэйбла языка в блоке кода (#1311)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitya-ne authored Oct 18, 2024
1 parent 0d2f038 commit d3f0788
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/styles/blocks/block-code.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
font-size: 0.6em;
line-height: 1;
letter-spacing: 0.025em;
background-color: hsl(var(--color-fade));
background-color: var(--code-lang-lable-background, hsl(var(--color-fade)));
border-radius: 2em;
transition: opacity 0.2s;
}
Expand Down
1 change: 1 addition & 0 deletions src/styles/blocks/callout.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

.callout__content {
--background-code-color: hsl(var(--color-base-background));
--code-lang-lable-background: var(--background-code-color);
display: flex;
flex-direction: column;
flex: 1 1 320px;
Expand Down

0 comments on commit d3f0788

Please sign in to comment.