Skip to content

Commit

Permalink
style: update code hover styles
Browse files Browse the repository at this point in the history
  • Loading branch information
asmyshlyaev177 committed Oct 26, 2024
1 parent 9bf198c commit 6d90e62
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions packages/shared/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@
}

.codeblock {
& * {
transition: all 0.2s ease-in-out;
}

.shiki {
white-space: pre-wrap;
word-wrap: break-word;
Expand All @@ -137,21 +141,17 @@
background-color: transparent !important;
}

.line.highlighted {
background-color: rgba(148, 148, 148, 0.15);
transition: all 0.15s ease-in-out;
}
&:hover .line.highlighted {
background-color: rgba(148, 148, 148, 0.3);
background-color: rgba(148, 148, 148, 0.15);
}

.highlighted-word {
& .highlighted-word {
border-radius: 8%;
border: 1px solid rgba(255, 255, 255, 0.2);
transition: all 0.15s ease-in-out;
border: 1px solid transparent;
}

&:hover .highlighted-word {
border: 1px solid rgba(255, 255, 255, 0.3);
border: 1px solid rgba(255, 255, 255, 0.2);
}
}
}

0 comments on commit 6d90e62

Please sign in to comment.