Copy code snippet button (#183)

* copy button

* empty lines at the end

* copy button position

* copy button position
This commit is contained in:
Abrar Ahmad 2022-07-28 16:30:56 +05:00 committed by GitHub
parent e9aef34d94
commit d3cba2955d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 268 additions and 10 deletions

View 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;
}

View file

@ -7,6 +7,6 @@
@import 'base';
@import 'navigation';
@import 'search';
@import 'clipboard';
@tailwind utilities;
@tailwind utilities;