diff --git a/sass/main.scss b/sass/main.scss index 00d16d1..fd30dc0 100644 --- a/sass/main.scss +++ b/sass/main.scss @@ -32,6 +32,7 @@ @import 'parts/home-banner.scss'; @import 'parts/footer.scss'; @import 'parts/theme-switch.scss'; +@import 'parts/tags.scss'; @import 'syntax/syntax-ayu-dark.scss'; :root { diff --git a/sass/parts/_cards.scss b/sass/parts/_cards.scss index 54f49ba..ff6cb0a 100644 --- a/sass/parts/_cards.scss +++ b/sass/parts/_cards.scss @@ -66,7 +66,7 @@ padding-bottom: 1rem; } .bloglist-table-row:hover { - box-shadow: 10px 10px 0px var(--border-color); + box-shadow: 0.5rem 0.5rem 0 var(--border-color); } .bloglist-links { text-decoration: none; diff --git a/sass/parts/_tags.scss b/sass/parts/_tags.scss new file mode 100644 index 0000000..9e5125a --- /dev/null +++ b/sass/parts/_tags.scss @@ -0,0 +1,54 @@ +.taglist-container { + display: flex; + flex-wrap: wrap; + padding: 0; + + .taglist-table-row { + padding: 2%; + background-color: var(--navbar-color); + transition: 300ms; + width: 28%; + margin-right: 1%; + margin-top: 1%; + + .card-meta { + margin-bottom: 2.3rem; + } + + &:hover { + box-shadow: 0.5rem 0.5rem 0 var(--border-color); + } + } + + @media only screen and (max-width: 600px) { + .taglist-table-row { + width: 100%; + } + } +} + +.posts { + padding: 0; + margin-top: 1.2rem; + + .post { + display: flex; + flex-direction: column; + margin-bottom: 0.5rem; + } + + .title { + display: block; + margin-bottom: 0.5rem; + } + + .date { + display: block; + } + + ul { + list-style: none; + padding: 0; + margin: 0 + } +} diff --git a/templates/macros/list_title.html b/templates/macros/list_title.html index 0964727..e0d4ae1 100644 --- a/templates/macros/list_title.html +++ b/templates/macros/list_title.html @@ -1,16 +1,16 @@ {% macro list_title(pages, tag_name=false) %} {% if tag_name %} -

Entries tagged - "{{ term.name }}"

+
Tag {{ term.name }}
{% else %}

All articles

{% endif %} {% endmacro list_title %} diff --git a/templates/tags/list.html b/templates/tags/list.html index d579fa8..02dc0e3 100644 --- a/templates/tags/list.html +++ b/templates/tags/list.html @@ -2,23 +2,20 @@ {% block main_content %} -{{ macros_page_header::page_header(title="Tags")}} +{{ macros_page_header::page_header(title="Tags") }} -
- -
+ {% endblock main_content %}