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.
making updates to card component and adding css for accent and checkbox
- Loading branch information
Showing
22 changed files
with
70 additions
and
155 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 was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,40 +1,51 @@ | ||
|
||
<div class="card {{#if textcenter}}text-xs-center{{/if}} {{#if multiselect}}card-pf-view-multi-select{{/if}}"> | ||
<div class="card {{#if textCenter}}text-xs-center{{/if}} {{#if cardAccent}}pf-card--accented{{/if}} {{#if multiselect}}pf-card--multiselect{{/if}}"> | ||
{{#if cardHeader}} | ||
<div class="card-header"> | ||
<div class="card-header {{#if multiselect}}pf-card--multiselect__header{{/if}}"> | ||
{{#if multiselect}} | ||
<div class="pf-card__checkbox"> | ||
<input type="checkbox"> | ||
</div> | ||
{{/if}} | ||
{{#if cardKebab}} | ||
{{> basics-dropdown isKebab=true pullright=true }} | ||
{{/if}} | ||
<{{cardTitleSize}} class="card-title">{{cardTitle}}</{{cardTitleSize}}> | ||
{{#if cardHeaderDropdown}} | ||
{{> basics-dropdown dropdownText="Dropdown" pullright=true }} | ||
{{/if}} | ||
<{{cardTitleSize}} class="card-title">{{{cardTitle}}}</{{cardTitleSize}}> | ||
</div> | ||
<div class="card-block"> | ||
{{else}} | ||
<div class="card-block"> | ||
<div class="card-block {{#if multiselect}}pf-card--multiselect__block{{/if}}"> | ||
{{#if multiselect}} | ||
<div class="card-pf-view-checkbox"> | ||
<div class="pf-card__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}}> | ||
<{{cardTitleSize}} class="card-title">{{{cardTitle}}}</{{cardTitleSize}}> | ||
{{/if}} | ||
{{#if @partial-block}} | ||
{{> @partial-block}} | ||
{{else}} | ||
<p class="card-text">{{{cardContents}}}</p> | ||
{{/if}} | ||
</div> | ||
{{#if cardFooter}} | ||
<div class="card-footer text-muted"> | ||
{{cardFooterContents}} | ||
{{#if cardFooterDropdown}} | ||
{{> basics-dropdown dropdownText="Dropdown" pullright=true }} | ||
{{/if}} | ||
{{{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
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 @@ | ||
{{> components-card cardTitleSize="h3" cardTitle="Card with Accent" cardContents="This card has an accent" cardAccent=true }} |
1 change: 1 addition & 0 deletions
1
source/_patterns/components/03-cards/01-card-footer-dropdown.hbs
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 @@ | ||
{{> components-card cardTitleSize="h4" cardTitle="Card Footer with Dropdown" cardContents="This card has a Footer and a dropdown menu in the footer." cardFooter=true cardFooterContents="Card Footer" cardFooterDropdown=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 @@ | ||
{{> components-card cardTitleSize="h4" cardTitle="Card with Footer" cardContents="This card has a Footer." textCenter=true cardFooter=true cardFooterContents="Card Footer"}} |
1 change: 1 addition & 0 deletions
1
source/_patterns/components/03-cards/01-card-header-dropdown.hbs
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 @@ | ||
{{> components-card cardTitleSize="h4" cardTitle="Card Header with Dropdown" cardContents="This card has a header and a dropdown menu in the header." cardHeader=true cardHeaderDropdown=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 @@ | ||
{{> components-card cardTitleSize="h4" cardTitle="Card Header with Kebab " cardContents="This card has a header and a kebab." textCenter=true cardHeader=true cardKebab=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 @@ | ||
{{> components-card cardTitleSize="h4" cardTitle="Card with Header" cardContents="This card has a header." textCenter=true cardHeader=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 @@ | ||
{{> components-card cardTitleSize="h2" cardTitle="Card with Large Icon" cardContents="This card has a large title and a large icon, with centered text." textCenter=true cardTitleIconLarge=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 @@ | ||
{{> components-card cardTitleSize="h3" cardTitle="Card with Medium Icon" cardContents="This card has a medium size title and medium icon, with centered text" textCenter=true cardTitleIconMedium=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 @@ | ||
{{> components-card cardTitleSize="h3" cardTitle="Card with Kebab" cardContents="This card has a kebab" cardKebab=true }} |
1 change: 1 addition & 0 deletions
1
source/_patterns/components/03-cards/01-card-multiselect-header.hbs
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 @@ | ||
{{> components-card cardTitle="Card with Checkbox and Header" cardContents="When cards when headers are enabled for multiselection, the checkbox displays in the header." multiselect=true cardHeader=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 @@ | ||
{{> components-card cardTitleSize="h3" cardTitle="Card with Checkbox" cardContents="This card has a checkbox, for cases when a card view supports multiselection" multiselect=true }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
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