mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-06 10:20:09 +02:00
chore: Add missing v3.8 blog post mdx-code-block (#11203)
This commit is contained in:
parent
7e87ea320c
commit
76518fd206
2 changed files with 15 additions and 3 deletions
|
@ -16,9 +16,11 @@ Upgrading is easy. We follow [Semantic Versioning](https://semver.org/), and min
|
||||||
|
|
||||||
{/* truncate */}
|
{/* truncate */}
|
||||||
|
|
||||||
import BrowserWindow from '../../../src/components/BrowserWindow';
|
```mdx-code-block
|
||||||
|
import BrowserWindow from '@site/src/components/BrowserWindow';
|
||||||
import IframeWindow from '@site/src/components/BrowserWindow/IframeWindow';
|
import IframeWindow from '@site/src/components/BrowserWindow/IframeWindow';
|
||||||
import NavbarColorModeToggle from '@theme/Navbar/ColorModeToggle';
|
import NavbarColorModeToggle from '@theme/Navbar/ColorModeToggle';
|
||||||
|
```
|
||||||
|
|
||||||
## Performance
|
## Performance
|
||||||
|
|
||||||
|
@ -215,7 +217,9 @@ In practice, you can create a `.my-playground` class to revert the global CSS co
|
||||||
|
|
||||||
Then you can apply this class to any HTML element, so that Infima doesn't apply to any of its children. The HTML subtree becomes isolated from our built-in CSS.
|
Then you can apply this class to any HTML element, so that Infima doesn't apply to any of its children. The HTML subtree becomes isolated from our built-in CSS.
|
||||||
|
|
||||||
|
```mdx-code-block
|
||||||
<IframeWindow url="/tests/pages/style-isolation?docusaurus-data-navbar=false" />
|
<IframeWindow url="/tests/pages/style-isolation?docusaurus-data-navbar=false" />
|
||||||
|
```
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
@ -242,6 +246,7 @@ While technically a **breaking change**, we believe this change will not affect
|
||||||
|
|
||||||
In [#10987](https://github.com/facebook/docusaurus/pull/10987), the classic theme now lets you revert the color mode to the system/OS value.
|
In [#10987](https://github.com/facebook/docusaurus/pull/10987), the classic theme now lets you revert the color mode to the system/OS value.
|
||||||
|
|
||||||
|
```mdx-code-block
|
||||||
<BrowserWindow>
|
<BrowserWindow>
|
||||||
<div
|
<div
|
||||||
className="margin-vert--md"
|
className="margin-vert--md"
|
||||||
|
@ -249,6 +254,7 @@ In [#10987](https://github.com/facebook/docusaurus/pull/10987), the classic them
|
||||||
<NavbarColorModeToggle />
|
<NavbarColorModeToggle />
|
||||||
</div>
|
</div>
|
||||||
</BrowserWindow>
|
</BrowserWindow>
|
||||||
|
```
|
||||||
|
|
||||||
## Code Block Refactor
|
## Code Block Refactor
|
||||||
|
|
||||||
|
|
|
@ -228,8 +228,14 @@ div[class^='announcementBar_'] {
|
||||||
background-color: rgba(0 0 0 / 95%);
|
background-color: rgba(0 0 0 / 95%);
|
||||||
}
|
}
|
||||||
|
|
||||||
html[data-navbar='false'] .navbar {
|
html[data-navbar='false'] {
|
||||||
|
.navbar {
|
||||||
display: none;
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.theme-announcement-bar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
html[data-red-border] div#__docusaurus {
|
html[data-red-border] div#__docusaurus {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue