Skip to content

Commit

Permalink
added custom, dimension, margins and padding infos
Browse files Browse the repository at this point in the history
  • Loading branch information
martinezpoa committed Jan 4, 2021
1 parent f98985f commit 3101873
Show file tree
Hide file tree
Showing 4 changed files with 387 additions and 57 deletions.
66 changes: 27 additions & 39 deletions components/Block/Custom.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -57,58 +57,46 @@ Utilize a propriedade `custom` para escrever qualquer regra CSS.

### Exemplo 2

`bgColor`
`row center`

`fontColor`
`bgColor: primary1`

`height: 50px;`
`*color: rgba(255, 200, 155, 3);`

`width: 50px;`
`*padding: 20px`

<Space size={6} />

### Exemplo 3

`bgColor`
<pre>
<CodeBlock>{`<Block align= 'row' alignx='center' bgColor='primary1' custom='
color: rgba(255, 200, 155, 3);
padding: 20px;
'></Block>`}</CodeBlock>
</pre>

`fontColor`
<Space size={3} />

`height: 50px;`
<ThemeProvider theme={theme}>
<Block
bgColor='primary1'
align='row'
alignx='center'
custom={`
color: rgba(255, 200, 155, 3);
padding: 20px;
`}>
<span>item1</span>
<span>item2</span>
<span>item3</span>
</Block>
</ThemeProvider>

`width: 50px;`
<Space size={6} />

`cursor: pointer`
### Exemplo 3

<Space size={6} />

### Exemplo 4

`bgColor`

`fontColor`

`height: 50px;`

`width: 50px;`

`cursor: pointer`

`border-radius: 5px`

<Space size={6} />

### Exemplo 5

`bgColor`

`fontColor`

`height: 50px;`

`width: 50px;`

`cursor: pointer`

`border-radius: 5px`

`hover behavior`
71 changes: 65 additions & 6 deletions components/Block/Dimensions.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ Utilize a propriedade `height` ou `width`

### Exemplo 1

`height: '50px'`
`height: '20px'`

`width: '50px'`
`width: '100px'`

<pre>
<CodeBlock>{`<Block width='50px'></Block>`}</CodeBlock>
<CodeBlock>{`<Block width='100px'></Block>`}</CodeBlock>
</pre>

<Space size={3} />
Expand All @@ -39,7 +39,8 @@ Utilize a propriedade `height` ou `width`
<Block
bgColor='primary2'
fontColor='white'
width='100px'>
width='100px'
height='20px'>
Texto simples
</Block>
</ThemeProvider>
Expand All @@ -48,14 +49,72 @@ Utilize a propriedade `height` ou `width`

### Exemplo 2

`height: '20px'`

`width: '200px'`

<pre>
<CodeBlock>{`<Block width='200px'></Block>`}</CodeBlock>
</pre>

<Space size={3} />

<ThemeProvider theme={theme}>
<Block
bgColor='primary2'
fontColor='white'
width='200px'
height='20px'>
Texto simples
</Block>
</ThemeProvider>

<Space size={6} />

### Exemplo 3

`height: '20px'`

`width: '400px'`

<pre>
<CodeBlock>{`<Block width='400px'></Block>`}</CodeBlock>
</pre>

<Space size={3} />

<ThemeProvider theme={theme}>
<Block
bgColor='primary2'
fontColor='white'
width='400px'
height='20px'>
Texto simples
</Block>
</ThemeProvider>

<Space size={6} />

### Exemplo 4

<Space size={6} />
`height: '20px'`

`width: '100%'`

<pre>
<CodeBlock>{`<Block width='100%'></Block>`}</CodeBlock>
</pre>

### Exemplo 5
<Space size={3} />

<ThemeProvider theme={theme}>
<Block
bgColor='primary2'
fontColor='white'
width='100%'
height='20px'>
Texto simples
</Block>
</ThemeProvider>

<Space size={6} />
Loading

0 comments on commit 3101873

Please sign in to comment.