-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
2,116 additions
and
1,288 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 |
---|---|---|
|
@@ -67,3 +67,6 @@ typings/ | |
|
||
# Mac stuff | ||
.DS_Store | ||
|
||
# Local test file | ||
/index.html |
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,8 +1,10 @@ | ||
# Changelog | ||
|
||
## [2.0.3] - 2019-03-25 | ||
## [2.1.0] - 2019-05-07 | ||
|
||
### Fixed | ||
### Added | ||
|
||
- Fixed issue with action-list icon showing through action-list menu. | ||
- Fixed issue with polyfills | ||
- Added Page Layout section /core | ||
- Added .main-content class | ||
- Added Border section to /utilities | ||
- Added .border class along with more variants |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
161 changes: 161 additions & 0 deletions
161
src/App/Documentation/core/Page-layout/__snapshots__/index.test.js.snap
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,161 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Utilities: PageLayout CenteredContent renders 1`] = ` | ||
<Fragment> | ||
<h2 | ||
id="centered-content" | ||
> | ||
Centered content | ||
</h2> | ||
<p> | ||
For a centered layout use | ||
<Property | ||
value=".container" | ||
/> | ||
, it has built in breakpoints and will switch to full-width if the screen size is small enough (see | ||
<Link | ||
to="/docs/core/grid" | ||
> | ||
grid | ||
</Link> | ||
). When the content is centered it will require | ||
<Link | ||
to="/docs/utilities/borders" | ||
> | ||
borders | ||
</Link> | ||
on the right and left side. To make your topbar fill the page horizontally you will have to wrap it in a | ||
<Property | ||
value=".row" | ||
/> | ||
and | ||
<Property | ||
value=".container-fluid" | ||
/> | ||
. | ||
</p> | ||
<ComponentPreview | ||
codeFigure={true} | ||
language="html" | ||
> | ||
<div | ||
className="container-fluid" | ||
> | ||
<div | ||
className="row" | ||
> | ||
<header> | ||
Topbar component... | ||
</header> | ||
</div> | ||
</div> | ||
<div | ||
className="container" | ||
> | ||
<div | ||
className="row" | ||
> | ||
<div | ||
className="col-auto" | ||
> | ||
Sidebar component... | ||
</div> | ||
<main | ||
className="col main-content border-left border-right" | ||
> | ||
Main content things... | ||
</main> | ||
</div> | ||
</div> | ||
</ComponentPreview> | ||
</Fragment> | ||
`; | ||
|
||
exports[`Utilities: PageLayout FullWidth renders 1`] = ` | ||
<Fragment> | ||
<h2 | ||
id="full-width" | ||
> | ||
Full width page | ||
</h2> | ||
<p> | ||
To use a full width layout use a combination of grid and the | ||
<Property | ||
value=".main-content" | ||
/> | ||
class. | ||
<Property | ||
value=".main-content" | ||
/> | ||
has a white background and some padding. For a full width layout use | ||
<Property | ||
value=".border-left" | ||
/> | ||
to clearly seperate the sidebar and the main content. See | ||
<Link | ||
to="/docs/utilities/borders" | ||
> | ||
borders | ||
</Link> | ||
docs for more information. | ||
</p> | ||
<ComponentPreview | ||
codeFigure={true} | ||
language="html" | ||
> | ||
<div | ||
className="container-fluid" | ||
> | ||
<div | ||
className="row" | ||
> | ||
<header> | ||
Topbar component... | ||
</header> | ||
</div> | ||
<div | ||
className="row" | ||
> | ||
<div | ||
className="col-auto" | ||
> | ||
Sidebar component... | ||
</div> | ||
<main | ||
className="col main-content border-left" | ||
> | ||
Main content things... | ||
</main> | ||
</div> | ||
</div> | ||
</ComponentPreview> | ||
</Fragment> | ||
`; | ||
|
||
exports[`Utilities: PageLayout renders 1`] = ` | ||
<DocContainer | ||
docToc={true} | ||
> | ||
<p | ||
className="lead" | ||
> | ||
Use grid with our | ||
<Property | ||
value=".main-content" | ||
/> | ||
class to use a variety of page layouts. As we have a mobile first approach we only use 1rem as base padding for our | ||
<Property | ||
value=".main-content" | ||
/> | ||
class. Use the | ||
<Link | ||
to="/docs/utilities/spacing" | ||
> | ||
spacing | ||
</Link> | ||
classes to customize padding to fit your needs. | ||
</p> | ||
<FullWidth /> | ||
<CenteredContent /> | ||
</DocContainer> | ||
`; |
Oops, something went wrong.