added lines and lines to errors
This commit is contained in:
parent
2a8e93e4be
commit
93bd4dc8fe
3 changed files with 22 additions and 1 deletions
|
|
@ -58,6 +58,21 @@ watch(() => props.lang, (to) => {
|
|||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.codeBlockRoot :deep(.shiki) > code {
|
||||
counter-reset: step;
|
||||
counter-increment: step 0;
|
||||
}
|
||||
|
||||
.codeBlockRoot :deep(.shiki) > code > .line::before {
|
||||
content: counter(step);
|
||||
counter-increment: step;
|
||||
width: 1rem;
|
||||
margin-right: 1.5rem;
|
||||
display: inline-block;
|
||||
text-align: right;
|
||||
color: rgba(115,138,148,.4)
|
||||
}
|
||||
|
||||
.codeBlockRoot :deep(.shiki) {
|
||||
padding: 1em;
|
||||
margin: .5em 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue