-
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.
Changing font size to 14px and headings to bold
- Loading branch information
1 parent
e3d4826
commit 2cd96d6
Showing
8 changed files
with
65 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
@import 'panel'; | ||
@import 'typography'; |
40 changes: 40 additions & 0 deletions
40
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,40 @@ | ||
@mixin euiTitle($size: 'm') { | ||
color: $euiTitleColor; | ||
|
||
@if $size == 'xxxs' { | ||
@include euiFontSizeXS; | ||
@include lineHeightFromBaseline(3); | ||
font-weight: $euiFontWeightSemiBold; | ||
letter-spacing: 0; | ||
} @else if $size == 'xxs' { | ||
@include euiFontSizeS; | ||
@include lineHeightFromBaseline(3); | ||
font-weight: $euiFontWeightSemiBold; | ||
letter-spacing: 0; | ||
} @else if $size == 'xs' { | ||
@include euiFontSize; | ||
@include lineHeightFromBaseline(3); | ||
font-weight: $euiFontWeightSemiBold; | ||
letter-spacing: 0; | ||
} @else if $size == 's' { | ||
@include euiFontSizeL; | ||
@include lineHeightFromBaseline(4); | ||
font-weight: $euiFontWeightBold; | ||
letter-spacing: 0; | ||
} @else if $size == 'm' { | ||
@include euiFontSizeXL; | ||
@include lineHeightFromBaseline(5); | ||
font-weight: $euiFontWeightBold; | ||
letter-spacing: 0; | ||
} @else if $size == 'l' { | ||
@include euiFontSizeXXL; | ||
@include lineHeightFromBaseline(6); | ||
font-weight: $euiFontWeightBold; | ||
letter-spacing: -.0625rem; | ||
} @else { | ||
@include fontSize($size); | ||
@include lineHeightFromBaseline(3); | ||
font-weight: $euiFontWeightBold; | ||
letter-spacing: 0; | ||
} | ||
} |
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 @@ | ||
@import 'typography'; |
9 changes: 9 additions & 0 deletions
9
src/themes/eui-amsterdam/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,9 @@ | ||
$euiFontSize: $euiSize - 2; // 5th position in scale | ||
|
||
// These variables are unchanged, but the calculated values are smaller | ||
$euiFontSizeXS: $euiFontSize * nth($euiTextScale, 7); // 11px | ||
$euiFontSizeS: $euiFontSize * nth($euiTextScale, 6); // 12px | ||
$euiFontSizeM: $euiFontSize * nth($euiTextScale, 4); // 16px | ||
$euiFontSizeL: $euiFontSize * nth($euiTextScale, 3); // 18px | ||
$euiFontSizeXL: $euiFontSize * nth($euiTextScale, 2); // 25px | ||
$euiFontSizeXXL: $euiFontSize * nth($euiTextScale, 1); // 32px |
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 @@ | ||
h1, | ||
h2, | ||
h3, | ||
h4, | ||
h5, | ||
h6 { | ||
font-weight: $euiFontWeightBold; | ||
} |
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,4 @@ | ||
.euiTitle { | ||
font-weight: $euiFontWeightBold; | ||
letter-spacing: 0; | ||
} |