mirror of
https://github.com/Mabbs/mabbs.github.io
synced 2025-09-10 04:15:23 +02:00
Update 5 files
- /_config.yml - /assets/css/style.scss - /assets/js/main.js - /_layouts/default.html - /_layouts/post.html
This commit is contained in:
@@ -99,4 +99,19 @@ div.highlight button:active,
|
||||
div.highlight button:focus,
|
||||
div.highlight button:hover {
|
||||
opacity: 1
|
||||
}
|
||||
|
||||
table.rouge-table {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
td.rouge-gutter,
|
||||
td.rouge-code {
|
||||
padding: 0;
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
pre.lineno {
|
||||
padding: 0 10px 0 0;
|
||||
border: none;
|
||||
}
|
@@ -88,7 +88,7 @@ codeBlocks.forEach(function (codeBlock) {
|
||||
codeBlock.append(copyButton);
|
||||
|
||||
copyButton.addEventListener('click', function () {
|
||||
var code = codeBlock.querySelector('pre code').innerText.trim();
|
||||
var code = codeBlock.querySelector('.rouge-code pre').innerText.trim();
|
||||
window.navigator.clipboard.writeText(code)
|
||||
.then(() => {
|
||||
copyButton.innerText = '✅';
|
||||
|
Reference in New Issue
Block a user