Improve layout
This commit is contained in:
parent
fdf16227d3
commit
856b10358c
@ -108,8 +108,8 @@ main header .meta .name a {
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
main .article-list .item {
|
main.profile-page {
|
||||||
margin-bottom: 3rem;
|
margin-top: 6rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
main .article-list .item h3 {
|
main .article-list .item h3 {
|
||||||
@ -120,12 +120,16 @@ main .article-list p {
|
|||||||
margin-top: 0.5rem;
|
margin-top: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
main .article-list p.meta {
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
main article footer {
|
main article footer {
|
||||||
margin-top: 5rem;
|
margin-top: 5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.profile-page .about {
|
.profile-page header {
|
||||||
margin-bottom: 3rem;
|
margin-bottom: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Dropdown menu */
|
/* Dropdown menu */
|
||||||
@ -194,7 +198,7 @@ main article footer {
|
|||||||
|
|
||||||
main {
|
main {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
margin: 4rem 1rem 8rem 1rem;
|
margin: 4rem 1rem 8rem 1rem !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.profile-page h1 {
|
.profile-page h1 {
|
||||||
|
5
html.ts
5
html.ts
@ -77,7 +77,9 @@ function articleListItemHtml(article: Article): string {
|
|||||||
return `
|
return `
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<h3><a href="/${article.naddr}">${article.title}</a></h3>
|
<h3><a href="/${article.naddr}">${article.title}</a></h3>
|
||||||
<p>${formattedDate}</p>
|
<p class="meta">
|
||||||
|
${formattedDate}
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
@ -111,7 +113,6 @@ export function profilePageHtml(profile: Profile, articles: Article[]): string {
|
|||||||
<p class="about">
|
<p class="about">
|
||||||
${profile.about}
|
${profile.about}
|
||||||
</p>
|
</p>
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
<section>
|
<section>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user