code: restore end border #1022
Some checks are pending
docs-build-deployment / Run deploy (push) Waiting to run
docs-build / Run build (push) Waiting to run

This commit is contained in:
Sören Weber 2025-02-16 01:46:09 +01:00
parent 52fcb55f86
commit de59e6700a
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
3 changed files with 7 additions and 6 deletions

View file

@ -53,6 +53,9 @@ pre:not(.mermaid) {
#R-body .inline-copy-to-clipboard-button + code.copy-to-clipboard-code,
#R-body code.copy-to-clipboard-code:has(+ .inline-copy-to-clipboard-button) {
border-end-end-radius: 2px;
border-start-end-radius: 2px;
border-inline-end-width: 1px;
margin-inline-end: 0;
}

View file

@ -950,17 +950,15 @@ span.copy-to-clipboard {
position: relative;
}
code.copy-to-clipboard-code {
border-end-end-radius: 0;
border-start-end-radius: 0;
border-inline-end-width: 0;
}
/* #1022 FF has issues if we set span.copy-to-clipboard to display: block;
so this is not an option; and we have to flip the elements ourself in the
JS part of the code; this will fix FF for LTR but RTL is still broken;
so at least it looks fine for most of the user base */
.inline-copy-to-clipboard-button + code.copy-to-clipboard-code,
code.copy-to-clipboard-code:has(+ .inline-copy-to-clipboard-button) {
border-end-end-radius: 0;
border-start-end-radius: 0;
border-inline-end-width: 0;
margin-inline-end: calc(22px + var(--bpx1) * 2px);
}

View file

@ -1 +1 @@
7.3.2+c45a29c8fba29ab33cda6a2f9b9ba1e95647575f
7.3.2+52fcb55f86db03a6d41139167165505e62cf5364