Improve alignement

This commit is contained in:
BernatBC 2024-09-06 19:00:28 +02:00
parent 8fe6d54cac
commit ae44358326
2 changed files with 4 additions and 7 deletions

View file

@ -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>"

View file

@ -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'] {