Skip to content

Commit

Permalink
Adjust Expressive Code title bar tab display
Browse files Browse the repository at this point in the history
  • Loading branch information
delucis committed Jan 10, 2025
1 parent 1a36d9a commit 20e47c9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/starlight/style/print.css
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,19 @@
/* Ensure terminal frame dots are visible even if backgrounds are disabled. */
box-shadow: inset 99rem 99rem var(--sl-color-gray-5);
}
.expressive-code .frame.has-title:not(.is-terminal) .header {
/* Divide title bar and code without relying on background colors. */
background: transparent !important;
border-bottom: 1px solid var(--sl-color-gray-6) !important;
}
.expressive-code .frame.has-title:not(.is-terminal) .title {
/* Hide title tab background color. */
background: transparent !important;
}
.expressive-code .frame.has-title:not(.is-terminal) .title::after {
/* Remove title tab highlight. */
border-top: 0 !important;
}
/* Inline code */
.sl-markdown-content code:not(:where(.not-content *)) {
background-color: transparent !important;
Expand Down

0 comments on commit 20e47c9

Please sign in to comment.