Skip to content

Commit

Permalink
toggle line wrap on hover #2
Browse files Browse the repository at this point in the history
Signed-off-by: weru <[email protected]>
  • Loading branch information
onweru committed Apr 12, 2023
1 parent 710e401 commit 56a124b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,19 @@ pre {
color: var(--body-text-color);
}

pre:hover {
word-wrap: break-word;
white-space: pre-wrap;
}

pre:hover code {
word-break: break-all;
}

pre:hover .shell {
align-items: flex-start;
}

pre code {
padding: 0;
color: inherit;
Expand Down

0 comments on commit 56a124b

Please sign in to comment.