add copy-code-button plugin

This commit is contained in:
nick 2019-03-04 17:02:14 +08:00
parent 741ac4b428
commit b94ef139ca
2 changed files with 8 additions and 1 deletions

View File

@ -26,7 +26,8 @@
"search",
"search-pro",
"disqus",
"page-footer-ex"
"page-footer-ex",
"copy-code-button"
],
"pluginsConfig": {
"page-footer-ex": {

View File

@ -16,3 +16,9 @@ li.chapter {
.book-body {
font-size: 1.5rem !important;
}
.copy-code-button {
display: none;
}
pre:hover > .copy-code-button {
display: block;
}