Skip to content

Commit 05ae149

Browse files
committed
Adjust styling of jai code blocks to disallow scrollbars (both vertical and horizontal).
1 parent b21560f commit 05ae149

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

common/common.scss

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,21 @@
1-
/* We do not nest classes to make it easier to include this file without pre-compilation in test-syntax-highlight.html */
1+
/* We do not use SASS features here to make it easier to include this file without pre-compilation in _dev/test-syntax-highlight.html */
22

33
.lang-jai .hljs-keyword { color: #8a2be2; }
44
.lang-jai .hljs-literal { color: blue; }
55
.lang-jai .hljs-comment { color: olive; }
66
.lang-jai .hljs-built_in, .hljs-type { color: teal; text-decoration: underline; }
77
.lang-jai .hljs-tag { color: darkgray; font-weight: bold; }
8-
.lang-jai .hljs-meta { color: darkorange; }
8+
.lang-jai .hljs-meta { color: darkorange; }
9+
10+
11+
.lang-jai.hljs {
12+
/* Disable max-height as to avoid vertical scrollbar; always show code blocks in full. */
13+
max-height: none;
14+
15+
/* Enable word wrapping in jai code as to avoid horizontal scrollbar. */
16+
overflow-x: auto;
17+
white-space: pre-wrap;
18+
19+
/* Fit more code horizontally into code blocks. */
20+
font-size: 0.8rem;
21+
}

0 commit comments

Comments
 (0)