1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-08-29 16:49:58 +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,7 +23,18 @@ const Details: React.FC<{}> = () => {
<div className='p-8 pb-20'>
<BrowserFrame
html={`
<div style="
<div class="container">
<!-- Tells visitors that the website uses cookie -->
<div class="container__content">
...
</div>
<!-- Close button -->
...
</div>
`}
css={`
.container {
/* Banner is displayed at the bottom */
bottom: 0;
left: 0;
@@ -34,20 +45,13 @@ html={`
align-items: center;
display: flex;
justify-content: center;
">
<!-- Tells visitors that the website uses cookie -->
<div style="
/* Take available width */
flex: 1;
">
...
</div>
}
<!-- Close button -->
...
</div>
.container__content {
/* Take available width */
flex: 1;
}
`}
css={``}
>
<div
style={{