.editor-styles-wrapper table th,
.editor-styles-wrapper table td {
border-color: #fff !important;
color: #fff !important;
}
.my-codeblock-wrap {
position: relative;
margin-bottom: 2em; }
.my-codeblock-label {
position: absolute;
top: 0.3em;
left: 0.2em;
background: #444;
color: #fff;
font-size: 0.8em;
font-family: 'JetBrains Mono', 'D2Coding', 'Menlo', 'Consolas', 'Courier New', monospace;
padding: 0.15em 0.9em;
border-radius: 6px 6px 6px 0;
z-index: 2;
pointer-events: none;
opacity: 0.95; box-shadow: 0 2px 6px rgba(0,0,0,0.07);
}
.my-codeblock-wrap pre {
padding-top: 2em !important; border-radius: 8px;
overflow-x: auto;
position: relative;
} pre code {
white-space: pre-wrap;
} .wp-block-code code {
background: #2d2d2d !important;
color: #ccc !important;
font-family: 'JetBrains Mono', 'D2Coding', 'Menlo', 'Consolas', 'Courier New', monospace !important;
font-size: 0.8em !important;
border-radius: 5px !important;
padding: 1.2em 1em !important;
line-height: 1.2 !important;
box-sizing: border-box;
tab-size: 4;
overflow-x: auto;
word-break: normal;
word-wrap: normal;
margin-bottom: 1.5em;
min-width: 1px;
white-space: pre-wrap;
}.copy-code-button {
position: absolute;
top: 12px;
right: 12px;
background: rgba(255, 255, 255, 0.9);
border: 1px solid rgba(0, 0, 0, 0.1);
border-radius: 6px;
padding: 8px;
cursor: pointer;
transition: all 0.2s ease;
z-index: 100;
display: flex;
align-items: center;
justify-content: center;
backdrop-filter: blur(4px);
}
.copy-code-button:hover {
background: rgba(255, 255, 255, 1);
border-color: rgba(0, 0, 0, 0.2);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
transform: translateY(-1px);
}
.copy-code-button:active {
transform: translateY(0);
}
.copy-code-button.copied {
background: rgba(34, 197, 94, 0.9);
border-color: rgba(34, 197, 94, 0.3);
}
.copy-button-content {
display: flex;
align-items: center;
justify-content: center;
width: 16px;
height: 16px;
}
.copy-code-button svg {
color: #374151;
transition: color 0.2s ease;
}
.copy-code-button:hover svg {
color: #111827;
}
.copy-code-button.copied svg {
color: white;
} .wp-block-code {
position: relative;
}
@media (prefers-color-scheme: dark) {
.copy-code-button {
background: rgba(0, 0, 0, 0.8);
border-color: rgba(255, 255, 255, 0.1);
}
.copy-code-button:hover {
background: rgba(0, 0, 0, 0.9);
border-color: rgba(255, 255, 255, 0.2);
}
.copy-code-button svg {
color: #f3f4f6;
}
.copy-code-button:hover svg {
color: #ffffff;
}
} @media (max-width: 768px) {
.copy-code-button {
top: 8px;
right: 8px;
padding: 6px;
}
.copy-button-content {
width: 14px;
height: 14px;
}
.copy-code-button svg {
width: 14px;
height: 14px;
}
} pre .copy-code-button {
background: rgba(0, 0, 0, 0.7);
border-color: rgba(255, 255, 255, 0.2);
}
pre .copy-code-button:hover {
background: rgba(0, 0, 0, 0.85);
}
pre .copy-code-button svg {
color: #e5e7eb;
} @keyframes copySuccess {
0% { transform: scale(1); }
50% { transform: scale(1.1); }
100% { transform: scale(1); }
}
.copy-code-button.copied {
animation: copySuccess 0.3s ease;
}