File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -11,5 +11,5 @@ export const highlightCodeCompiler = ({ renderer }) =>
1111 lang
1212 ) ;
1313
14- return /* html */ `<pre v-pre data-lang="${ lang } "><code class="lang-${ lang } ">${ text } </code></pre>` ;
14+ return /* html */ `<pre v-pre data-lang="${ lang } "><code class="lang-${ lang } " tabindex="0" >${ text } </code></pre>` ;
1515 } ) ;
Original file line number Diff line number Diff line change 114114.markdown-section code ,
115115.markdown-section pre
116116 background-color #f8 f8 f8
117+ z-index 0
117118
118119.markdown-section pre ,
119120.markdown-section output
@@ -141,21 +142,24 @@ body
141142 font-size 0.8rem
142143
143144.markdown-section pre
144- padding 0 1.4rem
145145 line-height 1.5rem
146146 overflow auto
147147 word-wrap normal
148148
149149.markdown-section pre > code
150150 color #52 52 52
151151 font-size 0.8rem
152- padding 2.2em 5 px
152+ padding 2.2em 1.4 rem
153153 line-height inherit
154- margin 0 2 px
154+ margin 5 px
155155 max-width inherit
156156 overflow inherit
157157 white-space inherit
158158
159+ .markdown-section pre > code :focus
160+ // outline 5px auto Highlight;
161+ outline 5px auto - webkit-focus-ring-color ;
162+
159163.markdown-section output
160164 padding : 1.7rem 1.4rem
161165 border 1px dotted #c c c
172176
173177.markdown-section pre ::after ,
174178.markdown-section output ::after
179+ content attr (data-lang )
175180 color #c c c
176181 font-size 0.6rem
177182 font-weight 600
@@ -183,10 +188,6 @@ body
183188 text-align right
184189 top 0
185190
186- .markdown-section pre ::after
187- .markdown-section output ::after
188- content attr (data-lang )
189-
190191/* code highlight */
191192.token.comment , .token.prolog , .token.doctype , .token.cdata
192193 color #8e 90 8c
You can’t perform that action at this time.
0 commit comments