From e581ef7d09c7f525fc6a4584e47f4aa3ec8d85af Mon Sep 17 00:00:00 2001 From: Bat Date: Thu, 19 Jul 2018 12:00:34 +0200 Subject: [PATCH] Better style for tags --- static/main.css | 21 +++++++++++---------- templates/blogs/details.html.tera | 2 +- templates/posts/details.html.tera | 2 +- templates/users/followers.html.tera | 2 +- 4 files changed, 14 insertions(+), 13 deletions(-) diff --git a/static/main.css b/static/main.css index 541f1ac7..d523d8cd 100644 --- a/static/main.css +++ b/static/main.css @@ -22,6 +22,13 @@ a, a:visited { outline: none; } +small { + margin-left: 1em; + color: #242424; + opacity: 0.6; + font-size: 0.75em; +} + .center { text-align: center; font-weight: bold; @@ -290,20 +297,14 @@ main .article-meta .comments .list { align-items: center; align-content: center; } - +.comments .list .comment .author * { + transition: all 0.1s ease-in; +} .comments .list .comment .author .display-name { - transition: color 0.1s ease-in; color: #242424; } .comments .list .comment .author:hover .display-name { color: #7765E3; } - -.comments .list .comment .author .username { - transition: color 0.1s ease-in; - margin-left: 1em; - color: #777777; - font-size: 0.9em; -} -.comments .list .comment .author:hover .username { color: #444444; } +.comments .list .comment .author:hover small { opacity: 1; } .comments .list .comment .text { padding: 1.25em 0; diff --git a/templates/blogs/details.html.tera b/templates/blogs/details.html.tera index 40ddf629..96d805c1 100644 --- a/templates/blogs/details.html.tera +++ b/templates/blogs/details.html.tera @@ -6,7 +6,7 @@ {% endblock title %} {% block content %} -

{{ blog.title }} (~{{ blog.actor_id }})

+

{{ blog.title }} ~{{ blog.actor_id }}

{{ blog.summary }}

{{ "{{ count }} authors in this blog: " | _n(singular="One author in this blog: ", count = n_authors) }} diff --git a/templates/posts/details.html.tera b/templates/posts/details.html.tera index baf0d8e2..6952b1ab 100644 --- a/templates/posts/details.html.tera +++ b/templates/posts/details.html.tera @@ -87,7 +87,7 @@

{{ comment.author.display_name }} - @{{ comment.author.username }} + @{{ comment.author.username }}
{{ comment.content | safe }}
{{ "Respond" | _ }} diff --git a/templates/users/followers.html.tera b/templates/users/followers.html.tera index f563eafa..e748116e 100644 --- a/templates/users/followers.html.tera +++ b/templates/users/followers.html.tera @@ -22,7 +22,7 @@ {% set follower_name = follower.username %} {% endif %}
-

{{ follower_name }} — @{{ follower.fqn }}

+

{{ follower_name }} @{{ follower.fqn }}

{{ follower.summary | safe }}

{% endfor %}