From 6cc58dc4f2926f68196d28186a8dff429e8047bc Mon Sep 17 00:00:00 2001 From: Third Santor Date: Sun, 27 Oct 2024 21:54:56 -0400 Subject: [PATCH 1/4] fix: Copy button overlaps with content --- frontend/static/styles.css | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/static/styles.css b/frontend/static/styles.css index 32254538..9f4fdd67 100644 --- a/frontend/static/styles.css +++ b/frontend/static/styles.css @@ -249,8 +249,12 @@ body .ddoc { @apply link; } - .highlight .context_button { - @apply border-none hover:bg-jsr-cyan-50; + pre.highlight > code:first-child { + @apply pr-9; + } + + pre.highlight .context_button { + @apply right-0 border-r-4 border-white hover:bg-jsr-cyan-50; } .highlight .lineNumbers { From 50111b9891704d65ea463a9f41b8615d19c02594 Mon Sep 17 00:00:00 2001 From: Third Santor Date: Sat, 2 Nov 2024 19:32:55 -0400 Subject: [PATCH 2/4] Fix Firefox padding issue. --- frontend/static/styles.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/static/styles.css b/frontend/static/styles.css index 9f4fdd67..62b6393c 100644 --- a/frontend/static/styles.css +++ b/frontend/static/styles.css @@ -250,7 +250,8 @@ body .ddoc { } pre.highlight > code:first-child { - @apply pr-9; + @apply pr-9; + display: flex; } pre.highlight .context_button { From a86bef41cc52598b97327bd26169bb5711ec8089 Mon Sep 17 00:00:00 2001 From: Third Santor Date: Sat, 2 Nov 2024 19:35:06 -0400 Subject: [PATCH 3/4] Format code --- frontend/static/styles.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/static/styles.css b/frontend/static/styles.css index 62b6393c..7c665562 100644 --- a/frontend/static/styles.css +++ b/frontend/static/styles.css @@ -250,8 +250,8 @@ body .ddoc { } pre.highlight > code:first-child { - @apply pr-9; - display: flex; + @apply pr-9; + display: flex; } pre.highlight .context_button { From d166157f44b5ef825fa148bacfc9e56287898f9f Mon Sep 17 00:00:00 2001 From: Third Santor Date: Tue, 5 Nov 2024 20:00:15 -0500 Subject: [PATCH 4/4] Fix import statement spacing --- frontend/static/styles.css | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/frontend/static/styles.css b/frontend/static/styles.css index 7c665562..705f9f8e 100644 --- a/frontend/static/styles.css +++ b/frontend/static/styles.css @@ -249,11 +249,6 @@ body .ddoc { @apply link; } - pre.highlight > code:first-child { - @apply pr-9; - display: flex; - } - pre.highlight .context_button { @apply right-0 border-r-4 border-white hover:bg-jsr-cyan-50; } @@ -267,6 +262,20 @@ body .ddoc { } } + .usageContent pre.highlight > code:first-child { + @apply pr-9; + display: flex; + + * { + margin-left: 0.5rem; + } + + span:first-child, + span:nth-child(4) { + margin-left: 0; + } + } + .namespaceItemContent { flex: 1; width: 0;