Skip to content

Commit

Permalink
fix: title bar style
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyinws committed Dec 4, 2024
1 parent 8543051 commit 312f01c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ export async function generateCSS(labels: Set<string>, options: Options) {
box-shadow: inset 0 -1px var(--vp-code-tab-divider);
}
.custom-block .vp-code-block-title-bar {
margin: 16px 0 0 0;
}
@media (min-width: 640px) {
.vp-code-block-title-bar {
margin: 16px 0 0 0;
Expand Down
12 changes: 12 additions & 0 deletions test/__snapshots__/codegen.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ exports[`generate css > builtin icon 1`] = `
box-shadow: inset 0 -1px var(--vp-code-tab-divider);
}
.custom-block .vp-code-block-title-bar {
margin: 16px 0 0 0;
}
@media (min-width: 640px) {
.vp-code-block-title-bar {
margin: 16px 0 0 0;
Expand Down Expand Up @@ -85,6 +89,10 @@ exports[`generate css > custom icon 1`] = `
box-shadow: inset 0 -1px var(--vp-code-tab-divider);
}
.custom-block .vp-code-block-title-bar {
margin: 16px 0 0 0;
}
@media (min-width: 640px) {
.vp-code-block-title-bar {
margin: 16px 0 0 0;
Expand Down Expand Up @@ -146,6 +154,10 @@ exports[`generate css > duplicate label 1`] = `
box-shadow: inset 0 -1px var(--vp-code-tab-divider);
}
.custom-block .vp-code-block-title-bar {
margin: 16px 0 0 0;
}
@media (min-width: 640px) {
.vp-code-block-title-bar {
margin: 16px 0 0 0;
Expand Down

0 comments on commit 312f01c

Please sign in to comment.