-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(utils): integrate typography module
- Loading branch information
Showing
9 changed files
with
50 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
@import "@progress/kendo-theme-core/scss/elevation/index.import.scss"; | ||
|
||
@mixin kendo-utils--elevation { | ||
@include generate-utils(elevation, box-shadow, $kendo-elevation, $css-var: 'elevation'); | ||
@include generate-utils(elevation, box-shadow, $kendo-elevation, $css-var: "elevation"); | ||
} |
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,8 @@ | ||
@import "@progress/kendo-theme-core/scss/index.import.scss"; | ||
|
||
@mixin kendo-utils--typography--font-family() { | ||
|
||
// Font family utility classes | ||
@include generate-utils( font-family, font-family, $kendo-font-families, $css-var: "font-family" ); | ||
|
||
} |
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,40 +1,41 @@ | ||
@import "@progress/kendo-theme-core/scss/index.import.scss"; | ||
|
||
/// This is equivalent to `font-size: 10px;`. | ||
/// @example font-size: 10px; | ||
/// @name .k-font-xs | ||
/// @name .k-font-size-xs | ||
/// @group font-size | ||
/// @contextType css | ||
|
||
/// This is equivalent to `font-size: 12px;`. | ||
/// @example font-size: 12px; | ||
/// @name .k-font-sm | ||
/// @name .k-font-size-sm | ||
/// @group font-size | ||
/// @contextType css | ||
|
||
/// This is equivalent to `font-size: 14px;`. | ||
/// @example font-size: 14px; | ||
/// @name .k-font-md | ||
/// @name .k-font-size-md | ||
/// @group font-size | ||
/// @contextType css | ||
|
||
/// This is equivalent to `font-size: 16px;`. | ||
/// @example font-size: 16px; | ||
/// @name .k-font-lg | ||
/// @name .k-font-size-lg | ||
/// @group font-size | ||
/// @contextType css | ||
|
||
/// This is equivalent to `font-size: 20px;`. | ||
/// @example font-size: 20px; | ||
/// @name .k-font-xl | ||
/// @name .k-font-size-xl | ||
/// @group font-size | ||
/// @contextType css | ||
|
||
@mixin kendo-utils--typography--font-size() { | ||
|
||
// Font size utility classes | ||
$kendo-utils-font-size: k-map-get( $kendo-utils, "font-size" ) !default; | ||
@include generate-utils( font-size, font-size, $kendo-utils-font-size ); | ||
@include generate-utils( font-size, font-size, $kendo-font-sizes, $css-var: "font-size" ); | ||
|
||
// Legacy aliases | ||
@include generate-utils( fs, font-size, $kendo-utils-font-size ); | ||
@include generate-utils( fs, font-size, $kendo-font-sizes, $css-var: "fs" ); | ||
|
||
} |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@import "@progress/kendo-theme-core/scss/index.import.scss"; | ||
|
||
@mixin kendo-utils--typography--letter-spacing() { | ||
|
||
// Letter spacing utility classes | ||
@include generate-utils( letter-spacing, letter-spacing, $kendo-letter-spacings, $css-var: "letter-spacing" ); | ||
|
||
} | ||
|
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,8 @@ | ||
@import "@progress/kendo-theme-core/scss/index.import.scss"; | ||
|
||
@mixin kendo-utils--typography--line-height() { | ||
|
||
// Line height utility classes | ||
@include generate-utils( line-height, line-height, $kendo-line-heights, $css-var: "line-height" ); | ||
|
||
} |
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