Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions docuK-2.3.css
Original file line number Diff line number Diff line change
Expand Up @@ -1601,6 +1601,37 @@ pre li:nth-child(2n) {
background-color:rgb(90, 90, 90)
}


/* Code block copy button */

pre:has(code) {
position:relative
}

pre:has(code) .copy-btn {
position:absolute;
top:4px;
right:4px;
z-index:10;
padding:2px 8px;
font-size:12px;
background:#e8e8e8;
border:1px solid #ccc;
border-radius:3px;
cursor:pointer;
opacity:0.6;
transition:opacity 0.2s
}

pre:has(code) .copy-btn:hover {
opacity:1
}

pre:has(code) .copy-btn.copied {
background:#d4edda;
border-color:#a3d9b1
}

pre .str,
code .str {
color:#65B042
Expand Down
Loading