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. --> <!-- 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 --> <!-- left arrow -->
{% if paginator.previous_page %} {% if paginator.previous_page %}
{% assign prev_url = paginator.previous_page_path | relative_url %} {% assign prev_url = paginator.previous_page_path | relative_url %}

View File

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

View File

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

View File

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

View File

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

View File

@ -3,7 +3,7 @@ layout: page
# All the Tags of posts. # 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: '' %} {% assign tags = '' | split: '' %}
{% for t in site.tags %} {% for t in site.tags %}
{% assign tags = tags | push: t[0] %} {% assign tags = tags | push: t[0] %}

View File

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