Skip to content

Commit

Permalink
Update typography (#108)
Browse files Browse the repository at this point in the history
* Update `<Article />` font-weight

* Update blockquote

* Remove :first-child rule

* Update :marker color

* Update line-height
  • Loading branch information
sashachabin committed Jan 4, 2024
1 parent 68124a9 commit ae71729
Showing 1 changed file with 23 additions and 13 deletions.
36 changes: 23 additions & 13 deletions client/components/Articles/Article/Article.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
margin: 0 auto;
padding: 32px 24px 40px;
font-size: 20px;
font-weight: 300;
line-height: 1.3;
}

Expand Down Expand Up @@ -45,7 +46,7 @@
.ArticleTitle {
font-size: 24px;
font-weight: 500;
line-height: 1.2;
line-height: 1.12;
}


Expand All @@ -56,27 +57,23 @@
.ArticleContent h2 {
font-size: 22px;
font-weight: 500;
line-height: 1.2;
line-height: 1.16;
margin-top: 1.4em;
margin-bottom: .3em;
}

.ArticleContent :first-child {
margin-top: 0;
}

.ArticleContent h3 {
font-size: 18px;
font-weight: 500;
line-height: 1.2;
line-height: 1.25;
margin-top: 1.9em;
margin-bottom: .8em;
}

.ArticleContent h4 {
font-size: 14px;
font-weight: 500;
line-height: 1.35;
line-height: 1.25;
margin-top: 1.75em;
margin-bottom: .25em;
}
Expand All @@ -85,13 +82,17 @@
.ArticleContent ul,
.ArticleContent p {
font-size: 14px;
line-height: 1.35;
line-height: 1.4;
margin-bottom: 1.1em;
}

.ArticleContent li {
margin-top: .5em;
margin-bottom: .5em;
margin-top: .75em;
margin-bottom: .75em;
}

.ArticleContent li::marker {
color: #667999;
}

.ArticleContent ul {
Expand All @@ -108,18 +109,22 @@

.ArticleContent blockquote {
font-size: 22px;
font-weight: 600;
line-height: 1.35;
padding: 16px;
border-radius: 16px;
background: #F4F6FB;
margin: 0;
margin: 8px 0;
}

.ArticleContent blockquote p {
margin: 0;
}

.ArticleContent b,
.ArticleContent strong {
font-weight: 500;
}

@media screen and (min-width: 768px) {
.Article {
padding-top: 64px;
Expand Down Expand Up @@ -151,4 +156,9 @@
.ArticleContent p {
font-size: 22px;
}

.ArticleContent blockquote {
margin: 16px 0;
padding: 24px;
}
}

0 comments on commit ae71729

Please sign in to comment.