File tree 2 files changed +5
-3
lines changed
src/client/theme-default/styles
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 477
477
position : relative;
478
478
top : -1px ;
479
479
/*rtl:ignore*/
480
- left : -65 px ;
480
+ transform : translateX ( calc ( -100 % - 1 px )) ;
481
481
display : flex;
482
482
justify-content : center;
483
483
align-items : center;
484
484
border : 1px solid var (--vp-code-copy-code-hover-border-color );
485
485
/*rtl:ignore*/
486
486
border-right : 0 ;
487
487
border-radius : 4px 0 0 4px ;
488
- width : 64px ;
488
+ padding : 0 10px ;
489
+ width : fit-content;
489
490
height : 40px ;
490
491
text-align : center;
491
492
font-size : 12px ;
492
493
font-weight : 500 ;
493
494
color : var (--vp-code-copy-code-active-text );
494
495
background-color : var (--vp-code-copy-code-hover-bg );
495
496
white-space : nowrap;
496
- content : 'Copied' ;
497
+ content : var ( --vp-code-copy-copied-text-content ) ;
497
498
}
498
499
499
500
.vp-doc [class *= 'language-' ] > span .lang {
Original file line number Diff line number Diff line change 324
324
--vp-code-copy-code-hover-border-color : var (--vp-c-divider );
325
325
--vp-code-copy-code-hover-bg : var (--vp-c-bg );
326
326
--vp-code-copy-code-active-text : var (--vp-c-text-2 );
327
+ --vp-code-copy-copied-text-content : 'Copied' ;
327
328
328
329
--vp-code-tab-divider : var (--vp-code-block-divider-color );
329
330
--vp-code-tab-text-color : var (--vp-c-text-2 );
You can’t perform that action at this time.
0 commit comments