Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Chore] 5 Column Documentation #273

Merged
merged 1 commit into from
Oct 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,27 @@ <h1 class="go-heading-4">Flexbox</h1>
<h1 class="go-heading-4">Basic Examples</h1>
</ng-container>
<ng-container go-card-content>
<h2 id="go-column-20" class="go-heading-5">5 Column <em>(~20%)</em></h2>
<p class="go-body-copy">
The <code class="code-block--inline">.go-column--20</code> will create
a column that starts at 20% of the width of the container before filling
the remaining space. It can be used to create a basic 5 column grid.
</p>
<p class="go-body-copy">
On devices that are tablet sized and smaller the 5 columns created with
the <code class="code-block--inline">.go-column--20</code> class will
stretch to being 2 columns per row. Giving it more space on smaller
devices.
</p>
<section class="go-container example-grid">
<div class="go-column go-column--20 example-grid__column">1 of 5</div>
<div class="go-column go-column--20 example-grid__column">2 of 5</div>
<div class="go-column go-column--20 example-grid__column">3 of 5</div>
<div class="go-column go-column--20 example-grid__column">4 of 5</div>
<div class="go-column go-column--20 example-grid__column">5 of 5</div>
</section>
<code [highlight]="basicExample20"></code>

<h2 id="go-column-25" class="go-heading-5">4 Column <em>(~25%)</em></h2>
<p class="go-body-copy">
The <code class="code-block--inline">.go-column--25</code> will create
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ import { Component } from '@angular/core';
export class GridComponent {
pageTitle: string = 'Grid System';

basicExample20: string = `
<section class="go-container">
<div class="go-column go-column--20">1 of 5</div>
<div class="go-column go-column--20">2 of 5</div>
<div class="go-column go-column--20">3 of 5</div>
<div class="go-column go-column--20">4 of 5</div>
<div class="go-column go-column--20">5 of 5</div>
</section>
`;

basicExample25: string = `
<section class="go-container">
<div class="go-column go-column--25">1 of 4</div>
Expand Down