| 1 |
.code-block-pro-editor { |
| 2 |
--tw-ring-inset: var(--tw-empty, /*!*/ /*!*/); |
| 3 |
--tw-ring-offset-width: 0px; |
| 4 |
--tw-ring-offset-color: transparent; |
| 5 |
--tw-ring-color: var(--wp-admin-theme-color); |
| 6 |
--tw-translate-x: 0; |
| 7 |
--tw-translate-y: 0; |
| 8 |
--tw-rotate: 0; |
| 9 |
--tw-skew-x: 0; |
| 10 |
--tw-skew-y: 0; |
| 11 |
--tw-scale-x: 1; |
| 12 |
--tw-scale-y: 1; |
| 13 |
} |
| 14 |
.code-block-pro-editor *, |
| 15 |
.code-block-pro-editor *:after, |
| 16 |
.code-block-pro-editor *:before { |
| 17 |
box-sizing: border-box; |
| 18 |
border: 0 solid #e5e7eb; |
| 19 |
} |
| 20 |
@tailwind base; |
| 21 |
@tailwind components; |
| 22 |
@tailwind utilities; |
| 23 |
/* Add more styles here specific to the editor only */ |
| 24 |
.code-block-pro-editor .npm__react-simple-code-editor__textarea { |
| 25 |
@apply shadow-none; |
| 26 |
} |
| 27 |
.code-block-pro-editor pre, |
| 28 |
.code-block-pro-editor pre * { |
| 29 |
font-family: inherit !important; |
| 30 |
font-size: inherit !important; |
| 31 |
line-height: inherit !important; |
| 32 |
} |
| 33 |
.code-block-pro-editor textarea, |
| 34 |
.code-block-pro-editor pre { |
| 35 |
@apply m-0 text-left; |
| 36 |
direction: ltr !important; |
| 37 |
} |
| 38 |
.code-block-pro-editor.cbp-has-line-numbers pre { |
| 39 |
counter-reset: step; |
| 40 |
counter-increment: step calc(var(--cbp-line-number-start, 1) - 1); |
| 41 |
} |
| 42 |
.code-block-pro-editor.cbp-has-line-numbers pre .line:not(.cbp-line-number-disabled)::before { |
| 43 |
@apply inline-block text-right opacity-50; |
| 44 |
margin-right: 12px; |
| 45 |
content: counter(step); |
| 46 |
color: var(--cbp-line-number-color, #999); |
| 47 |
width: var(--cbp-line-number-width, auto); |
| 48 |
user-select: none; |
| 49 |
counter-increment: step; |
| 50 |
position: absolute; |
| 51 |
left: 18px; |
| 52 |
} |
| 53 |
|
| 54 |
.code-block-pro-editor.cbp-has-line-numbers.padding-disabled pre .line:not(.cbp-line-number-disabled)::before { |
| 55 |
@apply static; |
| 56 |
} |
| 57 |
|
| 58 |
/* Will make sure the line numbers are full width before calculating */ |
| 59 |
.code-block-pro-editor.cbp-has-line-numbers pre .line.cbp-line-number-width-forced::before { |
| 60 |
width: auto !important; |
| 61 |
position: initial; |
| 62 |
} |
| 63 |
.code-block-pro-editor .cbp-footer-link { |
| 64 |
@apply pointer-events-none no-underline; |
| 65 |
} |
| 66 |
|
| 67 |
.code-block-pro-editor code { |
| 68 |
font-family: inherit !important; |
| 69 |
@apply m-0 p-0 text-inherit bg-transparent; |
| 70 |
} |
| 71 |
@font-face { |
| 72 |
font-family: 'Code-Pro-Fira-Code'; |
| 73 |
src: url('../fonts/Code-Pro-Fira-Code.woff2') format('woff2'); |
| 74 |
} |
| 75 |
@font-face { |
| 76 |
font-family: 'Code-Pro-JetBrains-Mono'; |
| 77 |
src: url('../fonts/Code-Pro-JetBrains-Mono.woff2') format('woff2'); |
| 78 |
} |
| 79 |
|