From 07e5436c4bc43b92087f946a9e901cce2c5ce56e Mon Sep 17 00:00:00 2001 From: Dan Head Date: Thu, 13 Dec 2018 21:56:06 +0000 Subject: [PATCH] Tags template --- css/{search-result.css => excerpt.css} | 18 +++--- css/index.css | 2 +- css/title.css | 17 ++++-- theme/functions.php | 2 +- theme/partials/banner.php | 12 ++-- theme/partials/metadata.php | 12 ++-- theme/search.php | 24 ++++---- theme/tag.php | 77 ++++++++++++++++++++++++++ 8 files changed, 125 insertions(+), 39 deletions(-) rename css/{search-result.css => excerpt.css} (52%) create mode 100644 theme/tag.php diff --git a/css/search-result.css b/css/excerpt.css similarity index 52% rename from css/search-result.css rename to css/excerpt.css index 9f55ce3..624c13b 100644 --- a/css/search-result.css +++ b/css/excerpt.css @@ -1,28 +1,28 @@ -.search-result { +.excerpt { margin-bottom: var(--space-sm); } -.search-result__head, -.search-result__body, -.search-result__title { +.excerpt__head, +.excerpt__body, +.excerpt__title { margin-bottom: var(--space-xs); } -.search-result__metadata { +.excerpt__metadata { color: var(--color-grey); font-size: 12px; } -.search-result__icon, -.search-result__text { +.excerpt__icon, +.excerpt__text { display: inline-block; vertical-align: middle; } -.search-result__icon { +.excerpt__icon { height: 16px; } -.search-result__text { +.excerpt__text { margin: 0 15px 0 5px; } diff --git a/css/index.css b/css/index.css index 84a6ae5..935c683 100644 --- a/css/index.css +++ b/css/index.css @@ -19,7 +19,7 @@ @import "pagination"; @import "title"; @import "archive"; -@import "search-result"; +@import "excerpt"; :root { --color-black: #000; diff --git a/css/title.css b/css/title.css index 4b61d23..cb8b870 100644 --- a/css/title.css +++ b/css/title.css @@ -4,13 +4,22 @@ margin-bottom: var(--space-sm); } -.title a { - color: inherit; -} - @media (--viewport-lg) { .title { margin-bottom: var(--space-md); } } +.title a { + color: inherit; +} + +.title__icon, +.title__text { + display: inline-block; + vertical-align: middle; +} + +.title__text { + text-transform: capitalize; +} diff --git a/theme/functions.php b/theme/functions.php index 5aeb900..cdf0415 100644 --- a/theme/functions.php +++ b/theme/functions.php @@ -61,7 +61,7 @@ function windycoys_the_tags() { if ($tags) { foreach($tags as $key=>$tag) { echo ''; if ($key < count($tags) - 1) { echo ', '; diff --git a/theme/partials/banner.php b/theme/partials/banner.php index 61e6165..dccc54c 100644 --- a/theme/partials/banner.php +++ b/theme/partials/banner.php @@ -1,16 +1,16 @@
-