Skip to content

Commit a28e194

Browse files
fix: add background color to code block buttons (#601)
* fix: add background color to code block buttons * put background on .controls rather than button --------- Co-authored-by: Rich Harris <[email protected]>
1 parent 5f095cf commit a28e194

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/site-kit/src/lib/components/Text.svelte

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
top: 0;
128128
right: 0;
129129
height: var(--height);
130-
padding: 0.3rem 0.5rem 0.3rem 1rem;
130+
padding: 0.3rem 0.5rem;
131131
gap: 0.5rem;
132132
z-index: 2;
133133
justify-content: end;
@@ -136,6 +136,11 @@
136136
&:has(.filename) {
137137
position: relative;
138138
background: var(--sk-back-3);
139+
padding-left: 1rem;
140+
}
141+
142+
&:not(:has(.filename)) {
143+
background: inherit;
139144
}
140145
141146
.filename {

0 commit comments

Comments
 (0)