-
Notifications
You must be signed in to change notification settings - Fork 10
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 #40 from Brightspace/split-mixins
splitting mixins into separate files so duplicate font imports can be avoided
- Loading branch information
Showing
8 changed files
with
134 additions
and
137 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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
@import 'bower_components/vui-colors/colors.scss'; | ||
@import 'px-to-base-rem.scss'; | ||
|
||
@mixin vui-typography-heading1($margin: 1.5rem 0 1.5rem 0) { | ||
|
||
color: $vui-color-ferrite; | ||
font-family: inherit; | ||
font-size: 2rem; | ||
font-weight: 300; | ||
line-height: 3rem; | ||
letter-spacing: px-to-base-rem(-0.5px); | ||
margin: $margin; | ||
|
||
} | ||
|
||
@mixin vui-typography-heading2($margin: 1.5rem 0 1.5rem 0) { | ||
|
||
color: $vui-color-ferrite; | ||
font-family: inherit; | ||
font-size: 1.5rem; | ||
font-weight: 300; | ||
line-height: 2.25rem; | ||
letter-spacing: px-to-base-rem(-0.3px); | ||
margin: $margin; | ||
|
||
} | ||
|
||
@mixin vui-typography-heading3($margin: 1.5rem 0 1.5rem 0) { | ||
|
||
color: $vui-color-ferrite; | ||
font-family: inherit; | ||
font-size: 1rem; | ||
font-weight: 700; | ||
line-height: 1.5rem; | ||
letter-spacing: px-to-base-rem(0.5px); | ||
margin: $margin; | ||
|
||
} | ||
|
||
@mixin vui-typography-heading4($margin: 1.5rem 0 1.5rem 0) { | ||
|
||
color: $vui-color-ferrite; | ||
font-family: inherit; | ||
font-size: 1rem; | ||
font-weight: 400; | ||
line-height: 1.5rem; | ||
letter-spacing: px-to-base-rem(0.4px); | ||
margin: $margin; | ||
|
||
} |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@import 'small-text.scss'; | ||
|
||
@mixin vui-typography-help-text() { | ||
@include vui-typography-small-text($margin: auto); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
@import 'bower_components/vui-colors/colors.scss'; | ||
@import 'px-to-base-rem.scss'; | ||
|
||
@mixin vui-typography-small-text( | ||
$fontWeight: 400, | ||
$margin: 1rem 0 1rem 0, | ||
$line-height: 1rem | ||
) { | ||
|
||
color: $vui-color-ferrite; | ||
font-family: inherit; | ||
font-size: 0.7rem; | ||
font-weight: $fontWeight; | ||
line-height: $line-height; | ||
letter-spacing: px-to-base-rem(0.4px); | ||
margin: $margin; | ||
|
||
} | ||
|
||
@mixin vui-typography-small-strong-text($fontWeight: 700, $margin: 1rem 0 1rem 0) { | ||
|
||
color: $vui-color-ferrite; | ||
font-family: inherit; | ||
font-size: 0.7rem; | ||
font-weight: $fontWeight; | ||
line-height: 1rem; | ||
letter-spacing: px-to-base-rem(0.4px); | ||
margin: $margin; | ||
text-transform: uppercase; | ||
|
||
} |
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