Skip to content

Commit

Permalink
fix: Update docs styles
Browse files Browse the repository at this point in the history
  • Loading branch information
areknawo committed Sep 13, 2023
1 parent b10640b commit 0e366b4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
9 changes: 9 additions & 0 deletions apps/docs/src/styles/base.css
Expand Up @@ -161,6 +161,15 @@ h2 {
display: flex;
flex-direction: column;
}
.prose :where(:not(pre) > code):not(:where(.not-prose, .not-prose *)) {
&::before,
&::after {
content: unset !important;
}
@apply !bg-gray-200 !text-gray-700 !font-medium !dark:bg-gray-900 !dark:text-gray-300 !py-1 !px-2 !rounded-lg;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
"Courier New", monospace !important;
}

@media (prefers-color-scheme: dark) {
.astro-code {
Expand Down
10 changes: 0 additions & 10 deletions apps/docs/src/styles/styles.scss
Expand Up @@ -216,16 +216,6 @@ kbd {
@apply border-l-3 pl-5.5 border-solid border-gray-200 dark:border-gray-700 not-italic text-gray-500 dark:text-gray-400;
}

:where(:not(pre) > code):not(:where(.not-prose, .not-prose *)) {
&::before,
&::after {
content: unset !important;
}
@apply !bg-gray-200 !text-gray-700 !font-medium !dark:bg-gray-900 !dark:text-gray-300 !py-1 !px-2 !rounded-lg;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
"Courier New", monospace !important;
}

:where(mark) {
@apply text-gray-700;
}
Expand Down

0 comments on commit 0e366b4

Please sign in to comment.