Skip to content

Commit e98c6f0

Browse files
authored
fix(public-doscite-v9): global styles should not be applied to story elements (microsoft#32472)
1 parent a0a49b3 commit e98c6f0

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.storybook/docs-root.css

+11-11
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
margin-top: 49px;
1616
}
1717

18-
#storybook-docs details {
18+
#storybook-docs details:not(.sbdocs-preview details) {
1919
position: relative;
2020
z-index: 99;
2121
}
2222

23-
#storybook-docs .sbdocs:not(.sbdocs-preview) p {
23+
#storybook-docs .sbdocs p:not(.sbdocs-preview p) {
2424
font-family: 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue',
2525
sans-serif;
2626
font-size: 18px;
@@ -45,13 +45,13 @@
4545
border-radius: 24px;
4646
}
4747

48-
#storybook-docs .sbdocs:not(.sbdocs-preview) hr {
48+
#storybook-docs .sbdocs hr:not(.sbdocs-preview hr) {
4949
margin: 48px 0;
5050
height: 0;
5151
border-top: 1px solid #ebebeb;
5252
}
5353

54-
#storybook-docs .sbdocs h2 {
54+
#storybook-docs .sbdocs h2:not(.sbdocs-preview h2) {
5555
font-family: 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue',
5656
sans-serif;
5757
font-size: 24px;
@@ -64,7 +64,7 @@
6464
padding: 48px 0 0 0;
6565
}
6666

67-
#storybook-docs .sbdocs h2 code {
67+
#storybook-docs .sbdocs h2 code:not(.sbdocs-preview h2 code) {
6868
border-radius: 4px;
6969
font-size: 20px;
7070
}
@@ -92,7 +92,7 @@
9292
margin: -40px 0 0;
9393
}
9494

95-
#storybook-docs .sbdocs:not(.sbdocs-preview) li {
95+
#storybook-docs .sbdocs li:not(.sbdocs-preview li) {
9696
font-family: 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue',
9797
sans-serif;
9898
font-size: 16px;
@@ -104,11 +104,11 @@
104104
margin-top: 8px;
105105
}
106106

107-
#storybook-docs .sbdocs:not(.sbdocs-preview) ul {
107+
#storybook-docs .sbdocs ul:not(.sbdocs-preview ul) {
108108
margin: 12px 0;
109109
}
110110

111-
#storybook-docs .sbdocs-ul .sbdocs:not(.sbdocs-preview) li {
111+
#storybook-docs .sbdocs-ul li:not(.sbdocs-preview .sbdocs-ul li) {
112112
list-style: none;
113113
position: relative;
114114
}
@@ -276,7 +276,7 @@
276276
line-height: 21px;
277277
}
278278

279-
#storybook-docs code,
279+
#storybook-docs code:not(.sbdocs-preview code),
280280
#storybook-docs .docblock-argstable tbody tr td:nth-child(3) > div > span,
281281
#storybook-docs .docblock-argstable-body > tr > td:nth-child(2) > div:nth-child(2) span,
282282
#storybook-docs .docblock-argstable-body > tr > td:nth-child(2) > div:nth-child(1) > div > span,
@@ -313,7 +313,7 @@
313313
white-space: normal;
314314
}
315315

316-
#storybook-docs code {
316+
#storybook-docs code:not(.sbdocs-preview code) {
317317
padding: 0.1em 0.2em;
318318
display: inline-block;
319319
background-color: rgba(17, 16, 15, 0.1);
@@ -426,7 +426,7 @@ h1.fluent {
426426
letter-spacing: -0.16px;
427427
}
428428

429-
h1 .fluent-version {
429+
h1.fluent .fluent-version {
430430
display: block;
431431
font-size: 24px; /* --font-size-base-600 */
432432
line-height: 32px;

0 commit comments

Comments
 (0)