Skip to content

Commit

Permalink
feat(cards): Orange branded 🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
ffoodd committed May 14, 2020
1 parent 772d3da commit 6340954
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion scss/_card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
.card-header {
padding: $card-cap-padding-y $card-cap-padding-x;
margin-bottom: 0; // Removes the default margin-bottom of <hN>
font-weight: $font-weight-bold; // Boosted mod
color: $card-cap-color;
background-color: $card-cap-bg;
border-bottom: $card-border-width solid $card-border-color;
Expand All @@ -87,7 +88,8 @@

.card-footer {
padding: $card-cap-padding-y $card-cap-padding-x;
background-color: $card-cap-bg;
color: $card-cap-bg; // Boosted mod
background-color: $card-cap-color; // Boosted mod
border-top: $card-border-width solid $card-border-color;

&:last-child {
Expand Down
10 changes: 5 additions & 5 deletions site/content/docs/4.3/components/card.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ Add some navigation to a card's header (or block) with Boosted's [nav components

{{< example >}}
<div class="card text-center">
<div class="card-header">
<div class="card-header bg-white">
<ul class="nav nav-tabs card-header-tabs">
<li class="nav-item">
<a class="nav-link active" aria-current="true" href="#">Active</a>
Expand All @@ -310,7 +310,7 @@ Add some navigation to a card's header (or block) with Boosted's [nav components

{{< example >}}
<div class="card text-center">
<div class="card-header">
<div class="card-header bg-white">
<ul class="nav nav-pills card-header-pills">
<li class="nav-item">
<a class="nav-link active" href="#">Active</a>
Expand Down Expand Up @@ -409,7 +409,7 @@ Use [text and background utilities]({{< docsref "/utilities/colors" >}}) to chan
{{< example >}}
{{< card.inline >}}
{{- range (index $.Site.Data "theme-colors") }}
<div class="card{{ if not (or (eq .name "light") (eq .name "warning")) }} text-white{{ end }} bg-{{ .name }} mb-3" style="max-width: 18rem;">
<div class="card bg-{{ .name }} mb-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body">
<h5 class="card-title">{{ .name | title }} card title</h5>
Expand All @@ -433,7 +433,7 @@ Use [border utilities]({{< docsref "/utilities/borders" >}}) to change just the
{{- range (index $.Site.Data "theme-colors") }}
<div class="card border-{{ .name }} mb-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body{{ if not (eq .name "light") }} text-{{ .name }}{{ end }}">
<div class="card-body{{ if (eq .name "primary") }} text-{{ .name }}{{ end }}">
<h5 class="card-title">{{ .name | title }} card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
Expand All @@ -448,7 +448,7 @@ You can also change the borders on the card header and footer as needed, and eve

{{< example >}}
<div class="card border-success mb-3" style="max-width: 18rem;">
<div class="card-header bg-transparent border-success">Header</div>
<div class="card-header bg-transparent border-success text-body">Header</div>
<div class="card-body text-success">
<h5 class="card-title">Success card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
Expand Down

0 comments on commit 6340954

Please sign in to comment.