Skip to content

Commit

Permalink
fix(theme): restore styles for code blocks (#1170)
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd authored Aug 16, 2022
1 parent bf90061 commit 2c89afb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/client/theme-default/styles/components/vp-doc.css
Original file line number Diff line number Diff line change
Expand Up @@ -310,23 +310,23 @@
}

.vp-doc [class*='language-'] code {
display: flex;
width: max-content;
display: block;
padding: 0 24px;
width: fit-content;
min-width: 100%;
flex-direction: column;
line-height: var(--vp-code-line-height);
font-size: var(--vp-code-font-size);
color: var(--vp-code-block-color);
transition: color 0.5s;
}

.vp-doc [class*='language-'] code .line {
padding: 0 24px;
}

.vp-doc [class*='language-'] code .highlighted {
background-color: var(--vp-code-line-highlight-color);
transition: background-color 0.5s;
margin: 0 -24px;
padding: 0 24px;
width: calc(100% + 2 * 24px);
display: inline-block;
}

.vp-doc div[class*='language-'].line-numbers-mode {
Expand Down

0 comments on commit 2c89afb

Please sign in to comment.