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) {
|
function addCopyButtons(clipboard) {
|
||||||
document.querySelectorAll('pre > code').forEach(function (codeBlock) {
|
document.querySelectorAll('pre > code').forEach(function (codeBlock) {
|
||||||
const button = document.createElement('a')
|
const button = document.createElement('a')
|
||||||
|
button.title = "Copy"
|
||||||
button.className = 'copy-code-button'
|
button.className = 'copy-code-button'
|
||||||
button.innerHTML = "<i class='fa-regular fa-copy'></i>"
|
button.innerHTML = "<i class='fa-regular fa-copy'></i>"
|
||||||
|
|
||||||
|
|
|
@ -53,13 +53,9 @@ pre {
|
||||||
.copy-code-button {
|
.copy-code-button {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: right;
|
justify-content: right;
|
||||||
margin-right: 0.2em;
|
margin-right: 0.75em;
|
||||||
margin-bottom: -1.2em;
|
margin-bottom: -1.75em;
|
||||||
font-size: 20pt;
|
font-size: 1.25em;
|
||||||
}
|
|
||||||
|
|
||||||
.highlight pre {
|
|
||||||
margin: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
html[data-theme='dark'] {
|
html[data-theme='dark'] {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue