From e1eb90b3c80d7c64b367d561d4060d5ba3554ee4 Mon Sep 17 00:00:00 2001 From: matthewlipski Date: Mon, 11 Nov 2024 13:13:28 +0100 Subject: [PATCH] Fixed code block styling in demos --- docs/components/example/styles.css | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/docs/components/example/styles.css b/docs/components/example/styles.css index 4e751eec8a..55a24cbf7c 100644 --- a/docs/components/example/styles.css +++ b/docs/components/example/styles.css @@ -1,28 +1,34 @@ :focus-visible { - box-shadow: unset !important; + box-shadow: unset !important; } .demo .nextra-code-block pre { - background-color: transparent !important; - margin: 0 !important; - padding: 0 !important; + background-color: transparent !important; + margin: 0 !important; + padding: 0 !important; } .demo .nextra-code-block code > span { - padding: 0 !important; + padding: 0 !important; } .demo .bn-container, .demo .bn-editor { - height: 100%; + height: 100%; } .demo .bn-editor { - overflow: auto; - padding-block: 1rem; + overflow: auto; + padding-block: 1rem; } .demo-contents a { - color: revert; - text-decoration: revert; + color: revert; + text-decoration: revert; } + +.demo code.bn-inline-content { + font-size: 1em; + line-height: 1.5; + display: block; +} \ No newline at end of file