Skip to content

Commit 2ed33b9

Browse files
committed
put background on .controls rather than button
1 parent a759443 commit 2ed33b9

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

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

Lines changed: 6 additions & 2 deletions
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 {
@@ -206,7 +211,6 @@
206211
height: calc(var(--height) - 1rem);
207212
aspect-ratio: 1;
208213
border-radius: var(--sk-border-radius);
209-
background-color: var(--sk-back-2);
210214
211215
&[disabled] {
212216
opacity: 1;

packages/site-kit/src/lib/styles/utils/buttons.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
border-style: solid;
44
border-color: var(--sk-raised-color);
55
border-width: var(--sk-raised-width);
6-
background-color: inherit;
76

87
&.primary {
98
--sk-raised-color: hsla(12, 93%, 60%) hsla(12, 93%, 35%) hsla(12, 93%, 35%) hsla(12, 93%, 60%);

0 commit comments

Comments
 (0)