-
Notifications
You must be signed in to change notification settings - Fork 841
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing Amsterdam base line-heights (#4229)
- Loading branch information
Showing
9 changed files
with
73 additions
and
10 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
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 |
---|---|---|
|
@@ -66,7 +66,7 @@ html { | |
} | ||
|
||
body { | ||
line-height: 1; | ||
line-height: $euiBodyLineHeight; | ||
} | ||
|
||
*:focus { | ||
|
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
22 changes: 19 additions & 3 deletions
22
src/themes/eui-amsterdam/global_styling/mixins/_index.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 |
---|---|---|
@@ -1,7 +1,23 @@ | ||
// Import base theme first, then override | ||
@import '../../../../global_styling/mixins/index'; | ||
@import '../../../../global_styling/mixins/responsive'; | ||
@import '../../../../global_styling/mixins/shadow'; | ||
@import 'shadow'; | ||
@import '../../../../global_styling/mixins/size'; | ||
@import '../../../../global_styling/mixins/typography'; | ||
@import 'typography'; | ||
@import '../../../../global_styling/mixins/helpers'; | ||
@import '../../../../global_styling/mixins/states'; | ||
@import '../../../../global_styling/mixins/icons'; | ||
|
||
@import '../../../../global_styling/mixins/beta_badge'; | ||
@import '../../../../global_styling/mixins/button'; | ||
@import 'button'; | ||
@import '../../../../global_styling/mixins/form'; | ||
@import 'form'; | ||
@import '../../../../global_styling/mixins/header'; | ||
@import '../../../../global_styling/mixins/loading'; | ||
@import '../../../../global_styling/mixins/panel'; | ||
@import 'panel'; | ||
@import 'shadow'; | ||
@import 'form'; | ||
@import '../../../../global_styling/mixins/popover'; | ||
@import '../../../../global_styling/mixins/range'; | ||
@import '../../../../global_styling/mixins/tool_tip'; |
37 changes: 37 additions & 0 deletions
37
src/themes/eui-amsterdam/global_styling/mixins/_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,37 @@ | ||
// Font sizing extends, using rem mixin | ||
// All line-heights are aligned to baseline grid | ||
|
||
@mixin euiFontSizeXS { | ||
@include fontSize($euiFontSizeXS); | ||
@include lineHeightFromBaseline(2); | ||
} | ||
|
||
@mixin euiFontSizeS { | ||
@include fontSize($euiFontSizeS); | ||
@include lineHeightFromBaseline(3); | ||
} | ||
|
||
@mixin euiFontSize { | ||
@include fontSize($euiFontSize); | ||
@include lineHeightFromBaseline(3); | ||
} | ||
|
||
@mixin euiFontSizeM { | ||
@include fontSize($euiFontSizeM); | ||
@include lineHeightFromBaseline(3); | ||
} | ||
|
||
@mixin euiFontSizeL { | ||
@include fontSize($euiFontSizeL); | ||
@include lineHeightFromBaseline(4); | ||
} | ||
|
||
@mixin euiFontSizeXL { | ||
@include fontSize($euiFontSizeXL); | ||
@include lineHeightFromBaseline(4); | ||
} | ||
|
||
@mixin euiFontSizeXXL { | ||
@include fontSize($euiFontSizeXXL); | ||
@include lineHeightFromBaseline(5); | ||
} |
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