| @@ -15,12 +15,13 @@ | ||
| 15 | 15 | .wp-block-kevinbatdorf-code-block-pro:not(.code-block-pro-editor) pre { |
| 16 | 16 | border: 0; |
| 17 | 17 | overflow-wrap:normal; |
| 18 | 18 | padding: 16px; |
| 19 | + padding-right: 0; | |
| 19 | 20 | font-family: inherit; |
| 20 | 21 | @apply overflow-auto text-inherit text-left m-0 whitespace-pre bg-none border-none border-0 rounded-none shadow-none; |
| 21 | 22 | } |
| 22 | -.wp-block-kevinbatdorf-code-block-pro.padding-disabled pre { | |
| 23 | +.wp-block-kevinbatdorf-code-block-pro.padding-disabled:not(.code-block-pro-editor) pre { | |
| 23 | 24 | @apply p-0; |
| 24 | 25 | } |
| 25 | 26 | .wp-block-kevinbatdorf-code-block-pro.padding-bottom-disabled pre { |
| 26 | 27 | @apply pb-0; |
| @@ -38,9 +39,17 @@ | ||
| 38 | 39 | .wp-block-kevinbatdorf-code-block-pro.cbp-has-line-numbers:not(.code-block-pro-editor) pre code { |
| 39 | 40 | counter-reset: step; |
| 40 | 41 | counter-increment: step calc(var(--cbp-line-number-start, 1) - 1); |
| 41 | 42 | } |
| 42 | -.wp-block-kevinbatdorf-code-block-pro.cbp-has-line-numbers:not(.code-block-pro-editor) pre code .line::before { | |
| 43 | + | |
| 44 | +.wp-block-kevinbatdorf-code-block-pro pre code .line { | |
| 45 | + @apply relative; | |
| 46 | +} | |
| 47 | +.wp-block-kevinbatdorf-code-block-pro:not(.code-block-pro-editor) pre code .line::before { | |
| 48 | + content: ''; | |
| 49 | + @apply inline-block; | |
| 50 | +} | |
| 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 { | |
| 43 | 52 | @apply inline-block text-right opacity-50 transition-opacity duration-500; |
| 44 | 53 | margin-right: 12px; |
| 45 | 54 | content: counter(step); |
| 46 | 55 | color: var(--cbp-line-number-color, #999); |
| @@ -47,13 +56,37 @@ | ||
| 47 | 56 | width: var(--cbp-line-number-width, auto); |
| 48 | 57 | user-select: none; |
| 49 | 58 | counter-increment: step; |
| 50 | 59 | } |
| 51 | -.wp-block-kevinbatdorf-code-block-pro.cbp-has-line-numbers:not(.code-block-pro-editor) pre code .line:hover::before { | |
| 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 { | |
| 52 | 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; | |
| 53 | 70 | } |
| 71 | +.wp-block-kevinbatdorf-code-block-pro:not(.code-block-pro-editor).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 | +} | |
| 54 | 81 | .wp-block-kevinbatdorf-code-block-pro:not(.code-block-pro-editor) pre * { |
| 55 | 82 | font-family: inherit; |
| 83 | +} | |
| 84 | +.cbp-see-more-simple-btn-hover { | |
| 85 | + @apply transition-none; | |
| 86 | +} | |
| 87 | +.cbp-see-more-simple-btn-hover:hover { | |
| 88 | + box-shadow: inset 0 0 100px 100px rgba(255, 255, 255, 0.1); | |
| 56 | 89 | } |
| 57 | 90 | .code-block-pro-copy-button { |
| 58 | 91 | border: 0; |
| 59 | 92 | background: none; |