forked from pattern-lab/edition-node-gulp
-
Notifications
You must be signed in to change notification settings - Fork 16
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
initial draft of a kebab pattern and a card pattern #26
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
90fb640
initial draft of a kebab pattern and a card pattern
jgiardino 5ac9511
making updates to card component and adding css for accent and checkbox
jgiardino 166c90f
removed kebab variation from the dropdown pattern, removed kebab patt…
jgiardino 889ceb5
forgot to remove kebab css from previous commit
jgiardino ffec821
fixing class name in card css file
jgiardino File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,35 @@ | ||
|
||
<div class="card pf-card {{#if textCenter}}text-xs-center{{/if}} {{#if cardAccent}}pf-card--accented{{/if}}"> | ||
{{#if cardHeader}} | ||
<div class="card-header"> | ||
{{#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"> | ||
{{#if cardTitleIconLarge}} | ||
{{> basics-icon iconFamily="pficon" iconName="pficon-middleware" iconModifier="pf-icon--circle pf-icon--lg mb-pf-lg" }} | ||
{{/if}} | ||
{{#if cardTitleIconMedium}} | ||
{{> basics-icon iconFamily="pficon" iconName="pficon-middleware" iconModifier="pf-icon--circle pf-icon--md mb-pf-md" }} | ||
{{/if}} | ||
<{{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"> | ||
{{#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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
title: Card | ||
--- | ||
## Overview | ||
|
||
This is a Bootstrap component, [see complete documentation here](http://v4-alpha.getbootstrap.com/components/card/) | ||
|
||
## Usage | ||
|
||
| Class | Usage | | ||
| -- | -- | | ||
| `.pf-card--accented` **Applied to:** `.card` | **Outcome:** Displays a top border with an accent color **Required:** No | | ||
| `.pf-card--multiselect` **Applied to:** `.card` | **Outcome:** Alters the card layout to accommodate a checkbox **Required:** If displaying a checkbox in the card | | ||
| `.pf-card__checkbox` **Applied to:** parent `div` of `<input type="checkbox">` | **Outcome:** Alters the card layout to accommodate a checkbox **Required:** No **Remarks:** Include class mentioned in previous row | |
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 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should there be a .pf-card-multiselect in the scss?