PluginProbe ʕ •ᴥ•ʔ
Syntax-highlighting Code Block (with Server-side Rendering) / trunk
Syntax-highlighting Code Block (with Server-side Rendering) vtrunk
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 1 month ago inc 1 month ago vendor 1 month ago LICENSE 6 years ago editor-styles.css 3 years ago language-names.php 5 years ago readme.txt 1 month ago style.css 3 years ago syntax-highlighting-code-block.php 1 month ago uninstall.php 2 years ago
style.css
81 lines
1 .wp-block-code {
2 border: 0;
3 padding: 0;
4 -webkit-text-size-adjust: 100%;
5 text-size-adjust: 100%;
6 }
7
8 .wp-block-code > span {
9 display: block;
10 overflow: auto;
11 }
12
13 .shcb-language {
14 border: 0;
15 clip: rect(1px, 1px, 1px, 1px);
16 -webkit-clip-path: inset(50%);
17 clip-path: inset(50%);
18 height: 1px;
19 margin: -1px;
20 overflow: hidden;
21 padding: 0;
22 position: absolute;
23 width: 1px;
24 word-wrap: normal;
25 word-break: normal;
26 }
27
28 .hljs {
29 box-sizing: border-box;
30 }
31
32 .hljs.shcb-code-table {
33 display: table;
34 width: 100%;
35 }
36
37 .hljs.shcb-code-table > .shcb-loc {
38 color: inherit;
39 display: table-row;
40 width: 100%;
41 }
42
43 .hljs.shcb-code-table .shcb-loc > span {
44 display: table-cell;
45 }
46
47 .wp-block-code code.hljs:not(.shcb-wrap-lines) {
48 white-space: pre;
49 }
50
51 .wp-block-code code.hljs.shcb-wrap-lines {
52 white-space: pre-wrap;
53 }
54
55 .hljs.shcb-line-numbers {
56 border-spacing: 0;
57 counter-reset: line;
58 }
59
60 .hljs.shcb-line-numbers > .shcb-loc {
61 counter-increment: line;
62 }
63
64 .hljs.shcb-line-numbers .shcb-loc > span {
65 padding-left: 0.75em;
66 }
67
68 .hljs.shcb-line-numbers .shcb-loc::before {
69 border-right: 1px solid #ddd;
70 content: counter(line);
71 display: table-cell;
72 padding: 0 0.75em;
73 text-align: right;
74 -webkit-user-select: none;
75 -moz-user-select: none;
76 -ms-user-select: none;
77 user-select: none;
78 white-space: nowrap;
79 width: 1%;
80 }
81