Skip to content

Commit

Permalink
specify the divider flowrow variants
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelpuyol committed May 26, 2021
1 parent c2d4d73 commit 3955254
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
14 changes: 11 additions & 3 deletions docs/content/components/layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ of the sidebar position.
### Dividers

Use `Layout--divided` in conjuction with a `Layout-divider` to show a divider between the main content and the sidebar.
Add `Layout-divider--shallow` to change the divider on `sm` to be filled and 8px tall.
Flowing as row:
- default: shows a `1px` line between main and sidebar
- `Layout-divider--flowRow-shallow`: shows a filled `8px` divider.
- `Layout-divider--flowRow-hidden`: hides the divider


```html live
Expand All @@ -57,8 +60,13 @@ Add `Layout-divider--shallow` to change the divider on `sm` to be filled and 8px
</div>
<div class="Layout Layout--divided">
<div class="Layout-main border">main content</div>
<div class="Layout-divider Layout-divider--shallow"></div>
<div class="Layout-sidebar border">shallow divider</div>
<div class="Layout-divider Layout-divider--flowRow-shallow"></div>
<div class="Layout-sidebar border">flowRow shallow divider</div>
</div>
<div class="Layout Layout--divided">
<div class="Layout-main border">main content</div>
<div class="Layout-divider Layout-divider--flowRow-hidden"></div>
<div class="Layout-sidebar border">flowRow hidden divider</div>
</div>
```

Expand Down
6 changes: 5 additions & 1 deletion src/layout/mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@
.Layout-divider {
height: 1px;

&.Layout-divider--shallow {
&.Layout-divider--flowRow-hidden {
display: none;
}

&.Layout-divider--flowRow-shallow {
height: 8px;
margin-right: 0;
background: var(--color-bg-canvas-inset);
Expand Down

0 comments on commit 3955254

Please sign in to comment.