-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #269 from FirefoxUX/staging
v0.6.6
- Loading branch information
Showing
20 changed files
with
126 additions
and
208 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.
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,58 @@ | ||
<header> | ||
<%- include('../includes/global/message-bar.html', {type: 'Warning', text: 'This is a working draft', button: 'Report Issue'}); %> | ||
<h1>Card</h1> | ||
<p> | ||
Card is a component to visually group related information and controls. | ||
</p> | ||
</header> | ||
|
||
<section> | ||
<h2>Usage</h2> | ||
<div class="cf nr2 nl2 mb3"> | ||
<div class="fl-ns w-50-ns ph2"> | ||
<img src="../images/components/card/card-usage.svg" alt="TestPilot website uses the card component"> | ||
</div> | ||
<div class="fl-ns w-50-ns ph2"> | ||
<p> | ||
When there are collections of images and components that need to be presented on the same page, use cards to help users quickly scan the information from collections to collections. | ||
</p> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
<section> | ||
<h2>Styles</h2> | ||
<h3>Borders</h3> | ||
<div class="cf nr2 nl2 mb3"> | ||
<div class="fl-ns w-50-ns ph2"> | ||
<img src="../images/components/card/borders.png" alt="visual examples of border radius and highlight"> | ||
</div> | ||
<div class="fl-ns w-50-ns ph2"> | ||
<p class="mb2">Border radius: <code>4px</code></p> | ||
<p class="mb2">Highlight border: Grey 30 <code>#D7D7DB</code>, <code>5px</code> (outside)</p> | ||
</div> | ||
</div> | ||
|
||
<h3>Shadow</h3> | ||
<div class="cf nr2 nl2 mb3"> | ||
<div class="fl-ns w-50-ns ph2"> | ||
<img src="../images/components/card/shadow.svg" alt="a visual example of shadow 10"> | ||
</div> | ||
<div class="fl-ns w-50-ns ph2"> | ||
<p>Shadow is optional for cards.</p> | ||
<p>If there’s a need of adding a shadow, use <a href="../patterns/shadows.html">shadow 10</a> to highlight elevation.</p> | ||
</div> | ||
</div> | ||
|
||
<h3>Padding</h3> | ||
<p>Use the same padding on the left & right to keep the visual balance.</p> | ||
<div class="cf nr2 nl2 mb3"> | ||
<div class="fl-ns w-50-ns ph2"> | ||
<img src="../images/components/card/padding.svg" alt="The activity stream example of left right padding"> | ||
</div> | ||
<div class="fl-ns w-50-ns ph2"> | ||
<p class="mb2">Default padding: <code>16px</code></p> | ||
<p class="mb2">Large padding: <code>20px</code></p> | ||
</div> | ||
</div> | ||
</section> |
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.