-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from evanshunt/order-fix
Various fixes
- Loading branch information
Showing
6 changed files
with
88 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,71 @@ | ||
@use 'mixins' as *; | ||
@forward 'mixins'; | ||
@forward 'variables'; | ||
|
||
body { | ||
@include base-text(); | ||
@use '~sass-rem/rem' as *; | ||
@use '../breakpoints/index' as *; | ||
@use 'mixins' as *; | ||
@use 'variables' as *; | ||
|
||
%heading-style { | ||
font-family: $heading-font-family; | ||
line-height: $heading-line-height; | ||
font-weight: $heading-font-weight; | ||
margin-bottom: $heading-margin-bottom; | ||
margin-top: $heading-margin-top; | ||
color: $heading-font-color; | ||
} | ||
|
||
%body-style { | ||
font-family: $base-font-family; | ||
line-height: $base-line-height; | ||
font-weight: $base-font-weight; | ||
color: $base-font-color; | ||
} | ||
|
||
body, | ||
%base-text { | ||
@extend %body-style; | ||
@include responsive-sizing($base-sizes); | ||
} | ||
|
||
h1, | ||
.h1-text { | ||
@include h1-text(); | ||
.h1-text, | ||
%h1-text { | ||
@extend %heading-style; | ||
@include responsive-sizing($h1-sizes); | ||
} | ||
|
||
h2, | ||
.h2-text { | ||
@include h2-text(); | ||
.h2-text, | ||
%h2-text { | ||
@extend %heading-style; | ||
@include responsive-sizing($h2-sizes); | ||
} | ||
|
||
h3, | ||
.h3-text { | ||
@include h3-text(); | ||
.h3-text, | ||
%h3-text { | ||
@extend %heading-style; | ||
@include responsive-sizing($h3-sizes); | ||
} | ||
|
||
h4, | ||
.h4-text { | ||
@include h4-text(); | ||
.h4-text, | ||
%h4-text { | ||
@extend %heading-style; | ||
@include responsive-sizing($h4-sizes); | ||
} | ||
|
||
h5, | ||
.h5-text { | ||
@include h5-text(); | ||
.h5-text, | ||
%h5-text { | ||
@extend %heading-style; | ||
@include responsive-sizing($h5-sizes); | ||
} | ||
|
||
h6, | ||
.h6-text { | ||
@include h6-text(); | ||
.h6-text, | ||
%h6-text { | ||
@extend %heading-style; | ||
@include responsive-sizing($h6-sizes); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,77 +1,15 @@ | ||
@use '~sass-rem/rem' as *; | ||
@use '~breakpoint-sass/stylesheets/breakpoint' as *; | ||
@use '../breakpoints/index' as *; | ||
@use 'variables' as *; | ||
|
||
@mixin heading-style() { | ||
font-family: $heading-font-family; | ||
line-height: $heading-line-height; | ||
font-weight: $heading-font-weight; | ||
margin-bottom: $heading-margin-bottom; | ||
margin-top: $heading-margin-top; | ||
color: $heading-font-color; | ||
} | ||
|
||
@mixin body-style() { | ||
font-family: $base-font-family; | ||
line-height: $base-line-height; | ||
font-weight: $base-font-weight; | ||
color: $base-font-color; | ||
} | ||
|
||
@mixin responsive-sizing($sizes) { | ||
@each $breakpoint, $size in $sizes { | ||
@include breakpoint(map-get($breakpointList, $breakpoint)) { | ||
@if $breakpoint == 'base' { | ||
font-size: rem($size); | ||
} @else { | ||
@include breakpoint(map-get($breakpointList, $breakpoint)) { | ||
font-size: rem($size); | ||
} | ||
} | ||
} | ||
} | ||
|
||
@mixin base-text() { | ||
@include body-style(); | ||
@include responsive-sizing($base-sizes); | ||
} | ||
|
||
@mixin h1-text() { | ||
@include heading-style(); | ||
@include responsive-sizing($h1-sizes); | ||
|
||
font-size: rem($h1-font-size); | ||
} | ||
|
||
@mixin h2-text() { | ||
@include heading-style(); | ||
@include responsive-sizing($h2-sizes); | ||
|
||
font-size: rem($h2-font-size); | ||
} | ||
|
||
@mixin h3-text() { | ||
@include heading-style(); | ||
@include responsive-sizing($h3-sizes); | ||
|
||
font-size: rem($h3-font-size); | ||
} | ||
|
||
@mixin h4-text() { | ||
@include heading-style(); | ||
@include responsive-sizing($h4-sizes); | ||
|
||
font-size: rem($h4-font-size); | ||
} | ||
|
||
@mixin h5-text() { | ||
@include heading-style(); | ||
@include responsive-sizing($h5-sizes); | ||
|
||
font-size: rem($h5-font-size); | ||
} | ||
|
||
@mixin h6-text() { | ||
@include heading-style(); | ||
@include responsive-sizing($h6-sizes); | ||
|
||
font-size: rem($h6-font-size); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters