Skip to content

Commit 644460a

Browse files
fix(copy-button): align styling with Webpack theme and improve hover behavior (#7724)
* fix(copy-button): update styling to match Webpack theme and improve hover state * style(copy-button): adjust top spacing to avoid being too close to the edge
1 parent 2639fb9 commit 644460a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/CodeBlockWithCopy/CodeBlockWithCopy.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
.copy-button {
2323
position: absolute;
24-
top: 0.32rem;
24+
top: 0.6rem;
2525
right: 0.5rem;
2626
z-index: 10;
2727

@@ -37,15 +37,15 @@
3737
/* Always visible */
3838
opacity: 1;
3939

40-
background-color: #7c3aed;
40+
background-color: #175d96;
4141
color: #e2e8f0;
4242

4343
transition:
4444
background-color 0.2s,
4545
transform 0.1s;
4646

4747
&:hover {
48-
background-color: #6d28d9;
48+
background-color: #2f85d0;
4949
}
5050

5151
/* Success */

0 commit comments

Comments
 (0)