From a6b5b8f7a9a0bb3cdf437bbf020dcb1faadf00e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Tue, 21 Apr 2020 18:08:48 +0200 Subject: Changed visibility for article stats --- .../static/themes/material/css/article.scss | 11 +++++++---- .../themes/material/Entry/_reading_time.html.twig | 2 +- .../views/themes/material/Entry/entry.html.twig | 20 ++++++++++---------- web/wallassets/material.css | 2 +- 4 files changed, 19 insertions(+), 16 deletions(-) diff --git a/app/Resources/static/themes/material/css/article.scss b/app/Resources/static/themes/material/css/article.scss index baa00372..edfd6007 100644 --- a/app/Resources/static/themes/material/css/article.scss +++ b/app/Resources/static/themes/material/css/article.scss @@ -111,7 +111,7 @@ flex-flow: row wrap; .stats { - font-size: 0.8em; + font-size: 0.7em; margin: 8px 5px 5px; li { @@ -122,6 +122,7 @@ i.material-icons { color: #3e3e3e; margin-right: 3px; + font-size: 18px; } } @@ -138,10 +139,12 @@ } .chip { - background-color: $blueAccentColor; + background-color: #9e9e9e; padding: 0 15px 0 10px; margin: auto 2px; border-radius: 6px; + height: 18px; + line-height: 18px; a, i { @@ -150,8 +153,8 @@ i.material-icons { float: right; - font-size: 20px; - line-height: 32px; + font-size: 16px; + line-height: 18px; padding-left: 8px; } } diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_reading_time.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_reading_time.html.twig index b7167e95..18b2fd3d 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_reading_time.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_reading_time.html.twig @@ -1,5 +1,5 @@ {% set readingTime = entry.readingTime / app.user.config.readingSpeed * 200 %} -timer +timer {% if readingTime > 0 %} {{ 'entry.list.reading_time_minutes_short'|trans({'%readingTime%': readingTime|round}) }} {% else %} diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig index e23fa0e1..527b1afc 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig @@ -223,46 +223,46 @@ {% block content %}
-

{{ entry.title|striptags|default('entry.default_title'|trans)|raw }}

+

{{ entry.title|striptags|default('entry.default_title'|trans)|raw }} create