Use more elegant way to specify padding

Signed-off-by: Harry Chen <i@harrychen.xyz>
This commit is contained in:
Harry Chen 2024-04-06 01:32:29 +08:00 committed by Miao Wang
parent 79bde783d6
commit 507139a480
4 changed files with 3 additions and 11 deletions

View File

@ -1,4 +1,4 @@
<div class="navbar navbar-expand-lg navbar-default" role="navigation">
<div class="navbar navbar-expand-lg navbar-default mt-3" role="navigation">
<div class="container-fluid container-xl">
<div class="navbar-header">
<a class="navbar-brand" href="/">

View File

@ -17,7 +17,7 @@
<div class="head">
<h3># {{page.title}}</h3>
</div>
<div class="text-secondary post-metadata">
<div class="text-secondary mb-2">
{% fa_svg fas.fa-calendar %} {{page.date | date: "%Y-%m-%d"}} <span style="margin-left: 1em"> {% fa_svg fas.fa-user %} {{ page.author }}</span>
</div>
<div class="content">{{page.content | markdownify }}</div>

View File

@ -23,7 +23,7 @@ title: 镜像站新闻
<div class="head" id="{{news.slug}}">
<h3><a href="{{news.url}}"># {{news.title}}</a></h3>
</div>
<div class="text-secondary post-metadata">
<div class="text-secondary mb-2">
{% fa_svg fas.fa-calendar %} {{news.date | date: "%Y-%m-%d"}} <span style="margin-left: 1em"> {% fa_svg fas.fa-user %} {{ news.author }}</span>
</div>
<div class="content">{{news.content | markdownify }}</div>

View File

@ -132,14 +132,6 @@ code {
}
}
.navbar {
padding-top: 15px;
}
.post-metadata {
padding-bottom: 10px;
}
#mirror-title {
margin-top: 10px;
margin-bottom: 10px;