Skip to content

Commit

Permalink
Merge pull request #1203 from streamlit/inline-code
Browse files Browse the repository at this point in the history
Change inline code styling.
  • Loading branch information
sfc-gh-tteixeira authored Dec 18, 2024
2 parents 3ae8094 + 951e071 commit 32dacd6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 17 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
21 changes: 8 additions & 13 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 @@ -108,21 +108,16 @@ button:focus-visible {
}

/* Inline code blocks */
p > code,
li > code {
@apply border border-gray-40 dark:border-gray-80 text-red-70 rounded-md px-1 mx-1 break-words;
}

p a code {
@apply border-none p-0;
p code,
/* Inline code blocks in docstrings */
tt.docutils.literal {
@apply break-words px-1 rounded;
@apply text-green-80 bg-green-80/5;
@apply dark:text-green-50 dark:bg-green-50/10;
@apply text-base;
}

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

/* Inline code blocks in docstrings */
tt.docutils.literal {
@apply border border-gray-40 text-red-70 rounded-md px-1 mx-1 break-words;
}

0 comments on commit 32dacd6

Please sign in to comment.