Skip to content

Commit

Permalink
Merge pull request #222 from edx/talbs/simplify-font-families
Browse files Browse the repository at this point in the history
Simplify font-family Styling + Inheritance
  • Loading branch information
talbs committed Nov 2, 2015
2 parents 104d5d2 + 6c1f216 commit 23829b4
Show file tree
Hide file tree
Showing 14 changed files with 17 additions and 44 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,15 @@ Nothing yet

- - -

## 0.4.4 (2015-11-02)
* Removed specific font-family declarations on headings/copy/form elements in favor of inheritance from _reset.scss's body rule (for easier customizations/overrides).

- - -

## 0.4.3 (2015-10-28)
* Added text truncation and wrapped Sass placeholders
## 0.4.3 (2015-11-02)
* Removed specific font-family declarations on headings/copy/form elements in favor of inheritance from _reset.scss's body rule (for easier customizations/overrides).

- - -

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "edx-pattern-library",
"version": "0.4.3",
"version": "0.4.4",
"authors": [
"edX UX Team <[email protected]>"
],
Expand Down
6 changes: 0 additions & 6 deletions pattern-library/css/edx-pattern-library-ltr.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pattern-library/css/edx-pattern-library-ltr.min.css

Large diffs are not rendered by default.

6 changes: 0 additions & 6 deletions pattern-library/css/edx-pattern-library-rtl.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pattern-library/css/edx-pattern-library-rtl.min.css

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion pattern-library/sass/patterns/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@
padding: rem($baseline/2);
border: 1px solid $input-default-border-color;
background: $input-default-background;
font-family: $text-base-font-family;
font-size: font-size(base);
color: $input-default-color;

Expand Down
1 change: 0 additions & 1 deletion pattern-library/sass/patterns/_headings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ $headings-count: 8;
.hd-6,
.hd-7 {


&.emphasized {
font-weight: $headings-font-weight-x-bold;
}
Expand Down
6 changes: 0 additions & 6 deletions pattern-library/sass/utilities/_helpers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -110,18 +110,12 @@
// reset of typography
%reset-headings {
margin: 0 0 spacing-horizontal(base) 0;
font-family: $headings-base-font-family;
font-weight: $headings-base-font-weight;
font-size: font-size(base);
line-height: line-height(base);
color: $headings-base-color;
}

// reset of copy
%reset-copy {
font-family: $text-base-font-family;
}

// reset of code
%reset-code {
font-family: $font-family-monospace;
Expand Down
2 changes: 1 addition & 1 deletion pattern-library/sass/utilities/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ $headings-font-weight-normal: font-weight(normal) !default;
$headings-font-weight-bold: font-weight(semi-bold) !default;
$headings-font-weight-x-bold: font-weight(bold) !default;

$headings-base-font-family: $font-family-sans-serif !default;
$headings-base-font-family: inherit !default;
$headings-base-font-weight: $headings-font-weight-normal !default;
$headings-base-color: palette(grayscale, x-dark) !default;

Expand Down
7 changes: 0 additions & 7 deletions public/css/main-ltr.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions public/css/main-ltr.min.css

Large diffs are not rendered by default.

7 changes: 0 additions & 7 deletions public/css/main-rtl.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions public/css/main-rtl.min.css

Large diffs are not rendered by default.

0 comments on commit 23829b4

Please sign in to comment.