1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-08-25 23:06:15 +02:00

Add CSS panel for display patterns

This commit is contained in:
Phuoc Nguyen
2021-03-31 21:33:21 +07:00
parent 04384dbee2
commit 57b8bff9bb
42 changed files with 1008 additions and 894 deletions

View File

@@ -42,7 +42,16 @@ const Details: React.FC<{}> = () => {
<BrowserFrame
html={`
<!-- A property item -->
<dl style="
<dl class="container">
<!-- Property name -->
<dt>...</dt>
<!-- Property value -->
<dd>...</dd>
</dl>
`}
css={`
.container {
/* Content is center horizontally */
align-items: center;
display: flex;
@@ -58,15 +67,8 @@ html={`
/* Spacing */
margin: 0px;
padding: 8px 0px;
">
<!-- Property name -->
<dt>...</dt>
<!-- Property value -->
<dd>...</dd>
</dl>
}
`}
css={``}
>
<div
style={{