Skip to content

Commit 213c9de

Browse files
committed
Add code title style when line numbers active.
1 parent 585c965 commit 213c9de

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

assets/blocks/core/code.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/blocks/core/code.scss

+6
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
margin: calc( -1 * var(--wp--preset--spacing--medium)) calc( -1 * var(--wp--preset--spacing--medium)) var(--wp--preset--spacing--medium);
2020
}
2121

22+
&.line-numbers {
23+
.prism-titlename {
24+
margin: calc(-1* var(--wp--preset--spacing--medium)) calc(-2.5* var(--wp--preset--spacing--medium)) var(--wp--preset--spacing--medium);
25+
}
26+
}
27+
2228
/* Block Style: Wrap
2329
*
2430
* This style is not directly accessible in the UI.

0 commit comments

Comments
 (0)