diff options
| author | muqiuhan <[email protected]> | 2023-02-28 09:58:51 +0000 |
|---|---|---|
| committer | muqiuhan <[email protected]> | 2023-02-28 09:58:51 +0000 |
| commit | 7e2f3fca091c08771486df0b870ce187f869d363 (patch) | |
| tree | 025e1b18a0d94c940a85eb631a7f48951efbc18d /css/post/code.css | |
| parent | 2605fd54aa163fcfc97fc265a300b1b54bf38543 (diff) | |
| download | blog-7e2f3fca091c08771486df0b870ce187f869d363.tar.gz | |
deploy: b780169745c17f9fc971299e923e5ca5669b5a22
Diffstat (limited to 'css/post/code.css')
| -rw-r--r-- | css/post/code.css | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/css/post/code.css b/css/post/code.css new file mode 100644 index 00000000..7bd8e748 --- /dev/null +++ b/css/post/code.css @@ -0,0 +1,22 @@ +.highlight { + margin: 0 0 $margin-m-2 0; +} +.highlight .line { + width: $margin-l-2; +} +td.gutter { + width: $margin-m-2; + position: -webkit-sticky; + position: sticky; + left: 0; +} +td.gutter pre { + overflow-x: visible; +} +td span { + line-height: $margin-s-2; +} +pre { + margin: 0; + overflow-x: auto; +} |
