1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-08-29 00:29:57 +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

@@ -26,7 +26,15 @@ const Details: React.FC<{}> = () => {
</div>
<BrowserFrame
html={`
<div style="
<div class="container">
<div class="container__letters">
<!-- The letters -->
...
</div>
</div>
`}
css={`
.container {
/* Center the content */
display: inline-block;
vertical-align: middle;
@@ -42,20 +50,16 @@ html={`
border-radius: 50%;
height: 48px;
width: 48px;
">
<div style="
/* Center the content */
left: 50%;
position: absolute;
top: 50%;
transform: translate(-50%, -50%);
">
<!-- The letters -->
...
</div>
</div>
}
.container__letters {
/* Center the content */
left: 50%;
position: absolute;
top: 50%;
transform: translate(-50%, -50%);
}
`}
css={``}
>
<div
style={{