From f436facb20831dd0c55f9fc09883d659deae5f86 Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Sat, 8 Aug 2020 19:45:13 +0800 Subject: [PATCH] Remove .content --- layout/_layout.njk | 6 ++---- source/css/_schemes/Gemini/index.styl | 4 ++-- source/css/_schemes/Mist/_layout.styl | 2 +- source/css/_schemes/Muse/_header.styl | 2 +- source/css/_schemes/Pisces/_layout.styl | 2 +- 5 files changed, 7 insertions(+), 9 deletions(-) diff --git a/layout/_layout.njk b/layout/_layout.njk index 60f14e9..87649d0 100644 --- a/layout/_layout.njk +++ b/layout/_layout.njk @@ -22,11 +22,9 @@ {{ partial('_partials/widgets.njk', {}, {cache: theme.cache.enable}) }} -
+
{% include '_partials/header/sub-menu.njk' %} -
- {% block content %}{% endblock %} -
+ {% block content %}{% endblock %} {% include '_partials/comments.njk' %}
diff --git a/source/css/_schemes/Gemini/index.styl b/source/css/_schemes/Gemini/index.styl index 9d2d2be..4cf5516 100644 --- a/source/css/_schemes/Gemini/index.styl +++ b/source/css/_schemes/Gemini/index.styl @@ -60,7 +60,7 @@ } // Top main padding from header to posts (default 40px). -.content { +.post-block:first-of-type { padding-top: initial; } @@ -85,7 +85,7 @@ box-shadow: $box-shadow-inner; // Adapt submenu(s) with post-blocks. - + .content .post-block { + + .post-block { box-shadow: $box-shadow; margin-top: $sidebar-offset; diff --git a/source/css/_schemes/Mist/_layout.styl b/source/css/_schemes/Mist/_layout.styl index 0ca48e7..6fc142e 100644 --- a/source/css/_schemes/Mist/_layout.styl +++ b/source/css/_schemes/Mist/_layout.styl @@ -21,7 +21,7 @@ hr { padding-bottom: 80px; } -.content { +.post-block:first-of-type { padding-top: 80px; +mobile() { diff --git a/source/css/_schemes/Muse/_header.styl b/source/css/_schemes/Muse/_header.styl index f58a6ce..01248ed 100644 --- a/source/css/_schemes/Muse/_header.styl +++ b/source/css/_schemes/Muse/_header.styl @@ -21,7 +21,7 @@ padding-bottom: 60px; } -.content { +.post-block:first-of-type { padding-top: 70px; +mobile() { diff --git a/source/css/_schemes/Pisces/_layout.styl b/source/css/_schemes/Pisces/_layout.styl index c567231..c11acd2 100644 --- a/source/css/_schemes/Pisces/_layout.styl +++ b/source/css/_schemes/Pisces/_layout.styl @@ -48,7 +48,7 @@ } } -.content { +.post-block:first-of-type { padding-top: 40px; }