PluginProbe ʕ •ᴥ•ʔ
Syntax-highlighting Code Block (with Server-side Rendering) / 1.2.3
Syntax-highlighting Code Block (with Server-side Rendering) v1.2.3
trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 1.3.1 1.4.0 1.5.0 1.5.1 1.5.2
syntax-highlighting-code-block / style.css
syntax-highlighting-code-block Last commit date
build 5 years ago vendor 5 years ago LICENSE 6 years ago editor-styles.css 6 years ago readme.txt 5 years ago style.css 6 years ago syntax-highlighting-code-block.php 5 years ago
style.css
63 lines
1 .wp-block-code {
2 border: 0;
3 padding: 0;
4 }
5
6 .wp-block-code > div {
7 overflow: auto;
8 }
9
10 .hljs {
11 box-sizing: border-box;
12 }
13
14 .hljs.shcb-code-table {
15 display: table;
16 width: 100%;
17 }
18
19 .hljs.shcb-code-table > .shcb-loc {
20 color: inherit;
21 display: table-row;
22 width: 100%;
23 }
24
25 .hljs.shcb-code-table .shcb-loc > span {
26 display: table-cell;
27 }
28
29 .wp-block-code code.hljs:not(.shcb-wrap-lines) {
30 white-space: pre;
31 }
32
33 .wp-block-code code.hljs.shcb-wrap-lines {
34 white-space: pre-wrap;
35 }
36
37 .hljs.shcb-line-numbers {
38 border-spacing: 0;
39 counter-reset: line;
40 }
41
42 .hljs.shcb-line-numbers > .shcb-loc {
43 counter-increment: line;
44 }
45
46 .hljs.shcb-line-numbers .shcb-loc > span {
47 padding-left: 0.75em;
48 }
49
50 .hljs.shcb-line-numbers .shcb-loc::before {
51 border-right: 1px solid #ddd;
52 content: counter(line);
53 display: table-cell;
54 padding: 0 0.75em;
55 text-align: right;
56 -webkit-user-select: none;
57 -moz-user-select: none;
58 -ms-user-select: none;
59 user-select: none;
60 white-space: nowrap;
61 width: 1%;
62 }
63