Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Fix MDX warning styles and inherit prose text styles

Richie McIlroyb6cd95916ec6
diff --git a/apps/web/app/globals.css b/apps/web/app/globals.css
index b3e55df52..165817903 100644
--- a/apps/web/app/globals.css
+++ b/apps/web/app/globals.css
@@ -782,6 +782,13 @@ footer a {
@apply text-gray-12 !important;
}
+.prose .not-prose p,
+.prose .not-prose li {
+ color: inherit !important;
+ font-size: inherit !important;
+ line-height: inherit !important;
+}
+
.new-card-style {
background: #ffffff;
border: 1px solid #e7eaf0;
diff --git a/apps/web/components/mdx.tsx b/apps/web/components/mdx.tsx
index db366269e..ef9918ded 100644
--- a/apps/web/components/mdx.tsx
+++ b/apps/web/components/mdx.tsx
@@ -98,7 +98,7 @@ function Warning(props: WarningProps) {
</svg>
{props.title || "Warning"}
</div>
- <div className="text-red-700 dark:text-red-300 [&>p]:m-0 [&>ul]:m-0 [&>ul]:mt-2 [&_strong]:font-semibold [&_code]:bg-red-100 [&_code]:dark:bg-red-900 [&_code]:px-1 [&_code]:rounded [&_a]:underline">
+ <div className="text-red-700 dark:text-red-300 [&_p]:m-0 [&_ul]:m-0 [&_ul]:mt-2 [&_strong]:font-semibold [&_code]:bg-red-100 [&_code]:dark:bg-red-900 [&_code]:px-1 [&_code]:rounded [&_a]:underline">
{props.children}
</div>
</div>