From 9fb166d2b36dc62d9c754e119bcaa9e588613ca9 Mon Sep 17 00:00:00 2001 From: Paulo Reis Date: Fri, 28 Apr 2017 17:09:34 +0100 Subject: [PATCH] Style improvements. --- .../web/app/views/project/list/side-bar.pug | 4 ++-- .../public/stylesheets/app/project-list.less | 21 ++++++++++++------- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/services/web/app/views/project/list/side-bar.pug b/services/web/app/views/project/list/side-bar.pug index 7550f66e2f..b3a3f11948 100644 --- a/services/web/app/views/project/list/side-bar.pug +++ b/services/web/app/views/project/list/side-bar.pug @@ -79,13 +79,13 @@ li a(href, ng-click="deleteTag(tag)", stop-propagation="click") | #{translate("delete")} - li.tag( + li.tag.untagged( ng-if="tags.length", ng-cloak, ng-click="selectUntagged()" ng-class="{active: filter === 'untagged'}", ) - a.tag-untagged(href) + a.tag-name(href) | #{translate("uncategorized")} span.subdued ({{ nUntagged }}) li(ng-cloak) diff --git a/services/web/public/stylesheets/app/project-list.less b/services/web/public/stylesheets/app/project-list.less index 2cf16e51a4..3fb8cf6044 100644 --- a/services/web/public/stylesheets/app/project-list.less +++ b/services/web/public/stylesheets/app/project-list.less @@ -124,6 +124,20 @@ ul.folders-menu { } } } + &.untagged { + font-style: italic; + margin-bottom: @line-height-computed / 4; + a { + line-height: 1.7; + &:hover, + &:focus { + text-decoration: none; + } + } + span.subdued { + font-style: normal; + } + } &:hover { &:not(.active) { background-color: darken(@gray-lightest, 2%); @@ -153,13 +167,6 @@ ul.folders-menu { line-height: 1.4; } } - .tag-untagged { - font-style: italic; - &:hover, - &:focus { - text-decoration: none; - } - } .tag-menu { > a { border: 1px solid @gray;