diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-08-02 15:27:30 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-08-02 15:27:30 +0200 |
commit | 7e75bb936cf5b2bd2fa3344e13b6c486c8ecc8a3 (patch) | |
tree | 0d993b051fd0f6fcebed24bd972847cc714ba993 /p-code-box.css | |
parent | 827139821d3f043db25322b9dd91a7314d46ab01 (diff) |
Add support for setting CLI code paragraph as box, similar to prev0.12.0
Diffstat (limited to 'p-code-box.css')
-rw-r--r-- | p-code-box.css | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/p-code-box.css b/p-code-box.css new file mode 100644 index 0000000..5505d23 --- /dev/null +++ b/p-code-box.css @@ -0,0 +1,24 @@ +/* file : p-code-box.css + * copyright : Copyright (c) 2014-2019 Code Synthesis Ltd + * license : MIT; see accompanying LICENSE file + */ + +/* This is the pre-like paragraph produced by CLI for code-only fragments. */ + +/* Note: see also pre-box.css. */ + +.code +{ + background-color: rgba(0, 0, 0, 0.05); + border-radius: 0.2em; + padding: .8em .4em .8em .4em; + margin: 2em -.4em 2em -.4em; /* Use margins of #content. */ +} + +/* Undo code-box.css inside .code. */ +.code code +{ + background-color: transparent; + border-radius: 0; + padding: 0; +} |