-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New classes: overflox, flex, textAlignVertical added missing documentation to border radius
- Loading branch information
1 parent
ed48973
commit a6dc010
Showing
17 changed files
with
496 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
--- | ||
id: version-0.2.0-borders | ||
title: Borders | ||
original_id: borders | ||
--- | ||
|
||
## border | ||
|
||
set the border style of an element, use `border` property: | ||
|
||
```js | ||
import { View } from 'react-native' | ||
import C from 'consistencss' | ||
|
||
... | ||
return ( | ||
<View style={C.borderYellow} /> | ||
) | ||
``` | ||
|
||
--- | ||
|
||
border has many variants: | ||
|
||
- border[color: string] | ||
|
||
`borderBlue` returns { borderColor: 'blue' } | ||
|
||
- border[width: number] | ||
|
||
`border4` returns { borderWidth: 16 } | ||
|
||
especify side: | ||
|
||
border[side: string][color: string] | ||
|
||
`border[top | bottom | left | right | start | end]` | ||
|
||
## radius | ||
|
||
set the border radius of an element, use `radius` property: | ||
|
||
```js | ||
import { View } from 'react-native' | ||
import C from 'consistencss' | ||
|
||
... | ||
return ( | ||
<View style={C.radius4} /> | ||
<View style={C.radiusTop4} /> | ||
<View style={C.radiusLeft2} /> | ||
) | ||
``` | ||
|
||
especify side: | ||
|
||
radius[side: string][size: number] | ||
|
||
`border[top | bottom | left | right | start | end]` | ||
|
||
## Examples: | ||
|
||
`bordertopYellow` returns `{ borderTopColor: 'yellow' }` | ||
|
||
`borderleft8` returns `{ borderLeftWidth: 32 }` | ||
|
||
`borderbottomHairline` returns `{ borderBottomWidth: 0.38095238095238093 }` | ||
|
||
> see more colors at https://reactnative.dev/docs/colors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
id: version-0.2.0-layout | ||
original_id: layout | ||
title: Layout | ||
--- | ||
|
||
```js | ||
import { View } from 'react-native' | ||
import C, { apply } from 'consistencss' | ||
|
||
... | ||
return ( | ||
<View style={C.absolute} /> | ||
<View style={C.ltr} /> | ||
<View style={C.rtl} /> | ||
) | ||
``` | ||
|
||
## absolute | ||
|
||
`absolute` -> { position: 'absolute' } | ||
|
||
## top | ||
|
||
`top4` -> { top: 16 } | ||
|
||
## bottom | ||
|
||
`bottom4` -> { bottom: 16 } | ||
|
||
## left | ||
|
||
`left4` -> { left: 16 } | ||
|
||
## right | ||
|
||
`right4` -> { right: 16 } | ||
|
||
## start | ||
|
||
`start6` -> { start: 24 } | ||
|
||
## end | ||
|
||
`end2` -> { end: 8 } | ||
|
||
## ltr | ||
|
||
`ltr` -> { direction: 'ltr' } | ||
|
||
## rtl | ||
|
||
`rtl` -> { direction: 'ltrtlr' } |
Oops, something went wrong.