From 41c83070b01632084e7d29123048a96c1e261407 Mon Sep 17 00:00:00 2001 From: aliabid94 Date: Mon, 24 Jul 2023 16:35:53 -0700 Subject: [PATCH] Add CSS resets and specifiers to play nice with HF blog (#4997) * changes * add changeset --------- Co-authored-by: gradio-pr-bot Co-authored-by: pngwn --- .changeset/evil-mirrors-switch.md | 6 ++++++ js/theme/src/reset.css | 1 + js/theme/src/typography.css | 1 + 3 files changed, 8 insertions(+) create mode 100644 .changeset/evil-mirrors-switch.md diff --git a/.changeset/evil-mirrors-switch.md b/.changeset/evil-mirrors-switch.md new file mode 100644 index 0000000000..c58c2cfdc8 --- /dev/null +++ b/.changeset/evil-mirrors-switch.md @@ -0,0 +1,6 @@ +--- +"@gradio/theme": patch +"gradio": patch +--- + +fix:Add CSS resets and specifiers to play nice with HF blog diff --git a/js/theme/src/reset.css b/js/theme/src/reset.css index ff70202afb..4c49454840 100644 --- a/js/theme/src/reset.css +++ b/js/theme/src/reset.css @@ -213,6 +213,7 @@ img, video { max-width: 100%; height: auto; + margin: 0; } [hidden] { diff --git a/js/theme/src/typography.css b/js/theme/src/typography.css index 5b039a65ed..75f6c1456f 100644 --- a/js/theme/src/typography.css +++ b/js/theme/src/typography.css @@ -23,6 +23,7 @@ margin: var(--spacing-xxl) 0 var(--spacing-lg); font-weight: var(--prose-header-text-weight); line-height: 1.3; + color: var(--body-text-color); } .prose > *:first-child {