Skip to content

Commit

Permalink
Got back to old underline style for links with code
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-tteixeira committed Dec 17, 2024
1 parent 979b224 commit 951e071
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 24 deletions.
6 changes: 0 additions & 6 deletions components/layouts/container.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@
@apply border-b border-b-gray-90 hover:border-red-60 hover:opacity-80;
}

/* If link is just for code, don't add border */
.ArticleContainer a:has(tt:only-child),
.ArticleContainer a:has(code:only-child) {
@apply border-0;
}

:global(.dark) .ArticleContainer p a,
:global(.dark) .ArticleContainer ol li a,
:global(.dark) .ArticleContainer ul li a {
Expand Down
19 changes: 1 addition & 18 deletions styles/text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,7 @@ button:focus-visible {
}

/* Inline code blocks */
p > code,
li > code,
p code,
/* Inline code blocks in docstrings */
tt.docutils.literal {
@apply break-words px-1 rounded;
Expand All @@ -118,22 +117,6 @@ tt.docutils.literal {
@apply text-base;
}

/* Improve `code` links. Don't use border, use underline instead. */
a:has(tt:only-child),
a:has(code:only-child) {
@apply border-0;
}

/* Improve `code` links. Don't use border, use underline instead. */
a > tt:only-child,
a > code:only-child {
@apply underline;
}

p a code {
@apply border-none p-0;
}

/* One-line code descriptions in docstrings */
div.code-desc {
@apply mb-4 text-gray-90 dark:text-gray-40;
Expand Down

0 comments on commit 951e071

Please sign in to comment.