File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 667
667
user-select : none;
668
668
}
669
669
670
- .doc .code -toolbox {
670
+ .doc .source -toolbox {
671
671
display : flex;
672
672
visibility : hidden;
673
673
position : absolute;
678
678
line-height : 1 ;
679
679
}
680
680
681
- .doc .listingblock : hover .code -toolbox {
681
+ .doc .listingblock : hover .source -toolbox {
682
682
visibility : visible;
683
683
}
684
684
685
- .doc .code -toolbox .code -lang {
685
+ .doc .source -toolbox .source -lang {
686
686
text-transform : uppercase;
687
687
}
688
688
689
- .doc .code -toolbox > : not (: last-child )::after {
689
+ .doc .source -toolbox > : not (: last-child )::after {
690
690
content : " | " ;
691
691
}
692
692
693
- .doc .code -toolbox .copy-button {
693
+ .doc .source -toolbox .copy-button {
694
694
display : flex;
695
695
flex-direction : column;
696
696
align-items : center;
705
705
height : 1.05em ;
706
706
}
707
707
708
- .code -toolbox .copy-button * {
708
+ .source -toolbox .copy-button * {
709
709
flex : none;
710
710
}
711
711
712
- .code -toolbox .copy-button svg {
712
+ .source -toolbox .copy-button svg {
713
713
fill : currentColor;
714
714
width : inherit;
715
715
height : inherit;
716
716
}
717
717
718
- .code -toolbox .copy-toast {
718
+ .source -toolbox .copy-toast {
719
719
position : relative;
720
720
display : inline-flex;
721
721
justify-content : center;
730
730
transition : opacity 0.5s ease 0.75s ;
731
731
}
732
732
733
- .code -toolbox .copy-toast ::after {
733
+ .source -toolbox .copy-toast ::after {
734
734
content : "" ;
735
735
position : absolute;
736
736
top : 0 ;
742
742
transform-origin : left;
743
743
}
744
744
745
- .code -toolbox .copy-button .clicked .copy-toast {
745
+ .source -toolbox .copy-button .clicked .copy-toast {
746
746
opacity : 1 ;
747
747
transition : none;
748
748
}
Original file line number Diff line number Diff line change 5
5
if ( pre . classList . contains ( 'highlight' ) ) {
6
6
code = pre . querySelector ( 'code' )
7
7
if ( ( language = code . dataset . lang ) && language !== 'console' ) {
8
- ; ( lang = document . createElement ( 'span' ) ) . className = 'code -lang'
8
+ ; ( lang = document . createElement ( 'span' ) ) . className = 'source -lang'
9
9
lang . appendChild ( document . createTextNode ( language ) )
10
10
}
11
11
} else if ( pre . innerText . startsWith ( '$ ' ) ) {
21
21
} else {
22
22
return
23
23
}
24
- ; ( toolbox = document . createElement ( 'div' ) ) . className = 'code -toolbox'
24
+ ; ( toolbox = document . createElement ( 'div' ) ) . className = 'source -toolbox'
25
25
if ( lang ) toolbox . appendChild ( lang )
26
26
if ( window . navigator . clipboard ) {
27
27
; ( copy = document . createElement ( 'button' ) ) . className = 'copy-button'
You can’t perform that action at this time.
0 commit comments