Skip to content

Commit

Permalink
Update article typography
Browse files Browse the repository at this point in the history
  • Loading branch information
sashachabin committed Nov 26, 2023
1 parent ea27fd5 commit 5d708f6
Showing 1 changed file with 32 additions and 17 deletions.
49 changes: 32 additions & 17 deletions client/components/Articles/Article/Article.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@
}

.ArticleTitle {
font-size: 48px;
line-height: 1.05;
font-size: 24px;
font-weight: 500;
line-height: 1.2;
}


Expand All @@ -49,40 +50,40 @@
}

.ArticleContent h2 {
font-size: 32px;
font-size: 22px;
font-weight: 500;
line-height: 1.08;
margin-top: 1.75em;
margin-bottom: .25em;
line-height: 1.2;
margin-top: 1.4em;
margin-bottom: .3em;
}

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

.ArticleContent h4 {
font-size: 24px;
font-size: 14px;
font-weight: 500;
line-height: 1.27;
line-height: 1.35;
margin-top: 1.75em;
margin-bottom: .25em;
}

.ArticleContent ol,
.ArticleContent ul,
.ArticleContent p {
font-size: 20px;
font-size: 14px;
line-height: 1.35;
margin-bottom: 1.1em;
}

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

.ArticleContent ul {
Expand All @@ -97,6 +98,20 @@
opacity: .45;
}

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

.ArticleContent blockquote p {
margin: 0;
}

@media screen and (min-width: 768px) {
.Article {
padding-top: 64px;
Expand All @@ -112,11 +127,11 @@
}

.ArticleContent h3 {
font-size: 40px;
font-size: 32px;
}

.ArticleContent h4 {
font-size: 32px;
font-size: 22px;
}

.ArticleContent ol,
Expand Down

1 comment on commit 5d708f6

@ekbdev
Copy link

@ekbdev ekbdev commented on 5d708f6 Nov 26, 2023

Choose a reason for hiding this comment

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

Deploy preview for transport ready!

✅ Preview
https://transport-eqa7w9ar6-ekbdev.vercel.app
https://ekbdev-transport-articles-styles.vercel.app

Built with commit 5d708f6.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.