1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-10-28 20:14:01 +01:00

Add CSS panel

This commit is contained in:
Phuoc Nguyen
2021-03-31 14:49:56 +07:00
parent df9820fb39
commit c6973507c9
94 changed files with 4762 additions and 4739 deletions

View File

@@ -23,67 +23,7 @@ const Details: React.FC<{}> = () => {
You can click the button to choose a file.
</div>
<BrowserFrame
content={(
<div
style={{
alignItems: 'center',
display: 'flex',
flexDirection: 'column',
height: '100%',
justifyContent: 'center',
padding: '8px',
}}
>
<div style={{ width: '128px' }}>
<div
style={{
alignItems: 'center',
border: '1px solid rgba(0, 0, 0, 0.3)',
borderRadius: '4px',
display: 'flex',
padding: '8px',
position: 'relative',
width: '100%',
}}
>
<input
type="file"
style={{
height: '100%',
left: 0,
opacity: 0,
position: 'absolute',
top: 0,
width: '100%',
}}
/>
<div style={{ marginRight: '8px' }}>
<svg
viewBox="0 0 24 24"
style={{
fill: 'none',
height: '24',
stroke: "rgba(0, 0, 0, 0.4)",
strokeLinecap: 'round',
strokeLinejoin: 'round',
strokeWidth: 1,
width: '24',
}}
>
<path
d={`M18.5,7.5c0.275,0,0.341-0.159,0.146-0.354l-6.292-6.292c-0.195-0.196-0.512-0.196-0.707-0.001
c0,0-0.001,0.001-0.001,0.001L5.354,7.147C5.154,7.342,5.225,7.501,5.5,7.501h3v10c0,0.552,0.448,1,1,1h5c0.552,0,1-0.448,1-1V7.5
H18.5z
M23.5,18.5v4c0,0.552-0.448,1-1,1h-21c-0.552,0-1-0.448-1-1v-4`}
/>
</svg>
</div>
<Rectangle />
</div>
</div>
</div>
)}
source={`
html={`
<div style="
/* Used to position the input */
position: relative;
@@ -118,7 +58,67 @@ const Details: React.FC<{}> = () => {
...
</div>
`}
/>
css={``}
>
<div
style={{
alignItems: 'center',
display: 'flex',
flexDirection: 'column',
height: '100%',
justifyContent: 'center',
padding: '8px',
}}
>
<div style={{ width: '128px' }}>
<div
style={{
alignItems: 'center',
border: '1px solid rgba(0, 0, 0, 0.3)',
borderRadius: '4px',
display: 'flex',
padding: '8px',
position: 'relative',
width: '100%',
}}
>
<input
type="file"
style={{
height: '100%',
left: 0,
opacity: 0,
position: 'absolute',
top: 0,
width: '100%',
}}
/>
<div style={{ marginRight: '8px' }}>
<svg
viewBox="0 0 24 24"
style={{
fill: 'none',
height: '24',
stroke: "rgba(0, 0, 0, 0.4)",
strokeLinecap: 'round',
strokeLinejoin: 'round',
strokeWidth: 1,
width: '24',
}}
>
<path
d={`M18.5,7.5c0.275,0,0.341-0.159,0.146-0.354l-6.292-6.292c-0.195-0.196-0.512-0.196-0.707-0.001
c0,0-0.001,0.001-0.001,0.001L5.354,7.147C5.154,7.342,5.225,7.501,5.5,7.501h3v10c0,0.552,0.448,1,1,1h5c0.552,0,1-0.448,1-1V7.5
H18.5z
M23.5,18.5v4c0,0.552-0.448,1-1,1h-21c-0.552,0-1-0.448-1-1v-4`}
/>
</svg>
</div>
<Rectangle />
</div>
</div>
</div>
</BrowserFrame>
</div>
</DetailsLayout>
);