PluginProbe
Code Block Pro – Beautiful Syntax Highlighting / 1.2.4
Code Block Pro – Beautiful Syntax Highlighting v1.2.4
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
← All changes | src/front/style.css +9 -92 1.11.0 → 1.2.4 View file →
@@ -1,103 +1,23 @@
1 1 /*! purgecss start ignore */
2 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 - padding-right: 0;
20 - font-family: inherit;
21 - @apply overflow-auto text-inherit text-left m-0 whitespace-pre bg-none border-none border-0 rounded-none shadow-none;
22 -}
23 -.wp-block-kevinbatdorf-code-block-pro.padding-disabled:not(.code-block-pro-editor) pre {
24 - @apply p-0;
25 -}
26 -.wp-block-kevinbatdorf-code-block-pro.padding-bottom-disabled pre {
27 - @apply pb-0;
28 -}
29 -.wp-block-kevinbatdorf-code-block-pro:not(.code-block-pro-editor) pre code {
30 - border: 0;
31 - background: none;
32 - overflow-wrap:normal;
33 - font-family: inherit;
34 - @apply block w-full m-0 p-0 bg-transparent text-inherit text-left whitespace-pre border-none border-0 rounded-none shadow-none;
35 -}
36 -.wp-block-kevinbatdorf-code-block-pro:not(.code-block-pro-editor) pre code .line {
37 - @apply inline-block w-full;
38 -}
39 -.wp-block-kevinbatdorf-code-block-pro.cbp-has-line-numbers:not(.code-block-pro-editor) pre code {
40 - counter-reset: step;
41 - counter-increment: step calc(var(--cbp-line-number-start, 1) - 1);
42 -}
43 -
44 -.wp-block-kevinbatdorf-code-block-pro pre code .line {
3 + direction: ltr !important;
45 4 @apply relative;
46 5 }
47 -.wp-block-kevinbatdorf-code-block-pro:not(.code-block-pro-editor) pre code .line::before {
48 - content: '';
49 - @apply inline-block;
6 +.wp-block-kevinbatdorf-code-block-pro pre {
7 + @apply overflow-auto p-6 text-inherit m-0;
50 8 }
51 -.wp-block-kevinbatdorf-code-block-pro.cbp-has-line-numbers:not(.code-block-pro-editor) pre code .line:not(.cbp-line-number-disabled)::before {
52 - @apply inline-block text-right opacity-50 transition-opacity duration-500;
53 - margin-right: 12px;
54 - content: counter(step);
55 - color: var(--cbp-line-number-color, #999);
56 - width: var(--cbp-line-number-width, auto);
57 - user-select: none;
58 - counter-increment: step;
9 +.wp-block-kevinbatdorf-code-block-pro pre code {
10 + @apply m-0 p-0 bg-transparent text-inherit text-left;
11 + font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
12 + monospace;
59 13 }
60 -/* Temporary removed until I can make this an option */
61 -/* .wp-block-kevinbatdorf-code-block-pro.cbp-has-line-numbers:not(.code-block-pro-editor) pre code .line:hover::before {
62 - @apply opacity-100;
63 -} */
64 -.wp-block-kevinbatdorf-code-block-pro pre .line.cbp-line-highlight .cbp-line-highlighter {
65 - background: var(--cbp-line-highlight-color, rgb(14 165 233/.2));
66 - width: 100%;
67 - min-width: calc(var(--cbp-block-width, 100%));
68 - left: -16px;
69 - @apply absolute top-0 h-full;
70 -}
71 -.wp-block-kevinbatdorf-code-block-pro.padding-disabled pre .line.cbp-line-highlight::after {
72 - @apply left-0 w-full;
73 -}
74 -.wp-block-kevinbatdorf-code-block-pro.cbp-blur-enabled pre .line:not(.cbp-no-blur) {
75 - filter: blur(1px);
76 - @apply opacity-40 transition-all duration-200;
77 -}
78 -.wp-block-kevinbatdorf-code-block-pro.cbp-blur-enabled.cbp-unblur-on-hover:hover pre .line:not(.cbp-no-blur) {
79 - @apply blur-none opacity-100;
80 -}
81 -.wp-block-kevinbatdorf-code-block-pro:not(.code-block-pro-editor) pre * {
82 - font-family: inherit;
83 -}
84 14 .code-block-pro-copy-button {
85 - border: 0;
86 - background: none;
87 - padding: 6px;
88 - @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;
15 + @apply absolute top-0 right-0 left-auto bg-transparent p-2 border-none cursor-pointer opacity-30 focus:opacity-100 transition-opacity duration-200 ease-in-out leading-none;
89 16 }
90 -.wp-block-kevinbatdorf-code-block-pro.padding-disabled .code-block-pro-copy-button {
91 - padding: 0;
92 -}
93 17 .wp-block-kevinbatdorf-code-block-pro:hover .code-block-pro-copy-button {
94 - @apply opacity-50;
18 + @apply opacity-100;
95 19 }
96 -/* .wp-block-kevinbatdorf-code-block-pro .code-block-pro-copy-button:active, */
97 -.wp-block-kevinbatdorf-code-block-pro .code-block-pro-copy-button:hover {
98 - @apply opacity-90;
99 -}
100 20 .code-block-pro-copy-button .without-check {
101 21 @apply block;
102 22 }
103 23 .code-block-pro-copy-button .with-check {
@@ -107,8 +27,5 @@
107 27 @apply hidden;
108 28 }
109 29 .code-block-pro-copy-button.copying .with-check {
110 30 @apply block;
111 -}
112 -.cbp-footer-link {
113 - @apply hover:underline;
114 31 }