Skip to content

Commit bf54b05

Browse files
committed
fix: prevent docs override styles from conflicting with components
1 parent 52a40d8 commit bf54b05

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

packages/docs/storybook/public/override.css

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,41 +11,42 @@
1111
margin: 0 auto;
1212
}
1313

14-
.custom-docs-container h1,
15-
#storybook-docs .sbdocs-wrapper h1 {
14+
.custom-docs-container > div > h1,
15+
#storybook-docs .sbdocs-content > h1 {
1616
font-size: 32px;
1717
font-weight: bold;
18+
line-height: 1.1em;
1819
margin: 0 0 1em;
1920
}
2021

21-
.custom-docs-container h2,
22-
#storybook-docs .sbdocs-wrapper h2 {
22+
.custom-docs-container > div > h2,
23+
#storybook-docs .sbdocs-content > h2 {
2324
font-size: 24px;
2425
font-weight: bold;
2526
margin: 1.5em 0 1em;
2627
}
2728

28-
.custom-docs-container h3,
29-
#storybook-docs .sbdocs-wrapper h3 {
29+
.custom-docs-container > div > h3,
30+
#storybook-docs .sbdocs-content > h3 {
3031
font-size: 20px;
3132
font-weight: bold;
3233
margin: 1.5em 0 1em;
3334
}
3435

35-
.custom-docs-container p,
36-
#storybook-docs .sbdocs-wrapper p {
36+
.custom-docs-container > div > p,
37+
#storybook-docs .sbdocs-content > p {
3738
font-size: 14px;
3839
line-height: 24px;
3940
margin: 16px 0;
4041
}
4142

42-
.custom-docs-container pre {
43+
.custom-docs-container > div > pre {
4344
margin: 0;
4445
padding: 0;
4546
}
4647

47-
.custom-docs-container blockquote,
48-
#storybook-docs .sbdocs-wrapper blockquote {
48+
.custom-docs-container > div > blockquote,
49+
#storybook-docs .sbdocs-content > blockquote {
4950
font-style: italic;
5051
padding: 8px 16px;
5152
margin: 0;
@@ -55,7 +56,7 @@
5556
border: none;
5657
}
5758

58-
.custom-docs-container blockquote p,
59-
#storybook-docs .sbdocs-wrapper blockquote p {
59+
.custom-docs-container > div > blockquote p,
60+
#storybook-docs .sbdocs-content > blockquote p {
6061
margin: 0;
6162
}

0 commit comments

Comments
 (0)