Skip to content

Commit

Permalink
feat(theme-default): make use of data-title attr for code blocks (close
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed Jan 8, 2024
1 parent aae5916 commit fbf5e32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion themes/theme-default/src/client/styles/code.scss
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ div[class*='language-'] {
border-radius: 6px;

&::before {
content: attr(data-ext);
content: attr(data-title);
position: absolute;
z-index: 3;
top: 0.8em;
Expand Down

0 comments on commit fbf5e32

Please sign in to comment.