Fix fancy code blocks having table styles
This commit is contained in:
21
content/demo/code.md
Normal file
21
content/demo/code.md
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
+++
|
||||||
|
title = "Code Block Demo"
|
||||||
|
+++
|
||||||
|
|
||||||
|
```scss, linenos, linenostart=10, hl_lines=3-4 8-9, hide_lines=2 7
|
||||||
|
pre mark {
|
||||||
|
|
||||||
|
display: block;
|
||||||
|
|
||||||
|
color: currentcolor;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
pre table td:nth-of-type(1) {
|
||||||
|
|
||||||
|
color: #6b6b6b;
|
||||||
|
|
||||||
|
font-style: italic;
|
||||||
|
|
||||||
|
}
|
||||||
|
```
|
@ -225,8 +225,12 @@ pre {
|
|||||||
}
|
}
|
||||||
|
|
||||||
table {
|
table {
|
||||||
|
box-shadow: none;
|
||||||
|
border-radius: 0;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
table-layout: auto;
|
||||||
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
// The line numbers already provide some kind of left/right padding
|
// The line numbers already provide some kind of left/right padding
|
||||||
|
Reference in New Issue
Block a user