Skip to content

Commit

Permalink
feat(utilities): remove font-weight utilities forbidden by Orange Bra…
Browse files Browse the repository at this point in the history
…nd for #283
  • Loading branch information
ffoodd committed Jan 22, 2020
1 parent 82d844b commit 540ae47
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion scss/_reboot.scss
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ blockquote {

b,
strong {
font-weight: $font-weight-bolder;
font-weight: $font-weight-bold; // Boosted mod: ensure 700
}


Expand Down
5 changes: 1 addition & 4 deletions scss/_utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -361,11 +361,8 @@ $utilities: map-merge(
"font-weight": (
property: font-weight,
values: (
light: $font-weight-light,
lighter: $font-weight-lighter,
normal: $font-weight-normal,
bold: $font-weight-bold,
bolder: $font-weight-bolder
bold: $font-weight-bold
)
),
"text-transform": (
Expand Down
6 changes: 3 additions & 3 deletions scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -397,11 +397,11 @@ $font-size-base: 1rem !default; // Assumes the browser default, typ
$font-size-lg: $font-size-base * 1.25 !default;
$font-size-sm: $font-size-base * .875 !default;

$font-weight-lighter: lighter !default;
$font-weight-light: 300 !default;
//$font-weight-lighter: lighter !default; // Boosted mod: forbidden by Orange Brand
//$font-weight-light: 300 !default; // Boosted mod: forbidden by Orange Brand
$font-weight-normal: 400 !default;
$font-weight-bold: 700 !default;
$font-weight-bolder: bolder !default;
//$font-weight-bolder: bolder !default; // Boosted mod: forbidden by Orange Brand

$font-weight-base: $font-weight-normal !default;

Expand Down
2 changes: 1 addition & 1 deletion site/content/docs/4.3/examples/album/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ <h4 class="text-white">Contact</h4>
<section class="py-5 text-center container">
<div class="row py-lg-5">
<div class="col-lg-6 col-md-8 mx-auto">
<h1 class="font-weight-light">Album example</h1>
<h1 class="font-weight-normal">Album example</h1>
<p class="lead text-muted">Something short and leading about the collection below—its contents, the creator, etc. Make it short and sweet, but not too short so folks don’t simply skip over it entirely.</p>
<p>
<a href="#" class="btn btn-primary my-2">Main call to action</a>
Expand Down
3 changes: 0 additions & 3 deletions site/content/docs/4.3/utilities/text.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,7 @@ Quickly change the weight (boldness) of text or italicize text.

{{< example >}}
<p class="font-weight-bold">Bold text.</p>
<p class="font-weight-bolder">Bolder weight text (relative to the parent element).</p>
<p class="font-weight-normal">Normal weight text.</p>
<p class="font-weight-light">Light weight text.</p>
<p class="font-weight-lighter">Lighter weight text (relative to the parent element).</p>
<p class="font-italic">Italic text.</p>
<p class="font-normal">Text without font style</p>
{{< /example >}}
Expand Down

0 comments on commit 540ae47

Please sign in to comment.