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

@@ -23,31 +23,37 @@ const Details: React.FC<{}> = () => {
<div className='p-8 pb-20'>
<BrowserFrame
html={`
<div style="
/* Align sub-items to top */
align-items: start;
display: flex;
">
<div class="container">
<!-- Media object -->
<div style="
margin-right: 16px;
/* Set the width for the media object */
width: 200px;
">
<div class="container__media">
...
</div>
<!-- Main content -->
<div style="
/* Take the remaining width */
flex: 1;
">
<div class="container__content">
...
</div>
</div>
`}
css={``}
css={`
.container {
/* Align sub-items to top */
align-items: start;
display: flex;
}
.container__media {
margin-right: 16px;
/* Set the width for the media object */
width: 200px;
}
.container__content {
/* Take the remaining width */
flex: 1;
}
`}
>
<div
style={{