summaryrefslogtreecommitdiff
path: root/p-code-box.css
diff options
context:
space:
mode:
Diffstat (limited to 'p-code-box.css')
-rw-r--r--p-code-box.css24
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;
+}