diff --git a/src/app/blog/article-page/article-page.component.css b/src/app/blog/article-page/article-page.component.css index caaf22e..88b4508 100644 --- a/src/app/blog/article-page/article-page.component.css +++ b/src/app/blog/article-page/article-page.component.css @@ -12,7 +12,7 @@ width: 100%; min-height: 100vh; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 50%, rgb(0, 0, 0) 100%); - padding: 30px; + padding: 30px 10px; justify-items: center; align-items: center; } @@ -25,7 +25,6 @@ h1 { position: relative; - font-size: 2.5rem; background: linear-gradient(to top, #a0eddb 0%, #ffffff 100%); -webkit-background-clip: text; background-clip: text; @@ -48,6 +47,30 @@ h1 { margin: 0; } +.article-content.narrow h1 { + font-size: 1.8rem; +} + +.article-content.narrow h2 { + font-size: 1.6rem; +} + +.article-content.narrow h3 { + font-size: 1.4rem; +} + +.article-content.narrow h4 { + font-size: 1.2rem; +} + +.article-content.narrow h5 { + font-size: 1rem; +} + +.article-content.narrow h6 { + font-size: 0.8rem; +} + .article-content p { margin: 0.7rem 0; line-height: 1.2; @@ -55,6 +78,7 @@ h1 { .article-thumb { width: 70%; + max-width: 1200px; aspect-ratio: 2.5 / 1; object-fit: cover; border-radius: 25px 25px 0 0; diff --git a/src/app/blog/article-page/article-page.component.html b/src/app/blog/article-page/article-page.component.html index d81ef14..e24a224 100644 --- a/src/app/blog/article-page/article-page.component.html +++ b/src/app/blog/article-page/article-page.component.html @@ -22,11 +22,12 @@ (error)="onThumbError($event)" [ngClass]="{ 'narrow': isNarrow }" /> -

{{ article.title }}

+

{{ article.title }}