Improve alignement
This commit is contained in:
parent
8fe6d54cac
commit
ae44358326
2 changed files with 4 additions and 7 deletions
|
@ -3,6 +3,7 @@ addCopyButtons(navigator.clipboard)
|
|||
function addCopyButtons(clipboard) {
|
||||
document.querySelectorAll('pre > code').forEach(function (codeBlock) {
|
||||
const button = document.createElement('a')
|
||||
button.title = "Copy"
|
||||
button.className = 'copy-code-button'
|
||||
button.innerHTML = "<i class='fa-regular fa-copy'></i>"
|
||||
|
||||
|
|
|
@ -53,13 +53,9 @@ pre {
|
|||
.copy-code-button {
|
||||
display: flex;
|
||||
justify-content: right;
|
||||
margin-right: 0.2em;
|
||||
margin-bottom: -1.2em;
|
||||
font-size: 20pt;
|
||||
}
|
||||
|
||||
.highlight pre {
|
||||
margin: 0;
|
||||
margin-right: 0.75em;
|
||||
margin-bottom: -1.75em;
|
||||
font-size: 1.25em;
|
||||
}
|
||||
|
||||
html[data-theme='dark'] {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue