Skip to content

Commit 32dacd6

Browse files
Merge pull request #1203 from streamlit/inline-code
Change inline code styling.
2 parents 3ae8094 + 951e071 commit 32dacd6

File tree

2 files changed

+8
-17
lines changed

2 files changed

+8
-17
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,

styles/text.scss

Lines changed: 8 additions & 13 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,
@@ -108,21 +108,16 @@ button:focus-visible {
108108
}
109109

110110
/* Inline code blocks */
111-
p > code,
112-
li > code {
113-
@apply border border-gray-40 dark:border-gray-80 text-red-70 rounded-md px-1 mx-1 break-words;
114-
}
115-
116-
p a code {
117-
@apply border-none p-0;
111+
p code,
112+
/* Inline code blocks in docstrings */
113+
tt.docutils.literal {
114+
@apply break-words px-1 rounded;
115+
@apply text-green-80 bg-green-80/5;
116+
@apply dark:text-green-50 dark:bg-green-50/10;
117+
@apply text-base;
118118
}
119119

120120
/* One-line code descriptions in docstrings */
121121
div.code-desc {
122122
@apply mb-4 text-gray-90 dark:text-gray-40;
123123
}
124-
125-
/* Inline code blocks in docstrings */
126-
tt.docutils.literal {
127-
@apply border border-gray-40 text-red-70 rounded-md px-1 mx-1 break-words;
128-
}

0 commit comments

Comments
 (0)