mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-02-21 11:10:07 +00:00
code: restore end border #1022
This commit is contained in:
parent
52fcb55f86
commit
de59e6700a
3 changed files with 7 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
7.3.2+c45a29c8fba29ab33cda6a2f9b9ba1e95647575f
|
||||
7.3.2+52fcb55f86db03a6d41139167165505e62cf5364
|
Loading…
Add table
Reference in a new issue