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}) }}
<div class="main-inner">
<div class="main-inner {% block class %}{% endblock %}">
{% include '_partials/header/sub-menu.njk' %}
<div class="content {% block class %}{% endblock %}">
{% block content %}{% endblock %}
</div>
{% block content %}{% endblock %}
{% include '_partials/comments.njk' %}
</div>
</main>

View File

@ -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;

View File

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

View File

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

View File

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