mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 10:14:03 +00:00
Copy code snippet button (#183)
* copy button * empty lines at the end * copy button position * copy button position
This commit is contained in:
parent
e9aef34d94
commit
d3cba2955d
11 changed files with 268 additions and 10 deletions
11
source/_assets/css/clipboard.css
Normal file
11
source/_assets/css/clipboard.css
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
.code-block-wrapper .copyBtn {
|
||||
@apply absolute right-2 top-5 outline-none text-gray-200 opacity-25;
|
||||
}
|
||||
|
||||
.code-block-wrapper .copyBtn:hover {
|
||||
@apply text-gray-500 opacity-100;
|
||||
}
|
||||
|
||||
.code-block-wrapper .copyBtn:active {
|
||||
@apply text-white outline-none opacity-100;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue