Skip to content

Commit 987108a

Browse files
fix(styles): resolve css styles for links (#8182)
1 parent b597be3 commit 987108a

File tree

2 files changed

+8
-19
lines changed

2 files changed

+8
-19
lines changed

src/components/Markdown/Markdown.css

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -296,14 +296,16 @@
296296
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
297297
}
298298

299-
a code {
300-
@apply text-brand-link;
301-
}
302299
a {
303-
text-decoration: underline;
300+
@apply text-brand-link;
301+
text-decoration: no underline;
304302
text-underline-offset: 2px;
305303
text-decoration-thickness: 1px;
306304
}
305+
306+
a:hover {
307+
@apply text-brand-link-hover;
308+
}
307309
pre {
308310
@apply bg-code-pre-bg text-code-pre-text p-4 pr-14 rounded-[3px] text-sm leading-normal overflow-auto;
309311
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
@@ -432,11 +434,11 @@
432434
@apply bg-transparent;
433435
}
434436

435-
.dark .markdown a code {
437+
.dark .markdown a {
436438
@apply text-dark-link;
437439
}
438440

439-
.dark .markdown a code:hover {
441+
.dark .markdown a:hover {
440442
@apply text-dark-link-hover;
441443
}
442444

src/styles/dark.css

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,3 @@
4242
@apply text-white;
4343
}
4444
}
45-
46-
@layer base {
47-
[data-theme="dark"] a,
48-
[data-theme="dark"] button.as-link {
49-
@apply text-dark-link;
50-
}
51-
}
52-
53-
@layer base {
54-
[data-theme="dark"] a:hover {
55-
@apply text-dark-link-hover;
56-
}
57-
}

0 commit comments

Comments
 (0)