diff options
author | Valentin Popov <valentineus@gmail.com> | 2018-01-06 15:12:53 +0300 |
---|---|---|
committer | Valentin Popov <valentineus@gmail.com> | 2018-01-06 15:12:53 +0300 |
commit | db5494dff0b2b8b344f37a2fa1d2f8b9c450098f (patch) | |
tree | e4fc2d8c97abe0bd28a0527de6696025f6699b0d /_sass/_code.scss | |
download | popov.link-db5494dff0b2b8b344f37a2fa1d2f8b9c450098f.tar.xz popov.link-db5494dff0b2b8b344f37a2fa1d2f8b9c450098f.zip |
Initial commit
Diffstat (limited to '_sass/_code.scss')
-rw-r--r-- | _sass/_code.scss | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/_sass/_code.scss b/_sass/_code.scss new file mode 100644 index 0000000..1aab580 --- /dev/null +++ b/_sass/_code.scss @@ -0,0 +1,44 @@ +pre, code { + font-family: $monospaced; +} + +code { + background-color: $grey-3; + border-radius: 3px; + color: $code-color; + font-size: 85%; + padding: .25em .5em; +} + +pre { + margin: 0 0 1rem; +} + +pre code { + background-color: transparent; + color: inherit; + font-size: 100%; + padding: 0; +} + +.highlight { + background-color: $grey-3; + border-radius: 3px; + line-height: 1.4; + margin: 0 0 1rem; + padding: 1rem; + + pre { + margin-bottom: 0; + overflow-x: auto; + } + + .lineno { + color: $default-tint; + display: inline-block; + padding: 0 .75rem 0 .25rem; + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; + } +} |