-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor UI Framework directory structure to house everything in a sr…
…c directory. (#12880) - Add components.js and services.js files to continue to export JS modules from the root.
- Loading branch information
Showing
37 changed files
with
106 additions
and
24 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './src/components'; |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
export * from './src/services'; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
File renamed without changes.
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,17 @@ | ||
// Some mixins that help us deal with browser scaling of text more consistantly. | ||
// Essentially, fonts across kui should scale agains the root html element, not | ||
// against parent inheritance. | ||
|
||
|
||
// Typography mixins | ||
|
||
@function convertToRem($size) { | ||
@return #{$size / $kuiFontSize}rem; | ||
} | ||
|
||
// Spit out rem and px | ||
|
||
@mixin fontSize($size: $kuiFontSize) { | ||
font-size: $size; | ||
font-size: convert-to-rem($size); | ||
} |
File renamed without changes.
File renamed without changes.
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
73 changes: 73 additions & 0 deletions
73
ui_framework/src/global_styling/variables/_typography.scss
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,73 @@ | ||
// Font | ||
|
||
// Families | ||
$kuiFontFamily: "Roboto", Helvetica, Arial, sans-serif; | ||
$kuiCodeFontFamily: "Roboto Mono", monospace; | ||
|
||
// Font sizes | ||
$kuiFontSize: $kuiSize; | ||
|
||
$kuiFontSizeXS: 12px; | ||
$kuiFontSizeS: 14px; | ||
$kuiFontSizeM: $kuiFontSize; | ||
$kuiFontSizeL: 24px; | ||
$kuiFontSizeXL: 32px; | ||
$kuiFontSizeXXL: 48px; | ||
|
||
// Line height | ||
|
||
$kuiLineHeight: 1.5 * $kuiFontSize; | ||
|
||
// Font weights | ||
|
||
$kuiFontWeightLight: 300; | ||
$kuiFontWeightRegular: 400; | ||
$kuiFontWeightMedium: 500; | ||
|
||
// Our base fonts | ||
|
||
%kuiFont { | ||
font-family: $kuiFontFamily; | ||
font-weight: $kuiFontWeightRegular; | ||
} | ||
|
||
%kuiCodeFont { | ||
font-family: $kuiCodeFontFamily; | ||
} | ||
|
||
// Font sizing extends, using rem mixin | ||
|
||
%kuiFontSize { | ||
font-size: rem($kuiFontSize); | ||
line-height: $kuiLineHeight; | ||
} | ||
|
||
%kuiFontSizeXS { | ||
font-size: rem($kuiFontSizeXS); | ||
line-height: $kuiLineHeight; | ||
} | ||
|
||
%kuiFontSizeS { | ||
font-size: rem($kuiFontSizeS); | ||
line-height: $kuiLineHeight; | ||
} | ||
|
||
%kuiFontSizeM { | ||
font-size: rem($kuiFontSizeM); | ||
line-height: $kuiLineHeight; | ||
} | ||
|
||
%kuiFontSizeL { | ||
font-size: rem($kuiFontSizeL); | ||
line-height: $kuiLineHeight * 1.5; | ||
} | ||
|
||
%kuiFontSizeXL { | ||
font-size: rem($kuiFontSizeXL); | ||
line-height: $kuiLineHeight * 2; | ||
} | ||
|
||
%kuiFontSizeXXL { | ||
font-size: rem($kuiFontSizeXXL); | ||
line-height: $kuiLineHeight * 3; | ||
} |
File renamed without changes.
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,11 @@ | ||
// Configuration | ||
@import 'global_styling/variables/index'; | ||
@import 'themes/light_theme/index'; | ||
|
||
// Core | ||
@import 'global_styling/mixins/index'; | ||
@import 'global_styling/reset/index'; | ||
@import 'global_styling/utilities/index'; | ||
|
||
// Components | ||
@import 'components/index'; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.