From dce8e02a893c1e7844caff1204c78ddd7f2faeb6 Mon Sep 17 00:00:00 2001 From: John Donmoyer Date: Wed, 1 May 2024 12:32:04 -0400 Subject: [PATCH 1/3] fix: update styles on symbol detail page --- frontend/static/styles.css | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/frontend/static/styles.css b/frontend/static/styles.css index 0f65961d..21c838f2 100644 --- a/frontend/static/styles.css +++ b/frontend/static/styles.css @@ -209,6 +209,32 @@ body .ddoc .markdown pre { } } +body .ddoc article a.context_button { + @apply border-none hover:bg-jsr-cyan-50; +} + +body .ddoc .docEntryHeader a { + @apply link font-medium; +} + +body .ddoc .anchorable.docEntry { + @apply md:text-sm mb-4 !important; +} + +body .ddoc .anchorable.docEntry > .docEntryHeader { + @apply md:text-base; +} + +/* should get a better css class to target this */ +body .ddoc .anchorable.docEntry > .markdown_border { + @apply border-none pl-0 ml-0 max-w-prose; +} + +/* just removing the ml-2 class from this div */ +body .ddoc section div.ml-2 { + @apply ml-0; +} + body .ddoc .markdown :not(pre) > code { @apply bg-jsr-cyan-100/50 rounded-md; @apply px-1.5; From ffb21012b1297f59e8e3938749cdb8315b1690ca Mon Sep 17 00:00:00 2001 From: John Donmoyer Date: Thu, 2 May 2024 11:35:12 -0400 Subject: [PATCH 2/3] more changes --- frontend/static/styles.css | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/frontend/static/styles.css b/frontend/static/styles.css index 21c838f2..5d3aa6fe 100644 --- a/frontend/static/styles.css +++ b/frontend/static/styles.css @@ -230,11 +230,21 @@ body .ddoc .anchorable.docEntry > .markdown_border { @apply border-none pl-0 ml-0 max-w-prose; } +/* should get a better css class to target this */ +body .ddoc .anchorable.example > details > .markdown_border { + @apply border-none pl-0 ml-0 !important; +} + /* just removing the ml-2 class from this div */ body .ddoc section div.ml-2 { @apply ml-0; } +/* can replace the space-y-3 with space-y-2 in ddoc */ +body .ddoc section div.ml-2.space-y-3 { + @apply mt-2 !important; +} + body .ddoc .markdown :not(pre) > code { @apply bg-jsr-cyan-100/50 rounded-md; @apply px-1.5; From 042f1460572aacef5e0c61fb704c501ec1709b8d Mon Sep 17 00:00:00 2001 From: John Donmoyer Date: Thu, 2 May 2024 11:39:10 -0400 Subject: [PATCH 3/3] more changes --- frontend/static/styles.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/static/styles.css b/frontend/static/styles.css index 5d3aa6fe..69eaa391 100644 --- a/frontend/static/styles.css +++ b/frontend/static/styles.css @@ -225,6 +225,10 @@ body .ddoc .anchorable.docEntry > .docEntryHeader { @apply md:text-base; } +body .ddoc .anchorable.docEntry > .docEntryHeader > span { + @apply items-baseline; +} + /* should get a better css class to target this */ body .ddoc .anchorable.docEntry > .markdown_border { @apply border-none pl-0 ml-0 max-w-prose;