summaryrefslogtreecommitdiff
path: root/sass/_code.scss
diff options
context:
space:
mode:
Diffstat (limited to 'sass/_code.scss')
-rw-r--r--sass/_code.scss38
1 files changed, 38 insertions, 0 deletions
diff --git a/sass/_code.scss b/sass/_code.scss
new file mode 100644
index 0000000..bc83892
--- /dev/null
+++ b/sass/_code.scss
@@ -0,0 +1,38 @@
+code,
+pre {
+ font-family: var(--font-mono);
+}
+
+.prose code:not(pre code) {
+ padding: 0.1em 0.3em;
+ border: var(--rule);
+ background: var(--color-surface);
+ font-size: 0.88em;
+}
+
+.prose pre {
+ width: 100%;
+ max-width: 100%;
+ overflow-x: auto;
+ padding: 1rem 1.15rem;
+ border: var(--rule);
+ background: var(--color-surface);
+ font-size: 0.88rem;
+ line-height: 1.65;
+}
+
+.giallo-l {
+ display: inline-block;
+ min-height: 1lh;
+ width: 100%;
+}
+
+.giallo-ln {
+ display: inline-block;
+ min-width: 3ch;
+ margin-right: 0.4em;
+ padding: 0.4em;
+ opacity: 0.8;
+ text-align: right;
+ user-select: none;
+}