File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
packages/repl/src/lib/Input Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 192
192
193
193
<button
194
194
class =" copy-button"
195
- title =" Copy to clipboard"
196
- aria-label =" Copy to clipboard"
195
+ title =" Copy `npx sv create --from-playground= " ... " ` to clipboard"
196
+ aria-label =" Copy `npx sv create --from-playground= " ... " ` to clipboard"
197
197
onclick ={() => {
198
198
navigator .clipboard .writeText (
199
199
` npx sv create --from-playground="${window .location .href }" `
200
200
);
201
201
}}
202
202
>
203
- Copy < code >sv create --from-playground</ code >
203
+ Set up locally
204
204
</button >
205
205
</Toolbox >
206
206
</div >
376
376
377
377
.copy-button {
378
378
position : relative ;
379
- height : 3.6rem ;
380
- margin-right : 2rem ;
381
379
382
380
&::before,
383
381
&::after {
386
384
position : absolute ;
387
385
width : 100% ;
388
386
height : 100% ;
389
- right : 1.1 rem ;
390
- top : 1.1 rem ;
387
+ right : 0 ;
388
+ top : 0 ;
391
389
background : currentColor ;
392
- mask : no-repeat 100% 0 % / 1.6rem 1.6rem ;
390
+ mask : no-repeat calc ( 100% - 1 rem ) 50 % / 1.6rem 1.6rem ;
393
391
transition : opacity 0.2s ;
394
392
transition-delay : 0.6s ;
395
393
}
You can’t perform that action at this time.
0 commit comments