Skip to content
This repository was archived by the owner on Nov 25, 2021. It is now read-only.

Commit 667caf9

Browse files
committed
fix: override default github styling for close button
1 parent a830fcb commit 667caf9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/HoverOverlay.scss

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,18 @@
1818
top: 0;
1919
right: 0;
2020
padding: 0.25rem;
21-
background: inherit;
21+
border-radius: 0;
22+
background: transparent;
2223
z-index: 1;
2324
border: none;
2425
opacity: 0;
2526
transition: opacity $animation-duration ease-in-out;
27+
&:focus {
28+
outline: none; // override GitHub style
29+
}
30+
&:active {
31+
box-shadow: none; // override GitHub style
32+
}
2633
}
2734
&:hover &__close-button {
2835
opacity: 1;

0 commit comments

Comments
 (0)