Skip to content

Commit

Permalink
Fixed code block styling in demos (#1234)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewlipski authored Nov 13, 2024
1 parent 819ccaa commit ed7c03f
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions docs/components/example/styles.css
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit ed7c03f

Please sign in to comment.