aboutsummaryrefslogtreecommitdiff
path: root/docs/_static/style.css
diff options
context:
space:
mode:
authorNCPlayz <[email protected]>2020-05-27 00:50:51 +0100
committerRapptz <[email protected]>2020-12-18 21:18:51 -0500
commitce0d0a20dd8266545453bf5365dcd1b8946b096c (patch)
treebbef03b17fd54756ce81e82a9719da52e92032d8 /docs/_static/style.css
parent[matrix] Add sans-serif font toggle to settings modal (diff)
downloaddiscord.py-ce0d0a20dd8266545453bf5365dcd1b8946b096c.tar.xz
discord.py-ce0d0a20dd8266545453bf5365dcd1b8946b096c.zip
add copy codeblock button
Apply suggestions from code review Co-authored-by: Danny <[email protected]> Change to icon, change according to slice's review
Diffstat (limited to 'docs/_static/style.css')
-rw-r--r--docs/_static/style.css30
1 files changed, 28 insertions, 2 deletions
diff --git a/docs/_static/style.css b/docs/_static/style.css
index f3449dd7..e0789974 100644
--- a/docs/_static/style.css
+++ b/docs/_static/style.css
@@ -143,7 +143,7 @@ label.toggle input:checked + span.toggle-slider:before {
transform: translateX(18px);
}
-
+
div.related {
padding: 10px 10px;
width: 100%;
@@ -703,4 +703,30 @@ div.code-block-caption {
background-color: transparent;
border-left: none;
}
-} \ No newline at end of file
+}
+
+.relative-copy {
+ position: relative;
+}
+
+.copy {
+ cursor: pointer;
+ position: absolute;
+ width: 16px;
+ height: 16px;
+ top: 0px;
+ right: 0px;
+ border: 1px solid #C6C9CB;
+ line-height: 0.8em;
+ font-size: 0.9em;
+ font-family: monospace;
+ padding-left: 0.2em;
+ padding-right: 0.2em;
+ border-radius: 0px 3px 0px 0px;
+ text-align: center;
+}
+
+.copy i {
+ display: inline;
+ vertical-align: middle;
+}