From e8a914d98451b9ddcb12081b3982737cb7b8e51a Mon Sep 17 00:00:00 2001 From: MDLeom <2809763-curben@users.noreply.gitlab.com> Date: Sat, 9 May 2020 09:54:36 +0100 Subject: [PATCH] fix(layout): deduplicate class name --- themes/chameleon/layout/category.ejs | 2 +- themes/chameleon/layout/tag.ejs | 2 +- themes/chameleon/source/css/chameleon.css | 38 +++++------------------ 3 files changed, 9 insertions(+), 33 deletions(-) diff --git a/themes/chameleon/layout/category.ejs b/themes/chameleon/layout/category.ejs index 99c3188..3796aab 100644 --- a/themes/chameleon/layout/category.ejs +++ b/themes/chameleon/layout/category.ejs @@ -1,4 +1,4 @@ -
+
<%- partial('_partial/header', {}, { cache: true }) %>
<%- partial('_partial/archive', {pagination: config.category, index: true}) %> diff --git a/themes/chameleon/layout/tag.ejs b/themes/chameleon/layout/tag.ejs index 1986845..a89189d 100644 --- a/themes/chameleon/layout/tag.ejs +++ b/themes/chameleon/layout/tag.ejs @@ -1,4 +1,4 @@ -
+
<%- partial('_partial/header', {}, { cache: true }) %>
<%- partial('_partial/archive', {pagination: config.tag, index: true}) %> diff --git a/themes/chameleon/source/css/chameleon.css b/themes/chameleon/source/css/chameleon.css index 5fe65ef..f346b84 100644 --- a/themes/chameleon/source/css/chameleon.css +++ b/themes/chameleon/source/css/chameleon.css @@ -112,8 +112,6 @@ hr { } .archive-container hr, -.category-container hr, -.tag-container hr, .article hr { width: 100%; margin-left: 0; @@ -306,9 +304,7 @@ span.index-list-count:after { } /* https://jrl.ninja/etc/1/ */ -.archive-container, -.category-container, -.tag-container { +.archive-container { position: relative; font-size: 1em; max-width: 80ch; @@ -316,57 +312,37 @@ span.index-list-count:after { margin: auto; } -.archive-container article, -.category-container article, -.tag-container article { +.archive-container article { margin-bottom: 1em; line-height: 1em; } .archive-container a, -.archive-container a:hover, -.category-container a, -.category-container a:hover, -.tag-container a, -.tag-container a:hover { +.archive-container a:hover { border: 0; } .archive-container .header, -.category-container .header, -.tag-container .header, .article .header { font-size: 1.1em; } .archive-container .archive-article-header > a, -.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 { +.archive-container .archive-article-header > h1 { vertical-align: middle; } -.archive-container .archive-article-header h1, -.category-container .archive-article-header h1, -.tag-container .archive-article-header h1 { +.archive-container .archive-article-header h1 { font-size: 1.2em; margin: 0; } -.archive-container .archive-article-date, -.category-container .archive-article-date, -.tag-container .archive-article-date { +.archive-container .archive-article-date { font-size: 0.8em; } .archive-container .extend, -.archive-container .page-number, -.category-container .extend, -.category-container .page-number, -.tag-container .extend, -.tag-container .page-number { +.archive-container .page-number { margin-right: 1em; }