{{ post.score }}
{% if post.flags.nsfw %}diff --git a/static/style.css b/static/style.css index 0d0cf00..33d1964 100644 --- a/static/style.css +++ b/static/style.css @@ -506,7 +506,7 @@ a.search_subreddit:hover { display: grid; overflow: hidden; flex-shrink: 0; - background-color: var(--highlighted); + background-color: black; } .post_thumbnail img { @@ -517,12 +517,23 @@ a.search_subreddit:hover { justify-self: center; } +.post_thumbnail.no_thumbnail { + background-color: var(--highlighted) +} + +.post_thumbnail svg { + grid-area: 1 / 1 / 2 / 2; + align-self: center; + justify-self: center; + stroke: var(--text); +} + .post_thumbnail span { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; text-align: center; - background-color: rgba(0,0,0,0.6); + background-color: rgba(0,0,0,0.8); color: white; grid-area: 1 / 1 / 2 / 2; padding: 5px; diff --git a/templates/search.html b/templates/search.html index 4bab330..6c2b836 100644 --- a/templates/search.html +++ b/templates/search.html @@ -38,7 +38,7 @@ {% if post.flags.nsfw && prefs.hide_nsfw == "on" %} {% else if post.title != "Comment" %} -
{{ post.score }}
{% if post.flags.nsfw %}