Skip to content

Commit 92af3f0

Browse files
Fix comments
Former-commit-id: 979b224
1 parent 41679df commit 92af3f0

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

components/blocks/callout.module.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@
77
@apply text-gray-90 !important;
88
}
99

10-
.Container p > code {
11-
@apply border border-gray-40 text-red-70 rounded-md px-1 mx-1 break-words;
12-
}
13-
1410
.Container p:only-child,
1511
.Container p:last-child,
1612
.Container section:last-child,

components/layouts/container.module.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
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+
2026
:global(.dark) .ArticleContainer p a,
2127
:global(.dark) .ArticleContainer ol li a,
2228
:global(.dark) .ArticleContainer ul li a {

styles/text.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ ul + p {
9999
@apply mt-8;
100100
}
101101

102-
/* Focuss styles */
102+
/* Focus styles */
103103
a:focus,
104104
a:focus-visible,
105105
button:focus,
@@ -113,8 +113,8 @@ li > code,
113113
/* Inline code blocks in docstrings */
114114
tt.docutils.literal {
115115
@apply break-words px-1 rounded;
116-
@apply text-green-80 bg-gray-10;
117-
@apply dark:text-green-50 dark:bg-gray-90;
116+
@apply text-green-80 bg-green-80/5;
117+
@apply dark:text-green-50 dark:bg-green-50/10;
118118
@apply text-base;
119119
}
120120

0 commit comments

Comments
 (0)