Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-tteixeira committed Dec 17, 2024
1 parent e8f34cd commit 979b224
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 0 additions & 4 deletions components/blocks/callout.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
@apply text-gray-90 !important;
}

.Container p > code {
@apply border border-gray-40 text-red-70 rounded-md px-1 mx-1 break-words;
}

.Container p:only-child,
.Container p:last-child,
.Container section:last-child,
Expand Down
6 changes: 6 additions & 0 deletions components/layouts/container.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
@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
6 changes: 3 additions & 3 deletions styles/text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ ul + p {
@apply mt-8;
}

/* Focuss styles */
/* Focus styles */
a:focus,
a:focus-visible,
button:focus,
Expand All @@ -113,8 +113,8 @@ li > code,
/* Inline code blocks in docstrings */
tt.docutils.literal {
@apply break-words px-1 rounded;
@apply text-green-80 bg-gray-10;
@apply dark:text-green-50 dark:bg-gray-90;
@apply text-green-80 bg-green-80/5;
@apply dark:text-green-50 dark:bg-green-50/10;
@apply text-base;
}

Expand Down

0 comments on commit 979b224

Please sign in to comment.