Skip to content

Commit ed7c03f

Browse files
Fixed code block styling in demos (#1234)
1 parent 819ccaa commit ed7c03f

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

docs/components/example/styles.css

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,34 @@
11
:focus-visible {
2-
box-shadow: unset !important;
2+
box-shadow: unset !important;
33
}
44

55
.demo .nextra-code-block pre {
6-
background-color: transparent !important;
7-
margin: 0 !important;
8-
padding: 0 !important;
6+
background-color: transparent !important;
7+
margin: 0 !important;
8+
padding: 0 !important;
99
}
1010

1111
.demo .nextra-code-block code > span {
12-
padding: 0 !important;
12+
padding: 0 !important;
1313
}
1414

1515
.demo .bn-container,
1616
.demo .bn-editor {
17-
height: 100%;
17+
height: 100%;
1818
}
1919

2020
.demo .bn-editor {
21-
overflow: auto;
22-
padding-block: 1rem;
21+
overflow: auto;
22+
padding-block: 1rem;
2323
}
2424

2525
.demo-contents a {
26-
color: revert;
27-
text-decoration: revert;
26+
color: revert;
27+
text-decoration: revert;
2828
}
29+
30+
.demo code.bn-inline-content {
31+
font-size: 1em;
32+
line-height: 1.5;
33+
display: block;
34+
}

0 commit comments

Comments
 (0)