Remove .content

This commit is contained in:
Mimi 2020-08-08 19:45:13 +08:00
parent 9ec4d87ddc
commit f436facb20
5 changed files with 7 additions and 9 deletions

View File

@ -22,11 +22,9 @@
{{ partial('_partials/widgets.njk', {}, {cache: theme.cache.enable}) }} {{ partial('_partials/widgets.njk', {}, {cache: theme.cache.enable}) }}
<div class="main-inner"> <div class="main-inner {% block class %}{% endblock %}">
{% include '_partials/header/sub-menu.njk' %} {% include '_partials/header/sub-menu.njk' %}
<div class="content {% block class %}{% endblock %}"> {% block content %}{% endblock %}
{% block content %}{% endblock %}
</div>
{% include '_partials/comments.njk' %} {% include '_partials/comments.njk' %}
</div> </div>
</main> </main>

View File

@ -60,7 +60,7 @@
} }
// Top main padding from header to posts (default 40px). // Top main padding from header to posts (default 40px).
.content { .post-block:first-of-type {
padding-top: initial; padding-top: initial;
} }
@ -85,7 +85,7 @@
box-shadow: $box-shadow-inner; box-shadow: $box-shadow-inner;
// Adapt submenu(s) with post-blocks. // Adapt submenu(s) with post-blocks.
+ .content .post-block { + .post-block {
box-shadow: $box-shadow; box-shadow: $box-shadow;
margin-top: $sidebar-offset; margin-top: $sidebar-offset;

View File

@ -21,7 +21,7 @@ hr {
padding-bottom: 80px; padding-bottom: 80px;
} }
.content { .post-block:first-of-type {
padding-top: 80px; padding-top: 80px;
+mobile() { +mobile() {

View File

@ -21,7 +21,7 @@
padding-bottom: 60px; padding-bottom: 60px;
} }
.content { .post-block:first-of-type {
padding-top: 70px; padding-top: 70px;
+mobile() { +mobile() {

View File

@ -48,7 +48,7 @@
} }
} }
.content { .post-block:first-of-type {
padding-top: 40px; padding-top: 40px;
} }