Skip to content

Commit

Permalink
fixes code copy buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
sdwalker62 committed May 24, 2024
1 parent 5e796b2 commit 636dd65
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion frontend/data/Languages/Python/poetry.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Poetry

![PyTorch Logo](./pytorch-logo-flame.svg "PyTorch logo")
![PyTorch Logo](https://adl-imgs.nyc3.cdn.digitaloceanspaces.com/poetry-logo.svg 'PyTorch logo')

_Poetry is a dependency manager for Python_

Expand Down
22 changes: 15 additions & 7 deletions frontend/src/routes/docs/[...document]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,7 @@
brightness(89%) contrast(84%);
}
:global(.document-code-img):hover {
filter: var(--active-filter);
/* transition: filter 0.2s ease-in-out; */
cursor: pointer;
}
#document {
:global(img:not(.img-logo)) {
Expand Down Expand Up @@ -393,6 +389,7 @@
margin-top: 20px;
margin-bottom: 20px;
width: 100%;
// max-width: calc(100vw - 640px);
}
:global(div.document-code) {
Expand All @@ -408,8 +405,19 @@
:global(div.document-code-heading-container) {
display: flex;
flex-direction: row;
gap: 17px;
margin-left: 6px;
gap: 1rem;
padding-left: 6px;
justify-content: start;
align-items: center;
}
:global(.document-code-img) {
width: 3rem;
}
:global(.document-code-img):hover {
filter: var(--active-filter);
cursor: pointer;
}
:global(.language-shell) {
Expand Down

0 comments on commit 636dd65

Please sign in to comment.