Skip to content

Commit

Permalink
feat(content-block): update title font - FRONT-3777 (#2666)
Browse files Browse the repository at this point in the history
  • Loading branch information
emeryro committed Oct 17, 2022
1 parent 19f1bd8 commit 8baef6c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

$_primary-meta-color: null !default;
$_title-font: null !default;
$_title-font-weight: null !default;
$_text-color: null !default;
$_secondary-meta-color: null !default;
$_secondary-meta-icon-color: null !default;
Expand Down Expand Up @@ -65,7 +66,7 @@ $_link-separator-color: null !default;
.ecl-content-block__title {
color: $_text-color;
font: map.get($_title-font, 'mobile');
font-weight: map.get(theme.$font-weight, 'bold');
font-weight: $_title-font-weight;
margin: map.get(theme.$spacing, 'xs') 0 0;
max-width: 80ch;
}
Expand Down Expand Up @@ -172,6 +173,6 @@ $_link-separator-color: null !default;
@include breakpoints.up('l') {
.ecl-content-block__title {
font: map.get($_title-font, 'desktop');
font-weight: map.get(theme.$font-weight, 'bold');
font-weight: $_title-font-weight;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
'mobile': map.get(theme.$font-prolonged, 'l'),
'desktop': map.get(theme.$font, 'xl'),
),
$_title-font-weight: map.get(theme.$font-weight, 'bold'),
$_text-color: map.get(theme.$color, 'grey-100'),
$_secondary-meta-color: map.get(theme.$color, 'grey-75'),
$_secondary-meta-icon-color: map.get(theme.$color, 'grey-75'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
$_primary-meta-color: map.get(theme.$color, 'grey-140'),
$_title-font: (
'mobile': map.get(theme.$font, 'xl'),
'desktop': map.get(theme.$font, '2xl'),
'desktop': map.get(theme.$font, 'xl'),
),
$_title-font-weight: map.get(theme.$font-weight, 'regular'),
$_text-color: map.get(theme.$color, 'grey-140'),
$_secondary-meta-color: map.get(theme.$color, 'grey-80'),
$_secondary-meta-icon-color: map.get(theme.$color, 'blue-50'),
Expand Down

1 comment on commit 8baef6c

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.