mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-27 19:13:05 +00:00
2319124ff6
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.
24 lines
453 B
CSS
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;
|
|
}
|
|
|