-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docs): improve docs css for flex selection
- Loading branch information
Showing
4 changed files
with
45 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
.docs__layout-vertically { | ||
div { | ||
.wrapper, | ||
.wrapperExtend > * { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
} | ||
|
||
.docs__layout-horizontally { | ||
.wrapper { | ||
display: flex; | ||
flex-direction: row; | ||
} | ||
} | ||
|
||
.docs__horizontal-spacing { | ||
div > * { | ||
.wrapperExtend > * { | ||
margin-right: 1rem; | ||
} | ||
} |
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 |
---|---|---|
@@ -1,9 +1,27 @@ | ||
``` | ||
<Card> | ||
<h2>Specifications</h2> | ||
<ul> | ||
<li>2.2gHz CPU</li> | ||
<li>250GB Storage</li> | ||
</ul> | ||
<Heading level="h2">Specifications</Heading> | ||
<div style={{ padding: "1rem 0" }}> | ||
<UnorderedList> | ||
<UnorderedList.Item>2.2gHz CPU</UnorderedList.Item> | ||
<UnorderedList.Item>250GB Storage</UnorderedList.Item> | ||
</UnorderedList> | ||
</div> | ||
</Card> | ||
``` | ||
|
||
### Coloured variants | ||
|
||
```jsx {"props": {"className": "docs__layout-horizontally docs__horizontal-spacing"}} | ||
<div className="wrapper"> | ||
<Card variant="lavender"> | ||
<Heading level="h2">Need a hand?</Heading> | ||
<Paragraph>Our newest, best handset.</Paragraph> | ||
</Card> | ||
|
||
<Card variant="gray"> | ||
<Heading level="h2">Ourtech Phone 2</Heading> | ||
<Paragraph>Our newest, best handset.</Paragraph> | ||
</Card> | ||
</div> | ||
``` |
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