From 31cacb72787d870a5463ce0d29dcffd1399c0a54 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Sun, 27 Oct 2019 15:34:51 +0800 Subject: [PATCH] Beautified the tags. --- assets/css/_src/main.scss | 12 ++++++------ tabs/tags.md | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/assets/css/_src/main.scss b/assets/css/_src/main.scss index 8464044..a9ff109 100644 --- a/assets/css/_src/main.scss +++ b/assets/css/_src/main.scss @@ -425,10 +425,10 @@ footer .license a { line-height: 1rem; font-size: 0.85rem; background: none; - border: 1px solid #ced4da; + border: 1px solid #e9ecef; border-radius: .8rem; - padding: .25rem .5rem; - margin-bottom: .2rem; + padding: .3rem .5rem; + margin-bottom: .3rem; } #panel-tags .post-tag:hover { @@ -977,12 +977,12 @@ table tbody td { /*--- Tab Tags and Tag-Page ---*/ .tag { - border-radius: 0.55em; - padding: 4px 8px 5px; + border-radius: 0.7em; + padding: 6px 8px 7px; margin-right: .8rem; line-height: 3rem; letter-spacing: 0; - border: 1px solid #c5c6c7 !important; + border: 1px solid #dee2e6 !important; box-shadow: 0 0 3px 0 #e9ecef; } diff --git a/tabs/tags.md b/tabs/tags.md index eeebce1..58a78f1 100644 --- a/tabs/tags.md +++ b/tabs/tags.md @@ -10,7 +10,7 @@ title: Tags 'site.tags' looks like a Map, e.g. site.tags.MyTag.[ Post0, Post1, ... ] Print the {{ site.tags }} will help you to understand it. {% endcomment %} -
+
{% assign tags = "" | split: "" %} {% for t in site.tags %} {% assign tags = tags | push: t[0] %}