Skip to content

Commit 4e215cc

Browse files
committed
Wrap generated CSS examples in details for better readability
1 parent 1c31967 commit 4e215cc

1 file changed

Lines changed: 35 additions & 22 deletions

File tree

site/app/[locale]/guide/browser-support/content.mdx

Lines changed: 35 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,12 @@ Take `backdrop-filter` as an example:
2121
<div class="backdrop-filter:blur(16)">…</div><!-- [!code ++] -->
2222
```
2323
`backdrop-filter` will be automatically prefixed by the vendor and Generated CSS:
24-
<Class2CSS>
25-
{['backdrop-filter:blur(16)']}
26-
</Class2CSS>
24+
<details>
25+
<summary>Generated CSS</summary>
26+
<Class2CSS>
27+
{['backdrop-filter:blur(16)']}
28+
</Class2CSS>
29+
</details>
2730

2831
### Auto-prefixed CSS selectors
2932
Same goes for some CSS selectors.
@@ -32,9 +35,12 @@ Same goes for some CSS selectors.
3235
<div class="bg:slate-90::scrollbar">…</div><!-- [!code ++] -->
3336
```
3437
`::scrollbar` will be replaced to `::-webkit-scrollbar`:
35-
<Class2CSS>
36-
{['bg:slate-90::scrollbar']}
37-
</Class2CSS>
38+
<details>
39+
<summary>Generated CSS</summary>
40+
<Class2CSS>
41+
{['bg:slate-90::scrollbar']}
42+
</Class2CSS>
43+
</details>
3844

3945
---
4046

@@ -47,23 +53,28 @@ Assuming that a brand new CSS property of `new-property` has just been launched,
4753
<!-- @MARK {new-property:value} -->
4854
<div class="{new-property:value}">…</div>
4955
```
50-
Generated CSS:
51-
```css
52-
.\{new-property\:value\} {
53-
new-property: value
54-
}
55-
```
56+
<details>
57+
<summary>Generated CSS</summary>
58+
```css
59+
.\{new-property\:value\} {
60+
new-property: value
61+
}
62+
```
63+
</details>
64+
5665
Once we support it, you can omit the `{}`:
5766
```html
5867
<!-- @MARK new-property:value -->
5968
<div class="new-property:value">…</div>
6069
```
61-
Generated CSS:
62-
```css
63-
.new-property\:value {
64-
new-property: value
65-
}
66-
```
70+
<details>
71+
<summary>Generated CSS</summary>
72+
```css
73+
.new-property\:value {
74+
new-property: value
75+
}
76+
```
77+
</details>
6778

6879
### Support the new CSS selector
6980
Master CSS will extract the applied selector string according to the syntax structure and insert it into the corresponding CSS rule, you can enter any string after `:` or `::`.
@@ -73,9 +84,11 @@ This means that the selector can be used with the most standard syntax right awa
7384
<!-- @MARK :has(:checked) -->
7485
<form class="outline:2|red:has(:checked)">…</form>
7586
```
76-
Generated CSS:
77-
<Class2CSS>
78-
{['outline:2|red:has(:checked)']}
79-
</Class2CSS>
87+
<details>
88+
<summary>Generated CSS</summary>
89+
<Class2CSS>
90+
{['outline:2|red:has(:checked)']}
91+
</Class2CSS>
92+
</details>
8093

8194
{/* ## CSS feature query */}

0 commit comments

Comments
 (0)