✨ add copy-code-button plugin
This commit is contained in:
parent
741ac4b428
commit
b94ef139ca
@ -26,7 +26,8 @@
|
|||||||
"search",
|
"search",
|
||||||
"search-pro",
|
"search-pro",
|
||||||
"disqus",
|
"disqus",
|
||||||
"page-footer-ex"
|
"page-footer-ex",
|
||||||
|
"copy-code-button"
|
||||||
],
|
],
|
||||||
"pluginsConfig": {
|
"pluginsConfig": {
|
||||||
"page-footer-ex": {
|
"page-footer-ex": {
|
||||||
|
@ -16,3 +16,9 @@ li.chapter {
|
|||||||
.book-body {
|
.book-body {
|
||||||
font-size: 1.5rem !important;
|
font-size: 1.5rem !important;
|
||||||
}
|
}
|
||||||
|
.copy-code-button {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
pre:hover > .copy-code-button {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user