.hljs { color: #e9e9f4; background: #28293629; border-radius: var(--border-radius-1); border: 1px solid var(--blur-border); font-size: 15px; word-wrap: break-word; white-space: pre-wrap; } /* style for hljs copy */ .hljs-copy-wrapper { position: relative; overflow: hidden; } .hljs-copy-wrapper:hover .hljs-copy-button, .hljs-copy-button:focus { transform: translateX(0); } .hljs-copy-button { position: absolute; transform: translateX(calc(100% + 1.125em)); top: 1em; right: 1em; width: 2rem; height: 2rem; text-indent: -9999px; color: #fff; border-radius: 0.25rem; border: 1px solid #ffffff22; background-color: #2d2b57; background-image: url('data:image/svg+xml;utf-8,'); background-repeat: no-repeat; background-position: center; transition: background-color 200ms ease, transform 200ms ease-out; } .hljs-copy-button:hover { border-color: #ffffff44; } .hljs-copy-button:active { border-color: #ffffff66; } .hljs-copy-button[data-copied="true"] { text-indent: 0; width: auto; background-image: none; } .hljs-copy-alert { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; } @media (prefers-reduced-motion) { .hljs-copy-button { transition: none; } }