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%;
|
width: 100%;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 50%, rgb(0, 0, 0) 100%);
|
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;
|
justify-items: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
@@ -25,7 +25,6 @@
|
|||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
position: relative;
|
position: relative;
|
||||||
font-size: 2.5rem;
|
|
||||||
background: linear-gradient(to top, #a0eddb 0%, #ffffff 100%);
|
background: linear-gradient(to top, #a0eddb 0%, #ffffff 100%);
|
||||||
-webkit-background-clip: text;
|
-webkit-background-clip: text;
|
||||||
background-clip: text;
|
background-clip: text;
|
||||||
@@ -48,6 +47,30 @@ h1 {
|
|||||||
margin: 0;
|
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 {
|
.article-content p {
|
||||||
margin: 0.7rem 0;
|
margin: 0.7rem 0;
|
||||||
line-height: 1.2;
|
line-height: 1.2;
|
||||||
@@ -55,6 +78,7 @@ h1 {
|
|||||||
|
|
||||||
.article-thumb {
|
.article-thumb {
|
||||||
width: 70%;
|
width: 70%;
|
||||||
|
max-width: 1200px;
|
||||||
aspect-ratio: 2.5 / 1;
|
aspect-ratio: 2.5 / 1;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
border-radius: 25px 25px 0 0;
|
border-radius: 25px 25px 0 0;
|
||||||
|
|||||||
@@ -22,11 +22,12 @@
|
|||||||
(error)="onThumbError($event)"
|
(error)="onThumbError($event)"
|
||||||
[ngClass]="{ 'narrow': isNarrow }"
|
[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%'}">
|
<div class="content-container" [ngStyle]="{'width': isNarrow ? '100%' : '70%'}">
|
||||||
<markdown
|
<markdown
|
||||||
class="article-content"
|
class="article-content"
|
||||||
[data]="renderedContent"
|
[data]="renderedContent"
|
||||||
|
[ngClass]="{ 'narrow': isNarrow }"
|
||||||
(click)="onArticleContentClick($event)"
|
(click)="onArticleContentClick($event)"
|
||||||
></markdown>
|
></markdown>
|
||||||
<div class="article-buttons">
|
<div class="article-buttons">
|
||||||
|
|||||||
Reference in new issue
Block a user