mirror of
https://github.com/welpo/tabi.git
synced 2025-12-14 11:48:45 +01:00
style(series): redesign for cohesion
This commit is contained in:
parent
edfe382299
commit
1b884a8ac5
5 changed files with 7 additions and 45 deletions
|
|
@ -65,9 +65,6 @@ table_of_contents = "Table of Contents"
|
||||||
load_comments = "Load comments"
|
load_comments = "Load comments"
|
||||||
|
|
||||||
# Series.
|
# Series.
|
||||||
series = "SERIE"
|
|
||||||
series_jump_to_posts = "Jump to posts"
|
|
||||||
series_posts = "Series' posts:"
|
|
||||||
series_page_headline = "This article is part of the series: $SERIES_HTML_LINK."
|
series_page_headline = "This article is part of the series: $SERIES_HTML_LINK."
|
||||||
|
|
||||||
# Copy code block button.
|
# Copy code block button.
|
||||||
|
|
|
||||||
|
|
@ -65,9 +65,6 @@ table_of_contents = "Table des matières"
|
||||||
load_comments = "Afficher les commentaires"
|
load_comments = "Afficher les commentaires"
|
||||||
|
|
||||||
# Series.
|
# Series.
|
||||||
series = "SERIE"
|
|
||||||
series_jump_to_posts = "Aller aux articles"
|
|
||||||
series_posts = "Articles de la série :"
|
|
||||||
series_page_headline = "Cet article fait partie de la série : $SERIES_HTML_LINK."
|
series_page_headline = "Cet article fait partie de la série : $SERIES_HTML_LINK."
|
||||||
|
|
||||||
# Copy code block button.
|
# Copy code block button.
|
||||||
|
|
|
||||||
|
|
@ -190,7 +190,7 @@ article {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.section-title, .seriesposts-title {
|
.section-title {
|
||||||
display: block;
|
display: block;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
margin-top: -0.15em;
|
margin-top: -0.15em;
|
||||||
|
|
@ -200,10 +200,6 @@ article {
|
||||||
line-height: 1.2em;
|
line-height: 1.2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.seriesposts-title {
|
|
||||||
font-size: 1.5em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.last-updated {
|
.last-updated {
|
||||||
margin-top: -5vmin;
|
margin-top: -5vmin;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -42,20 +42,6 @@ ul {
|
||||||
padding-bottom: 8px;
|
padding-bottom: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title-label {
|
|
||||||
margin-right: 0.3rem;
|
|
||||||
background-color: var(--primary-color);
|
|
||||||
padding: 2px 4px;
|
|
||||||
color: var(--hover-color);
|
|
||||||
font-size: 1rem;
|
|
||||||
vertical-align: top;
|
|
||||||
}
|
|
||||||
|
|
||||||
.title-button {
|
|
||||||
margin-left: 0.3rem;
|
|
||||||
float: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bottom-divider {
|
.bottom-divider {
|
||||||
border-bottom: var(--divider-color) solid 0.5px;
|
border-bottom: var(--divider-color) solid 0.5px;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,26 +13,13 @@
|
||||||
{%- include "partials/home_banner.html" -%}
|
{%- include "partials/home_banner.html" -%}
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
|
|
||||||
<article>
|
{{ macros_page_header::page_header(title=section.title) }}
|
||||||
<div>
|
|
||||||
<span class="title-label">{{ macros_translate::translate(key="series", default="SERIES", language_strings=language_strings) }}</span>
|
<section class="body">
|
||||||
{%- set jump_to_series_posts = macros_translate::translate(key="series_jump_to_posts", default="Jump to posts", language_strings=language_strings) -%}
|
{{ section.content | safe }}
|
||||||
<a href="#posts-list" class="title-button no-hover-padding" title="{{ jump_to_series_posts }}">
|
</section>
|
||||||
{{ jump_to_series_posts }}
|
|
||||||
</a>
|
|
||||||
{{ macros_page_header::page_header(title=section.title) }}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<section class="body">
|
|
||||||
{{ section.content | safe }}
|
|
||||||
</section>
|
|
||||||
</article>
|
|
||||||
<div id="posts-list">
|
<div id="posts-list">
|
||||||
<div>
|
|
||||||
<h2 class="seriesposts-title bottom-divider">
|
|
||||||
{{ macros_translate::translate(key="series_posts", default="Series' posts:", language_strings=language_strings) }}
|
|
||||||
</h2>
|
|
||||||
</div>
|
|
||||||
{%- if paginator %}
|
{%- if paginator %}
|
||||||
{%- set pages = paginator.pages -%}
|
{%- set pages = paginator.pages -%}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
@ -41,13 +28,12 @@
|
||||||
|
|
||||||
{% set max_posts = section.extra.max_posts | default(value=999999) %}
|
{% set max_posts = section.extra.max_posts | default(value=999999) %}
|
||||||
{{ macros_list_posts::list_posts(posts=pages, max=max_posts, metadata="indexes", language_strings=language_strings, section_path=section.path, paginator=paginator | default(value="")) }}
|
{{ macros_list_posts::list_posts(posts=pages, max=max_posts, metadata="indexes", language_strings=language_strings, section_path=section.path, paginator=paginator | default(value="")) }}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if paginator %}
|
{% if paginator %}
|
||||||
{%- include "partials/paginate.html" -%}
|
{%- include "partials/paginate.html" -%}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
{%- include "partials/extra_features.html" -%}
|
{%- include "partials/extra_features.html" -%}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue