Skip to content

Commit

Permalink
fix(md-enhance): fix code tabs style
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Sep 20, 2024
1 parent f963208 commit d6a1157
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions packages/md-enhance/src/client/styles/code-tabs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
.vp-code-tabs-nav {
overflow-x: auto;

margin: 0.875rem 0 -0.875rem;
margin: 0.75rem 0 -0.75rem;
padding: 0;
border-radius: 6px 6px 0 0;

Expand Down Expand Up @@ -126,18 +126,24 @@
}

div[class*="language-"] {
margin: 0.75rem -1.5rem;
border-top-left-radius: 0;
border-top-right-radius: 0;

@media (max-width: hope-config.$mobile) {
margin: 0.75rem -1.5rem;
border-radius: 0;
}

&.line-numbers-mode::after {
border-top-left-radius: 0 !important;
border-top-left-radius: 0;
}

pre {
border-top-left-radius: 0 !important;
border-top-right-radius: 0 !important;
border-top-left-radius: 0;
border-top-right-radius: 0;

@media (max-width: hope-config.$mobile) {
border-radius: 0 !important;
border-radius: 0;
}
}

Expand Down

0 comments on commit d6a1157

Please sign in to comment.