File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed
packages/site-kit/src/lib Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 72
72
}
73
73
74
74
li {
75
+ position : relative ;
75
76
display : block ;
76
77
margin : 0 ;
77
78
margin-bottom : 4rem ;
79
+ padding-right : 0.5rem ; /* leave space for focus ring */
78
80
}
79
81
80
82
li :last-child {
125
127
overflow-y : auto ;
126
128
}
127
129
128
- :global(.scrollbars-invisible ) [aria-current = ' page' ]::after {
130
+ :global(.scrollbars-invisible ) li :has ( > [aria-current = ' page' ]) ::after {
129
131
--size : 1.8rem ;
130
132
content : ' ' ;
131
133
position : absolute ;
132
134
width : var (--size );
133
135
height : var (--size );
134
136
top : calc (1.4rem - var (--size ) * 0.5 );
135
- right : calc (-0.5 * var (--size ));
137
+ right : calc (-0.5 rem - 0. 5 * var (--size ));
136
138
background-color : var (--sk-bg-1 );
137
139
z-index : 2 ;
138
140
position : absolute ;
Original file line number Diff line number Diff line change @@ -857,9 +857,15 @@ async function syntax_highlight({
857
857
html = replace_blank_lines ( highlighted ) ;
858
858
}
859
859
860
- // munge shiki output: put whitespace outside `<span>` elements, so that
861
- // highlight delimiters fall outside tokens
862
- html = html . replace ( / ( < s p a n [ ^ > ] + ?> ) ( \s + ) / g, '$2$1' ) . replace ( / ( \s + ) ( < \/ s p a n > ) / g, '$2$1' ) ;
860
+ // munge shiki output
861
+ html = html
862
+ // put whitespace outside `<span>` elements, so that
863
+ // highlight delimiters fall outside tokens
864
+ . replace ( / ( < s p a n [ ^ > ] + ?> ) ( \s + ) / g, '$2$1' )
865
+ . replace ( / ( \s + ) ( < \/ s p a n > ) / g, '$2$1' )
866
+
867
+ // remove tabindex
868
+ . replace ( ' tabindex="0"' , '' ) ;
863
869
864
870
html = html
865
871
. replace ( / { 13 } ( [ ^ ] [ ^ ] + ?) { 13 } / g, ( _ , content ) => {
You can’t perform that action at this time.
0 commit comments