Skip to content
This repository has been archived by the owner on Apr 25, 2019. It is now read-only.

Commit

Permalink
#198 update card bodies.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gareth Joyce committed Mar 7, 2017
1 parent dd015d7 commit 73edec2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
9 changes: 6 additions & 3 deletions pattern/component/card-group/1-base.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
<div class="card__body">
<?php $price = getData('price'); ?>
<p>
<strong class="h2 u-text-contextual-error"><span class="u-visually-hidden">Now</span> &pound;<?php echo number_format($price * 0.8, 2); ?></strong><span class="lead"> delivered</span><br />
<strong class="h2 u-text-contextual-error">
<span class="u-visually-hidden">Now</span> &pound;<?php echo number_format($price * 0.8, 2); ?>
</strong>
<span class="lead"> delivered</span><br />
Was <s>&pound;<?php echo number_format($price, 2); ?></s><br />
You save &pound;<?php echo number_format($price * 0.2, 2); ?><br />
</p>
Expand All @@ -20,7 +23,7 @@
</ul>
</div>
</div>
<div class="card card--featured stacked__last">
<div class="card">
<div class="card__body">
<label for="text" class="field-group__label">Qty:</label>
<form action="" class="u-space-bottom grid g-gutter-x g-center-y g-stretch-first">
Expand All @@ -32,7 +35,7 @@
</div>
</div>
<div>
<button type="submit" class="btn btn--lg btn--green">Add to basket</button>
<button type="submit" class="btn btn--lg">Add to basket</button>
</div>
</form>
<p><strong class="lead u-text-contextual-success">Free delivery.<br />Dispatched within 24 hours</strong></p>
Expand Down
2 changes: 1 addition & 1 deletion pattern/component/card/1-base.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<div class="g-col-sm-6 g-col-md-5 g-col-lg-4 g-col-xl-3">

<div class="card">
<div class="u-block">
<div class="card__body">
Block Content
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion pattern/component/card/2-header-footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<div class="card__header">
Card Header
</div>
<div class="u-block">
<div class="card__body">
Block Content
</div>
<div class="card__footer">
Expand Down
2 changes: 1 addition & 1 deletion pattern/component/card/3-image.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Card Header
</div>
<img src="//placehold.it/400x240" alt="Card image" class="u-img-responsive">
<div class="u-block">
<div class="card__body">
Block Content
</div>
<div class="card__footer">
Expand Down

0 comments on commit 73edec2

Please sign in to comment.