llvm-c166/llvm/docs/_static/copybutton.css
Anshul Nigham c44443f22b
[Docs] Reland Furo theme for LLVM docs (#211993)
Relands https://github.com/llvm/llvm-project/pull/184440 which was
reverted in https://github.com/llvm/llvm-project/pull/208619 because of
doc generation slowness.

The main root cause (https://github.com/llvm/llvm-project/issues/208786)
has been addressed, so attempting a reland at this point.

As before, Furo output at
https://nigham.github.io/llvm_docs_furo/LangRef.html

Comparing the generation times for "Build LLVM docs" step, this PR took
< 3m vs > 15m for the previous reverted PR.
2026-07-27 08:33:03 -07:00

39 lines
808 B
CSS

/* Copy-to-clipboard button styles */
div.highlight {
position: relative;
}
button.copybutton {
position: absolute;
top: 0.4em;
right: 0.4em;
padding: 0.3em 0.4em;
background: var(--color-background-secondary, #f0f0f0);
border: 1px solid var(--color-foreground-border, #ccc);
border-radius: 4px;
cursor: pointer;
opacity: 0;
transition: opacity 0.2s, background 0.15s;
line-height: 1;
color: var(--color-foreground-secondary, #555);
}
div.highlight:hover button.copybutton,
button.copybutton:focus {
opacity: 1;
}
button.copybutton:hover {
background: var(--color-background-hover, #e0e0e0);
}
button.copybutton.copied {
color: var(--color-brand-primary, #2980b9);
opacity: 1;
}
button.copybutton svg {
display: block;
pointer-events: none;
fill: currentColor;
}