fix(layout): deduplicate class name

This commit is contained in:
MDLeom 2020-05-09 09:54:36 +01:00
parent 7bc2bb6a94
commit e8a914d984
No known key found for this signature in database
GPG Key ID: 5D9DB57A25D34EE3
3 changed files with 9 additions and 33 deletions

View File

@ -1,4 +1,4 @@
<div class="category-container"> <div class="archive-container">
<%- partial('_partial/header', {}, { cache: true }) %> <%- partial('_partial/header', {}, { cache: true }) %>
<hr class="header-hr"> <hr class="header-hr">
<%- partial('_partial/archive', {pagination: config.category, index: true}) %> <%- partial('_partial/archive', {pagination: config.category, index: true}) %>

View File

@ -1,4 +1,4 @@
<div class="category-container"> <div class="archive-container">
<%- partial('_partial/header', {}, { cache: true }) %> <%- partial('_partial/header', {}, { cache: true }) %>
<hr class="header-hr"> <hr class="header-hr">
<%- partial('_partial/archive', {pagination: config.tag, index: true}) %> <%- partial('_partial/archive', {pagination: config.tag, index: true}) %>

View File

@ -112,8 +112,6 @@ hr {
} }
.archive-container hr, .archive-container hr,
.category-container hr,
.tag-container hr,
.article hr { .article hr {
width: 100%; width: 100%;
margin-left: 0; margin-left: 0;
@ -306,9 +304,7 @@ span.index-list-count:after {
} }
/* https://jrl.ninja/etc/1/ */ /* https://jrl.ninja/etc/1/ */
.archive-container, .archive-container {
.category-container,
.tag-container {
position: relative; position: relative;
font-size: 1em; font-size: 1em;
max-width: 80ch; max-width: 80ch;
@ -316,57 +312,37 @@ span.index-list-count:after {
margin: auto; margin: auto;
} }
.archive-container article, .archive-container article {
.category-container article,
.tag-container article {
margin-bottom: 1em; margin-bottom: 1em;
line-height: 1em; line-height: 1em;
} }
.archive-container a, .archive-container a,
.archive-container a:hover, .archive-container a:hover {
.category-container a,
.category-container a:hover,
.tag-container a,
.tag-container a:hover {
border: 0; border: 0;
} }
.archive-container .header, .archive-container .header,
.category-container .header,
.tag-container .header,
.article .header { .article .header {
font-size: 1.1em; font-size: 1.1em;
} }
.archive-container .archive-article-header > a, .archive-container .archive-article-header > a,
.archive-container .archive-article-header > h1, .archive-container .archive-article-header > h1 {
.category-container .archive-article-header > a,
.category-container .archive-article-header > h1,
.tag-container .archive-article-header > a,
.tag-container .archive-article-header > h1 {
vertical-align: middle; vertical-align: middle;
} }
.archive-container .archive-article-header h1, .archive-container .archive-article-header h1 {
.category-container .archive-article-header h1,
.tag-container .archive-article-header h1 {
font-size: 1.2em; font-size: 1.2em;
margin: 0; margin: 0;
} }
.archive-container .archive-article-date, .archive-container .archive-article-date {
.category-container .archive-article-date,
.tag-container .archive-article-date {
font-size: 0.8em; font-size: 0.8em;
} }
.archive-container .extend, .archive-container .extend,
.archive-container .page-number, .archive-container .page-number {
.category-container .extend,
.category-container .page-number,
.tag-container .extend,
.tag-container .page-number {
margin-right: 1em; margin-right: 1em;
} }