Skip to content

Commit

Permalink
✨ typography touchups on the homepage intro block
Browse files Browse the repository at this point in the history
  • Loading branch information
ikesau committed Feb 26, 2024
1 parent b8f7145 commit 553270f
Showing 1 changed file with 29 additions and 12 deletions.
41 changes: 29 additions & 12 deletions site/gdocs/components/HomepageIntro.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@
margin-right: 16px;
.homepage-intro__featured-work-title {
@include h3-bold;
margin-top: 4px;
margin-bottom: 0;
margin: 0;
}
.homepage-intro__featured-work-description {
@include body-3-medium;
Expand Down Expand Up @@ -148,6 +147,11 @@

.homepage-intro__see-all-work-button-container {
display: flex;
margin-top: 32px;

@include sm-only {
margin-top: 0;
}

svg {
font-size: 0.75rem;
Expand Down Expand Up @@ -204,7 +208,8 @@

.homepage-intro__featured-tile {
color: $blue-90;
display: block;
display: flex;
flex-direction: column;

img {
display: block;
Expand All @@ -222,9 +227,27 @@
margin-top: 12px;
}

.homepage-intro__primary-tiles .homepage-intro__featured-work-title {
@include h2-bold;
margin: 4px 0;
.homepage-intro__primary-tiles {
.homepage-intro__featured-work-title {
@include h2-bold;
line-height: 2rem;
margin: 4px 0 0 0;
}
}

// Shared styles for items in secondary and tertiary tiles
.homepage-intro__secondary-tiles,
.homepage-intro__tertiary-tiles {
.homepage-intro__featured-work-title {
@include h3-bold;
line-height: 1.5rem;
letter-spacing: -0.1px;
margin: 4px 0 0 0;
}
.homepage-intro__featured-work-description {
font-size: 0.875rem;
line-height: 1.3125rem;
}
}

.homepage-intro__secondary-tiles .homepage-intro__featured-tile {
Expand All @@ -233,12 +256,6 @@
}
}

.homepage-intro__secondary-tiles .homepage-intro__featured-work-title,
.homepage-intro__tertiary-tiles .homepage-intro__featured-work-title {
@include h3-bold;
margin: 4px 0;
}

.homepage-intro__featured-tile:hover .homepage-intro__featured-work-title {
@include owid-link-90;
&:hover {
Expand Down

0 comments on commit 553270f

Please sign in to comment.