article styling updates
This commit is contained in:
1 parent
e12e4f96d5
commit
a0d9f88b1a
2 files changed
+28
-3
No files matched your search
@@ -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;
|
||||
|
||||
@@ -22,11 +22,12 @@
|
||||
(error)="onThumbError($event)"
|
||||
[ngClass]="{ 'narrow': isNarrow }"
|
||||
/>
|
||||
<h1>{{ article.title }}</h1>
|
||||
<h1 [ngStyle]="{'font-size': isNarrow ? '2rem' : 'font-size: 2.5rem'}">{{ article.title }}</h1>
|
||||
<div class="content-container" [ngStyle]="{'width': isNarrow ? '100%' : '70%'}">
|
||||
<markdown
|
||||
class="article-content"
|
||||
[data]="renderedContent"
|
||||
[ngClass]="{ 'narrow': isNarrow }"
|
||||
(click)="onArticleContentClick($event)"
|
||||
></markdown>
|
||||
<div class="article-buttons">
|
||||
|
||||
Reference in new issue
Block a user