Skip to content

Commit e22b0f6

Browse files
committed
fix(website): fixed twoslash highlighted style
1 parent c55945e commit e22b0f6

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

website/styles/overrides.scss

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,16 @@
7070

7171
.nextra-code {
7272
.twoslash-highlighted {
73-
background: none;
7473
border: none;
75-
text-decoration: underline wavy #f6c99b;
76-
text-decoration-skip-ink: none;
77-
78-
.twoslash-hover {
79-
border: none;
80-
}
74+
background-attachment: scroll;
75+
background-clip: border-box;
76+
background-color: #ffffff00;
77+
background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA2IDMnIGVuYWJsZS1iYWNrZ3JvdW5kPSduZXcgMCAwIDYgMycgaGVpZ2h0PSc0LjUnIHdpZHRoPSc5Jz4KICAgIDxnIGZpbGw9JyNmOWMzNWEnPgogICAgICAgIDxwb2x5Z29uIHBvaW50cz0nNS41LDAgMi41LDMgMS4xLDMgNC4xLDAnIC8+CiAgICAgICAgPHBvbHlnb24gcG9pbnRzPSc0LDAgNiwyIDYsMC42IDUuNCwwJyAvPgogICAgICAgIDxwb2x5Z29uIHBvaW50cz0nMCwyIDEsMyAyLjQsMyAwLDAuNicgLz4KICAgIDwvZz4KPC9zdmc+");
78+
background-origin: padding-box;
79+
background-position-x: 0%;
80+
background-position-y: 100%;
81+
background-repeat: repeat-x;
82+
background-size: auto;
8183
}
8284
}
8385
}

0 commit comments

Comments
 (0)