forked from pattern-lab/edition-node-gulp
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial draft of a kebab pattern and a card pattern
- Loading branch information
Showing
14 changed files
with
236 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
{{> basics-dropdown dropdownText= "On Right" btnClass="btn-primary" pullright=true }} | ||
{{> basics-dropdown dropdownText= "Primary" btnClass="btn-primary" }} | ||
{{> basics-dropdown dropdownText= "Secondary" btnClass="btn-secondary" }} | ||
{{> basics-dropdown dropdownText= "Success" btnClass="btn-success" }} | ||
{{> basics-dropdown dropdownText= "Info" btnClass="btn-info" }} | ||
{{> basics-dropdown dropdownText= "Warning" btnClass="btn-warning" }} | ||
{{> basics-dropdown dropdownText= "Danger" btnClass="btn-danger" }} | ||
{{> basics-dropdown isKebab= true }} |
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,3 @@ | ||
{{> basics-dropdown isKebab= true }} | ||
{{> basics-dropdown isKebab= true dropdownState="open" }} | ||
<div>Paragraph included to get <br />past this dropdown menu<br /><br /></div> |
Empty file.
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,14 @@ | ||
{{#if isCardFooter}} | ||
{{else}} | ||
<div class="card "> | ||
<div class="card-block"> | ||
<p class="card-text">Lorem ipsum dolor sit amet <a href> More Information</a>.</p> | ||
{{/if}} | ||
</div> | ||
{{#if cardFooter}} | ||
<div class="card-footer text-muted"> | ||
{{cardFooterContents}} | ||
</div> | ||
{{/if}} | ||
|
||
</div> |
Empty file.
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,38 @@ | ||
|
||
<div class="card {{#if textcenter}}text-xs-center{{/if}} {{#if multiselect}}card-pf-view-multi-select{{/if}}"> | ||
{{#if cardHeader}} | ||
<div class="card-header"> | ||
{{#if cardKebab}} | ||
{{> basics-dropdown isKebab=true pullright=true dropdownState="open" }} | ||
{{/if}} | ||
<{{cardTitleSize}} class="card-title">{{cardTitle}}</{{cardTitleSize}}> | ||
</div> | ||
<div class="card-block"> | ||
{{else}} | ||
<div class="card-block"> | ||
{{#if multiselect}} | ||
<div class="card-pf-view-checkbox"> | ||
<input type="checkbox"> | ||
</div> | ||
{{/if}} | ||
{{#if cardTitleIconLarge}} | ||
<div class="pf-card__top-element"> | ||
{{> basics-icon iconFamily="pficon" iconName="pficon-middleware" iconModifier="pf-icon--circle pf-icon--lg" }} | ||
</div> | ||
{{/if}} | ||
{{#if cardTitleIconMedium}} | ||
<div class="pf-card__top-element"> | ||
{{> basics-icon iconFamily="pficon" iconName="pficon-middleware" iconModifier="pf-icon--circle pf-icon--md" }} | ||
</div> | ||
{{/if}} | ||
{{#if cardKebab}} | ||
{{> basics-dropdown isKebab=true pullright=true }} | ||
{{/if}} | ||
<{{cardTitleSize}} class="card-title">{{cardTitle}}</{{cardTitleSize}}> | ||
{{/if}} | ||
{{#if isCardHeader}} | ||
{{else}} | ||
<p class="card-text">Lorem ipsum dolor sit amet <a href> More Information</a>.</p> | ||
</div> | ||
</div> | ||
{{/if}} |
Empty file.
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,40 @@ | ||
|
||
<div class="card {{#if textcenter}}text-xs-center{{/if}} {{#if multiselect}}card-pf-view-multi-select{{/if}}"> | ||
{{#if cardHeader}} | ||
<div class="card-header"> | ||
{{#if cardKebab}} | ||
{{> basics-dropdown isKebab=true pullright=true }} | ||
{{/if}} | ||
<{{cardTitleSize}} class="card-title">{{cardTitle}}</{{cardTitleSize}}> | ||
</div> | ||
<div class="card-block"> | ||
{{else}} | ||
<div class="card-block"> | ||
{{#if multiselect}} | ||
<div class="card-pf-view-checkbox"> | ||
<input type="checkbox"> | ||
</div> | ||
{{/if}} | ||
{{#if cardTitleIconLarge}} | ||
<div class="pf-card__top-element"> | ||
{{> basics-icon iconFamily="pficon" iconName="pficon-middleware" iconModifier="pf-icon--circle pf-icon--lg" }} | ||
</div> | ||
{{/if}} | ||
{{#if cardTitleIconMedium}} | ||
<div class="pf-card__top-element"> | ||
{{> basics-icon iconFamily="pficon" iconName="pficon-middleware" iconModifier="pf-icon--circle pf-icon--md" }} | ||
</div> | ||
{{/if}} | ||
{{#if cardKebab}} | ||
{{> basics-dropdown isKebab=true pullright=true }} | ||
{{/if}} | ||
<{{cardTitleSize}} class="card-title">{{cardTitle}}</{{cardTitleSize}}> | ||
{{/if}} | ||
<p class="card-text">{{{cardContents}}}</p> | ||
</div> | ||
{{#if cardFooter}} | ||
<div class="card-footer text-muted"> | ||
{{cardFooterContents}} | ||
</div> | ||
{{/if}} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
title: Card | ||
--- | ||
## Overview | ||
|
||
This is a Bootstrap component, [see complete documentation here](http://v4-alpha.getbootstrap.com/components/card/) |
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,81 @@ | ||
<p class="figure-caption"><strong>Columns</strong> This example is using bootstrap wrapper .card-columns</p> | ||
<div class="card-columns"> | ||
{{> components-card cardTitleSize="h2" cardTitle="First card" cardContents="<strong>Created On</strong> 2015-03-01 02:00 AM<br />Never Expires" textcenter=true cardTitleIconLarge=true }} | ||
{{> components-card cardTitleSize="h2" cardTitle="Second card" cardContents="<strong>Created On</strong> 2015-03-01 02:00 AM<br />Never Expires" textcenter=true cardTitleIconLarge=true }} | ||
{{> components-card cardTitleSize="h2" cardTitle="Third card" cardContents="<strong>Created On</strong> 2015-03-01 02:00 AM<br />Never Expires" textcenter=true cardTitleIconLarge=true }} | ||
{{> components-card cardTitleSize="h2" cardTitle="Fourth card" cardContents="<strong>Created On</strong> 2015-03-01 02:00 AM<br />Never Expires" textcenter=true cardTitleIconLarge=true }} | ||
{{> components-card cardTitleSize="h2" cardTitle="Fifth card" cardContents="<strong>Created On</strong> 2015-03-01 02:00 AM<br />Never Expires" textcenter=true cardTitleIconLarge=true }} | ||
{{> components-card cardTitleSize="h2" cardTitle="Sixth card" cardContents="<strong>Created On</strong> 2015-03-01 02:00 AM<br />Never Expires" textcenter=true cardTitleIconLarge=true }} | ||
</div> | ||
|
||
<p class="mt-pf-xxxl figure-caption"><strong>Groups</strong> This example is using bootstrap wrapper .card-group</p> | ||
<div class="card-group"> | ||
{{> components-card cardTitleSize="h3" cardTitle="Title" cardContents="Lorem ipsum dolor sit amet <a href> More Information</a>." multiselect=true }} | ||
{{> components-card cardTitleSize="h3" cardTitle="Second card" cardContents="Lorem ipsum dolor sit amet <a href> More Information</a>." multiselect=true }} | ||
{{> components-card cardTitleSize="h3" cardTitle="Third card" cardContents="Lorem ipsum dolor sit amet <a href> More Information</a>." multiselect=true }} | ||
{{> components-card cardTitleSize="h3" cardTitle="Fourth card" cardContents="Lorem ipsum dolor sit amet <a href> More Information</a>." cardContents="Lorem ipsum dolor sit amet <a href> More Information</a>." multiselect=true }} | ||
</div> | ||
<div class="card-group"> | ||
{{> components-card cardTitleSize="h3" cardTitle="Fifth card" cardContents="Lorem ipsum dolor sit amet <a href> More Information</a>." multiselect=true }} | ||
{{> components-card cardTitleSize="h3" cardTitle="Sixth card" cardContents="Lorem ipsum dolor sit amet <a href> More Information</a>." multiselect=true }} | ||
</div> | ||
|
||
<p class="mt-pf-xxxl figure-caption"><strong>Deck</strong> This example is using bootstraps wrapper .card-deck</p> | ||
<p class="figure-caption">These cards also include the text-xs-center class.</p> | ||
|
||
<div class="card-deck"> | ||
{{> components-card cardTitleSize="h3" cardTitle="Title" cardContents="Lorem ipsum dolor sit amet <a href> More Information</a>." textcenter=true cardKebab=true }} | ||
{{> components-card cardTitleSize="h3" cardTitle="Second card" cardContents="Lorem ipsum dolor sit amet <a href> More Information</a>." textcenter=true cardKebab=true }} | ||
{{> components-card cardTitleSize="h3" cardTitle="Third card" cardContents="Lorem ipsum dolor sit amet <a href> More Information</a>." textcenter=true cardKebab=true }} | ||
{{> components-card cardTitleSize="h3" cardTitle="Fourth card" cardContents="Lorem ipsum dolor sit amet <a href> More Information</a>." textcenter=true cardKebab=true }} | ||
</div> | ||
<div class="card-deck"> | ||
{{> components-card cardTitleSize="h3" cardTitle="Fifth card" cardContents="Lorem ipsum dolor sit amet <a href> More Information</a>." textcenter=true cardKebab=true }} | ||
{{> components-card cardTitleSize="h3" cardTitle="Sixth card" cardContents="Lorem ipsum dolor sit amet <a href> More Information</a>." textcenter=true cardKebab=true }} | ||
</div> | ||
|
||
<p class="mt-pf-xxxl figure-caption"><strong>Grid</strong> This example is using our current application of .col-sm-4 etc... classes per card. </p> | ||
<p class="figure-caption">These cards also include the text-xs-center class.</p> | ||
<div class="row"> | ||
<div class="col-xs-12 col-sm-4 col-md-3 col-lg-2"> | ||
{{> components-card cardTitleSize="h4" cardTitle="First Card" cardContents="Lorem ipsum dolor sit amet <a href> More Information</a>." textcenter=true cardTitleIconMedium=true }} | ||
</div> | ||
<div class="col-xs-12 col-sm-4 col-md-3 col-lg-2"> | ||
{{> components-card cardTitleSize="h4" cardTitle="Second Card" cardContents="Lorem ipsum dolor sit amet <a href> More Information</a>." textcenter=true cardTitleIconMedium=true }} | ||
</div> | ||
<div class="col-xs-12 col-sm-4 col-md-3 col-lg-2"> | ||
{{> components-card cardTitleSize="h4" cardTitle="Third Card" cardContents="Lorem ipsum dolor sit amet <a href> More Information</a>." textcenter=true cardTitleIconMedium=true }} | ||
</div> | ||
<div class="col-xs-12 col-sm-4 col-md-3 col-lg-2"> | ||
{{> components-card cardTitleSize="h4" cardTitle="Fourth Card" cardContents="Lorem ipsum dolor sit amet <a href> More Information</a>." textcenter=true cardTitleIconMedium=true }} | ||
</div> | ||
<div class="col-xs-12 col-sm-4 col-md-3 col-lg-2"> | ||
{{> components-card cardTitleSize="h4" cardTitle="Fifth Card" cardContents="Lorem ipsum dolor sit amet <a href> More Information</a>." textcenter=true cardFooter=true cardFooterContents="Card Footer" }} | ||
</div> | ||
<div class="col-xs-12 col-sm-4 col-md-3 col-lg-2"> | ||
{{> components-card cardTitleSize="h4" cardTitle="Sixth Card" cardContents="Lorem ipsum dolor sit amet <a href> More Information</a>." textcenter=true cardHeader=true cardHeaderContents="Card Header" }} | ||
</div> | ||
</div> | ||
|
||
<p class="mt-pf-xxxl figure-caption"><strong>Grid</strong> This example is using our current application of .col-sm-4 etc... classes per card. </p> | ||
<p class="figure-caption">These cards also include the text-xs-center class.</p> | ||
<div class="row"> | ||
<div class="col-xs-12 col-sm-4 col-md-3 col-lg-2"> | ||
{{> components-card-heading cardTitleSize="h4" cardTitle="First Card" textcenter=true cardTitleIconLarge=true }} | ||
</div> | ||
<div class="col-xs-12 col-sm-4 col-md-3 col-lg-2"> | ||
{{> components-card-heading cardTitleSize="h4" cardTitle="Second Card" textcenter=true cardTitleIconMedium=true }} | ||
</div> | ||
<div class="col-xs-12 col-sm-4 col-md-3 col-lg-2"> | ||
{{> components-card-heading cardTitleSize="h4" cardTitle="Third Card" textcenter=true isCardHeader=true }}<p class="card-text"><strong>Created On</strong> 2015-03-01 02:00 AM<br />Never Expires</p></div></div> | ||
</div> | ||
<div class="col-xs-12 col-sm-4 col-md-3 col-lg-2"> | ||
{{> components-card-heading cardTitleSize="h4" cardTitle="Fourth Card" textcenter=true cardHeader=true cardKebab=true }} | ||
</div> | ||
<div class="col-xs-12 col-sm-4 col-md-3 col-lg-2"> | ||
{{> components-card-heading cardTitleSize="h4" cardTitle="Fifth Card" textcenter=true cardKebab=true isCardHeader=true }}<p class="card-text"><strong>Created On</strong> 2015-03-01 02:00 AM<br />Never Expires</p>{{> components-card-footer isCardFooter=true cardFooter=true cardFooterContents="Card footer." }} | ||
</div> | ||
<div class="col-xs-12 col-sm-4 col-md-3 col-lg-2"> | ||
{{> components-card-heading cardTitleSize="h4" cardTitle="Sixth Card" textcenter=true multiselect=true }} | ||
</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
title: Card | ||
--- | ||
## Overview | ||
|
||
This is a Bootstrap component, [see complete documentation here](http://v4-alpha.getbootstrap.com/components/card/) |
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,21 @@ | ||
// | ||
// Dropdowns | ||
// -------------------------------------------------- | ||
|
||
// Kebab dropdown | ||
.pf-dropdown__kebab { | ||
.dropdown-toggle::after { | ||
display: none; | ||
} | ||
.btn-link { | ||
color: $color-pf-black-900; | ||
font-size: $font-size-relative-lg; | ||
line-height: 1; | ||
padding: 0 0 $pf-spacer-xxxs; | ||
&:active, | ||
&:focus, | ||
&:hover { | ||
color: $color-pf-blue-500; | ||
} | ||
} | ||
} |
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