Files
PhpSpreadsheet/docs/extra/copyclipboard.css
T
oleibman 2319124ff6 WIP Docs Experiment with Properdocs and Copy Clipboard
Experiment with Properdocs as a substitute for the troubled Mkdocs package. Alternate approach to PR #4971.

Also add javascript for copy-to-clipboard functionality for readthedocs and mkdocs themes. A little less aesthetic than material themes, but it should work.

Still unable to add dark mode to readthedocs theme.
2026-08-23 20:33:34 -07:00

24 lines
453 B
CSS

/* Style the injected copy button inside code wrappers */
.copy-code-button {
position: absolute;
top: 5px;
right: 5px;
padding: 4px 8px;
font-size: 12px;
color: #333;
background-color: #f0f0f0;
border: 1px solid #ccc;
border-radius: 3px;
cursor: pointer;
opacity: 0.7;
transition: opacity 0.2s ease-in-out;
z-index: 10;
}
.copy-code-button:hover {
opacity: 1;
background-color: #e0e0e0;
}