From 580744bfd7274a229dcf146fa5a1ca1ddbc42ede Mon Sep 17 00:00:00 2001 From: Nazar Kanaev Date: Sat, 15 Aug 2020 22:20:24 +0100 Subject: [PATCH] item status indicator --- template/index.html | 12 +++++++++--- template/static/stylesheets/app.css | 21 +++++++++++++++++++++ 2 files changed, 30 insertions(+), 3 deletions(-) diff --git a/template/index.html b/template/index.html index 06a9d13..130bfc9 100644 --- a/template/index.html +++ b/template/index.html @@ -147,11 +147,17 @@ class="selectgroup">
-
- {{feedsById[item.feed_id].title}} +
+ + {% inline "circle-full.svg" %} + {% inline "star-full.svg" %} + + + {{feedsById[item.feed_id].title}} +
- {{item.title}} +
{{item.title}}
diff --git a/template/static/stylesheets/app.css b/template/static/stylesheets/app.css index 77d057d..9851f0f 100644 --- a/template/static/stylesheets/app.css +++ b/template/static/stylesheets/app.css @@ -124,6 +124,17 @@ select.form-control:not([multiple]):not([size]) { vertical-align: top; } +.icon-small { + width: .6rem; + height: .6rem; + display: inline-block; +} + +.icon-small > svg , .icon-small > img { + width: .6rem; + height: .6rem; +} + .feed-icon { width: 16px; height: 16px; @@ -485,3 +496,13 @@ a, .theme-night .toolbar-search:focus { background-color: #1a1a1a; } + +/* animation */ +.indicator-enter-active, .indicator-leave-active { + transition: all .3s; +} +.indicator-enter, .indicator-leave-to { + width: 0; + opacity: 0; + margin: 0 !important; +}