mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-17 18:22:33 +00:00
New element .post-content
This commit is contained in:
parent
19160b8a15
commit
dd51522f81
@ -4,7 +4,7 @@
|
||||
|
||||
{% block title %}{{ __('title.archive') }} | {{ title }}{% endblock %}
|
||||
|
||||
{% block class %}archive{% endblock %}
|
||||
{% block class %}archive posts-collapse{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
{### ARCHIVE BLOCK ###}
|
||||
{#####################}
|
||||
<div class="post-block">
|
||||
<div class="posts-collapse">
|
||||
<div class="post-content">
|
||||
<div class="collection-title">
|
||||
{%- set posts_length = site.posts.length %}
|
||||
{%- if posts_length > 210 %}
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
|
||||
{% block title %}{{ __('title.category') }}: {{ page.category }} | {{ title }}{% endblock %}
|
||||
|
||||
{% block class %}category{% endblock %}
|
||||
{% block class %}category posts-collapse{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
{### CATEGORY BLOCK ###}
|
||||
{######################}
|
||||
<div class="post-block">
|
||||
<div class="posts-collapse">
|
||||
<div class="post-content">
|
||||
<div class="collection-title">
|
||||
<h2 class="collection-header">
|
||||
{{- page.category }}
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
|
||||
{% block title %}{{ __('title.tag') }}: {{ page.tag }} | {{ title }}{% endblock %}
|
||||
|
||||
{% block class %}tag{% endblock %}
|
||||
{% block class %}tag posts-collapse{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
{### TAG BLOCK ###}
|
||||
{#################}
|
||||
<div class="post-block">
|
||||
<div class="posts-collapse">
|
||||
<div class="post-content">
|
||||
<div class="collection-title">
|
||||
<h2 class="collection-header">
|
||||
{{- page.tag }}
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
.posts-collapse {
|
||||
.posts-collapse .post-content {
|
||||
margin-bottom: $posts-collapse-margin;
|
||||
margin-left: $posts-collapse-margin;
|
||||
position: relative;
|
||||
|
||||
@ -24,11 +24,6 @@
|
||||
padding: $content-mobile-padding 18px $content-mobile-padding !important;
|
||||
}
|
||||
|
||||
.posts-collapse {
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.post-body {
|
||||
// For headers narrow width.
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
|
||||
@ -222,7 +222,7 @@ $site-subtitle-color = $grey-dark;
|
||||
// Posts Collpase
|
||||
// --------------------------------------------------
|
||||
$posts-collapse-margin = 35px;
|
||||
$posts-collapse-margin-mobile = 0px;
|
||||
$posts-collapse-margin-mobile = 0;
|
||||
|
||||
|
||||
// Tag Cloud
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user