mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Cleanup copy button CSS and add a hover-over explanation.
This commit is contained in:
1 parent
7607d3628d
commit
2e3b8dc3d1
2 files changed
+3
-9
No files matched your search
Vendored
+2
@@ -21,6 +21,8 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||
let copyEl = document.createElement("span");
|
||||
copyEl.addEventListener('click', () => copy(codeblock));
|
||||
copyEl.className = "copy";
|
||||
copyEl.setAttribute("aria-label", "Copy Code");
|
||||
copyEl.setAttribute("title", "Copy Code");
|
||||
|
||||
let copyIcon = document.createElement("i");
|
||||
copyIcon.className = "fas " + COPY;
|
||||
|
||||
Reference in new issue
Block a user