Skip to content

Commit

Permalink
Apply mixin @types within the @font-splash mixin directly so @font-sp…
Browse files Browse the repository at this point in the history
…lash is self contained
  • Loading branch information
yvonnetangsu committed Sep 27, 2019
1 parent 20067da commit 4c6b909
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
15 changes: 11 additions & 4 deletions core/dist/css/decanter.css

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

3 changes: 1 addition & 2 deletions core/src/scss/elements/typography/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ h3,
h4,
h5,
h6,
*[class^="su-type"],
.su-font-splash {
*[class^="su-type"] {
@include types;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
// Style guide: Mixins.Typography.font-splash
//
@mixin font-splash {
@include types;
@include modular-typography(5);
@include margin(null null 0);
letter-spacing: -0.016em;
Expand Down
5 changes: 3 additions & 2 deletions core/src/scss/utilities/mixins/typography/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
//

@import
'types',
'big-paragraph',
'caption',
'credits',
Expand All @@ -28,5 +29,5 @@
'type-c',
'type-d',
'type-e',
'type-f',
'types';
'type-f'
;

0 comments on commit 4c6b909

Please sign in to comment.