Skip to content

Commit 3490227

Browse files
authored
docs: fix selection of gradient heading on firefox
1 parent 3f623db commit 3490227

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

website/src/pages/index.module.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,21 @@
5252
width: calc(100% - 2rem);
5353
}
5454

55+
.heroBanner h1::selection,
56+
.heroBanner h1 span::selection {
57+
color: rgb(36, 39, 54) !important;
58+
-webkit-text-fill-color: rgb(36, 39, 54);
59+
background: #B4D7FE !important;
60+
-webkit-background-clip: unset;
61+
background-clip: unset;
62+
}
63+
64+
html[data-theme='dark'] .heroBanner ::selection {
65+
color: #fff !important;
66+
-webkit-text-fill-color: #fff;
67+
background: #385477 !important;
68+
}
69+
5570
html .heroBanner h2 {
5671
font-style: normal;
5772
font-weight: 400;

0 commit comments

Comments
 (0)