Skip to content

Commit 952f471

Browse files
authored
fix(themes): don't style <a> in reset only in markdown (#6353)
* fix(themes): don't style `<a>` in reset only in markdown * docs(changeset): fix(themes): don't style <a> in reset only in markdown
1 parent 24c9d4c commit 952f471

File tree

2 files changed

+6
-19
lines changed

2 files changed

+6
-19
lines changed

.changeset/pink-peas-taste.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@scalar/themes': patch
3+
---
4+
5+
fix(themes): don't style <a> in reset only in markdown

packages/themes/src/base/reset.css

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
font-size: inherit;
4242
font-weight: inherit;
4343
font-style: inherit;
44+
text-decoration: inherit;
4445
line-height: inherit;
4546
color: inherit;
4647
margin: unset;
@@ -122,25 +123,6 @@
122123
cursor: pointer;
123124
}
124125

125-
a {
126-
--font-color: var(--scalar-link-color, var(--scalar-color-accent));
127-
--font-visited: var(--scalar-link-color-visited, var(--scalar-color-2));
128-
129-
text-decoration: var(--scalar-text-decoration);
130-
color: var(--font-color);
131-
font-weight: var(--scalar-link-font-weight, var(--scalar-semibold));
132-
text-underline-offset: 0.25rem;
133-
text-decoration-thickness: 1px;
134-
text-decoration-color: color-mix(in srgb, var(--font-color) 30%, transparent);
135-
}
136-
137-
a:hover {
138-
text-decoration-color: var(currentColor, var(--scalar-color-1));
139-
color: var(--scalar-link-color-hover, var(--scalar-color-accent));
140-
-webkit-text-decoration: var(--scalar-text-decoration-hover);
141-
text-decoration: var(--scalar-text-decoration-hover);
142-
}
143-
144126
/** Make sure disabled buttons don't get the pointer cursor. */
145127
:disabled {
146128
cursor: default;

0 commit comments

Comments
 (0)