PluginProbe
Code Block Pro – Beautiful Syntax Highlighting / 1.7.0
Code Block Pro – Beautiful Syntax Highlighting v1.7.0
1.27.1 1.27.2 1.27.3 1.27.4 1.27.5 1.27.6 1.27.7 1.28.0 1.3.0 1.4.0 1.5.0 1.5.1 1.5.2 1.6.0 1.7.0 1.8.0 1.9.0 1.9.1 1.9.2 1.9.3 trunk 1.1.0 1.10.0 1.11.0 1.11.1 All 63 releases
code-block-pro / src / front / style.css

style.css in Code Block Pro – Beautiful Syntax Highlighting 1.7.0, at src/front/style.css

82 lines 2.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /*! purgecss start ignore */
2 .wp-block-kevinbatdorf-code-block-pro {
3 font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; /* no !important */
4 direction: ltr;
5 @apply relative box-border;
6 }
7 .wp-block-kevinbatdorf-code-block-pro * {
8 @apply box-border;
9 }
10 .wp-block-kevinbatdorf-code-block-pro pre,
11 .wp-block-kevinbatdorf-code-block-pro pre * {
12 font-size: inherit;
13 line-height: inherit;
14 }
15 .wp-block-kevinbatdorf-code-block-pro:not(.code-block-pro-editor) pre {
16 border: 0;
17 overflow-wrap:normal;
18 padding: 16px;
19 font-family: inherit;
20 @apply overflow-auto text-inherit text-left m-0 whitespace-pre bg-none border-none border-0 rounded-none shadow-none;
21 }
22 .wp-block-kevinbatdorf-code-block-pro.padding-disabled pre {
23 padding: 0;
24 }
25 .wp-block-kevinbatdorf-code-block-pro:not(.code-block-pro-editor) pre code {
26 border: 0;
27 background: none;
28 overflow-wrap:normal;
29 font-family: inherit;
30 @apply block w-full m-0 p-0 bg-transparent text-inherit text-left whitespace-pre border-none border-0 rounded-none shadow-none;
31 }
32 .wp-block-kevinbatdorf-code-block-pro:not(.code-block-pro-editor) pre code .line {
33 @apply inline-block w-full;
34 }
35 .wp-block-kevinbatdorf-code-block-pro.cbp-has-line-numbers:not(.code-block-pro-editor) pre code {
36 counter-reset: step;
37 counter-increment: step calc(var(--cbp-line-number-start, 1) - 1);
38 }
39 .wp-block-kevinbatdorf-code-block-pro.cbp-has-line-numbers:not(.code-block-pro-editor) pre code .line::before {
40 @apply inline-block text-right opacity-30 transition-opacity duration-500;
41 margin-right: 12px;
42 content: counter(step);
43 color: var(--cbp-line-number-color, #999);
44 width: var(--cbp-line-number-width, auto);
45 user-select: none;
46 counter-increment: step;
47 }
48 .wp-block-kevinbatdorf-code-block-pro.cbp-has-line-numbers:not(.code-block-pro-editor) pre code .line:hover::before {
49 @apply opacity-70;
50 }
51 .wp-block-kevinbatdorf-code-block-pro:not(.code-block-pro-editor) pre * {
52 font-family: inherit;
53 }
54 .code-block-pro-copy-button {
55 border: 0;
56 background: none;
57 padding: 6px;
58 @apply absolute top-0 right-0 left-auto bg-transparent border-none border-0 cursor-pointer opacity-10 focus:opacity-40 transition-opacity duration-200 ease-in-out leading-none z-10;
59 }
60 .wp-block-kevinbatdorf-code-block-pro.padding-disabled .code-block-pro-copy-button {
61 padding: 0;
62 }
63 .wp-block-kevinbatdorf-code-block-pro:hover .code-block-pro-copy-button {
64 @apply opacity-40;
65 }
66 /* .wp-block-kevinbatdorf-code-block-pro .code-block-pro-copy-button:active, */
67 .wp-block-kevinbatdorf-code-block-pro .code-block-pro-copy-button:hover {
68 @apply opacity-90;
69 }
70 .code-block-pro-copy-button .without-check {
71 @apply block;
72 }
73 .code-block-pro-copy-button .with-check {
74 @apply hidden;
75 }
76 .code-block-pro-copy-button.copying .without-check {
77 @apply hidden;
78 }
79 .code-block-pro-copy-button.copying .with-check {
80 @apply block;
81 }
82