mirror of
https://github.com/qdrant/landing_page.git
synced 2026-09-28 23:48:31 +02:00
fixed a copy button position on scrolled code blocks (#399)
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
.highlight {
|
||||
position: relative;
|
||||
}
|
||||
.highlight + .highlight {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@@ -10,11 +10,14 @@
|
||||
|
||||
.copy-code__btn {
|
||||
padding: 4px;
|
||||
background: none;
|
||||
background: var(--brand-light);
|
||||
i {
|
||||
color: var(--brand-secondary);
|
||||
}
|
||||
}
|
||||
|
||||
.copy-code__btn:hover {
|
||||
background: #dcdcdc;
|
||||
background: white;
|
||||
}
|
||||
|
||||
.copy-code__btn_light {
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,5 +1,5 @@
|
||||
(function () {
|
||||
let codeBlocks = document.querySelectorAll('pre > code');
|
||||
let codeBlocks = document.querySelectorAll('.highlight > pre');
|
||||
|
||||
const codeClipboard = new ClipboardJS('.copy-code__btn');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user