Skip to content

Commit cd67404

Browse files
Got back to old underline style for links with code
Former-commit-id: 951e071
1 parent 92af3f0 commit cd67404

File tree

2 files changed

+1
-24
lines changed

2 files changed

+1
-24
lines changed

components/layouts/container.module.css

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@
1717
@apply border-b border-b-gray-90 hover:border-red-60 hover:opacity-80;
1818
}
1919

20-
/* If link is just for code, don't add border */
21-
.ArticleContainer a:has(tt:only-child),
22-
.ArticleContainer a:has(code:only-child) {
23-
@apply border-0;
24-
}
25-
2620
:global(.dark) .ArticleContainer p a,
2721
:global(.dark) .ArticleContainer ol li a,
2822
:global(.dark) .ArticleContainer ul li a {

styles/text.scss

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ button:focus-visible {
108108
}
109109

110110
/* Inline code blocks */
111-
p > code,
112-
li > code,
111+
p code,
113112
/* Inline code blocks in docstrings */
114113
tt.docutils.literal {
115114
@apply break-words px-1 rounded;
@@ -118,22 +117,6 @@ tt.docutils.literal {
118117
@apply text-base;
119118
}
120119

121-
/* Improve `code` links. Don't use border, use underline instead. */
122-
a:has(tt:only-child),
123-
a:has(code:only-child) {
124-
@apply border-0;
125-
}
126-
127-
/* Improve `code` links. Don't use border, use underline instead. */
128-
a > tt:only-child,
129-
a > code:only-child {
130-
@apply underline;
131-
}
132-
133-
p a code {
134-
@apply border-none p-0;
135-
}
136-
137120
/* One-line code descriptions in docstrings */
138121
div.code-desc {
139122
@apply mb-4 text-gray-90 dark:text-gray-40;

0 commit comments

Comments
 (0)