mirror of
https://github.com/siemens-mobile-hacks/llvm-c166.git
synced 2026-11-25 21:45:57 +00:00
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.
39 lines
808 B
CSS
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;
|
|
}
|