refactor(layout): improve margin bottom of the core block (#1116)

Improvement of commit 73af591
This commit is contained in:
Cotes Chung 2023-06-28 20:21:30 +08:00 committed by GitHub
parent b0f4ae5eec
commit 2bbfda79ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 12 additions and 21 deletions

View File

@ -1,6 +1,6 @@
<!-- The paginator for post list on HomgPage. -->
<ul class="pagination align-items-center mt-4 mb-5 ps-lg-2">
<ul class="pagination align-items-center mt-4 mb-1 ps-lg-2">
<!-- left arrow -->
{% if paginator.previous_page %}
{% assign prev_url = paginator.previous_page_path | relative_url %}

View File

@ -5,7 +5,7 @@ layout: page
{% include lang.html %}
<div id="page-category" class="mb-5">
<div id="page-category">
<h1 class="ps-lg-2">
<i class="far fa-folder-open fa-fw text-muted"></i>
{{ page.title }}

View File

@ -40,16 +40,7 @@ refactor: true
{% endfor %}
{% endif %}
{% if paginator.total_pages > 1 %}
{% assign has_paginator = true %}
{% endif %}
<div
id="post-list"
{% unless has_paginator %}
class="mb-5"
{% endunless %}
>
<div id="post-list">
{% for post in posts %}
<a href="{{ post.url | relative_url }}" class="card-wrapper">
<div class="card post-preview flex-md-row-reverse">
@ -114,6 +105,6 @@ refactor: true
</div>
<!-- #post-list -->
{% if has_paginator %}
{% if paginator.total_pages > 1 %}
{% include post-paginator.html %}
{% endif %}

View File

@ -5,7 +5,11 @@ layout: default
{% include lang.html %}
{% include origin-type.html %}
<div class="row">
{% if layout.tail_includes %}
{% assign has_tail = true %}
{% endif %}
<div class="row{% unless has_tail %} mb-5{% endunless %}">
<!-- core -->
<div id="core-wrapper" class="col-12 col-lg-11 col-xl-9 pe-xl-4">
{% capture padding %}
@ -52,7 +56,7 @@ layout: default
</div>
<!-- tail -->
{% if layout.tail_includes %}
{% if has_tail %}
<div class="row">
<div id="tail-wrapper" class="col-12 col-lg-11 col-xl-9 px-3 pe-xl-4 mt-5">
{% for _include in layout.tail_includes %}

View File

@ -5,7 +5,7 @@ layout: page
{% include lang.html %}
<div id="page-tag" class="mb-5">
<div id="page-tag">
<h1 class="ps-lg-2">
<i class="fa fa-tag fa-fw text-muted"></i>
{{ page.title }}

View File

@ -3,7 +3,7 @@ layout: page
# All the Tags of posts.
---
<div id="tags" class="d-flex flex-wrap mx-xl-2 mb-5">
<div id="tags" class="d-flex flex-wrap mx-xl-2">
{% assign tags = '' | split: '' %}
{% for t in site.tags %}
{% assign tags = tags | push: t[0] %}

View File

@ -1213,10 +1213,6 @@ $btn-mb: 0.5rem;
}
#core-wrapper {
min-height: calc(
100vh - #{$topbar-height} - #{$footer-height-mobile}
) !important;
.post-content {
> blockquote[class^='prompt-'] {
@include ml-mr(-1.25rem);