Skip to content

Commit

Permalink
Update prominent links design
Browse files Browse the repository at this point in the history
Resolves #3368.
  • Loading branch information
rakyi committed Apr 30, 2024
1 parent dee7ba6 commit 6e6e442
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions site/gdocs/components/centered-article.scss
Original file line number Diff line number Diff line change
Expand Up @@ -913,29 +913,37 @@ div.raw-html-table__container {
}

.article-block__prominent-link {
margin-bottom: 24px;
margin-bottom: 8px;
color: $blue-90;
background-color: $blue-5;
padding: 16px;

> .prominent-link__image {
height: 100%;
width: 100%;
}

p,
h3 {
margin: 2px 0;
p {
margin: 0;
@include sm-only {
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
}
}

h3 {
display: inline-block;
margin: 0 0 4px 0;
&:hover {
text-decoration: underline;
}
}

+ .article-block__prominent-link {
padding-top: 24px;
border-top: 1px solid $blue-10;
// Last consecutive sibling.
&:has(+ :not(.article-block__prominent-link)) {
margin-bottom: 32px;
}
}

Expand Down

0 comments on commit 6e6e442

Please sign in to comment.