From 451979589c11a7643ca0693711fa41d95d6de537 Mon Sep 17 00:00:00 2001 From: Athou Date: Wed, 1 May 2013 17:04:49 +0200 Subject: [PATCH] tree hover --- src/main/webapp/css/app.css | 33 +++++++++++++++++++++--- src/main/webapp/js/directives.js | 7 +++++ src/main/webapp/templates/_category.html | 13 +++++----- src/main/webapp/templates/_tree.html | 6 ++--- 4 files changed, 45 insertions(+), 14 deletions(-) diff --git a/src/main/webapp/css/app.css b/src/main/webapp/css/app.css index 853f76c9..d0baee54 100644 --- a/src/main/webapp/css/app.css +++ b/src/main/webapp/css/app.css @@ -70,10 +70,6 @@ white-space: nowrap; } -.css-treeview .indent { - margin-left: 22px; -} - .css-treeview ul { list-style: none; margin-left: 0px; @@ -127,6 +123,35 @@ text-overflow: ellipsis; } +.css-treeview a:hover { + text-decoration: none; +} + +.css-treeview li .tree-item:hover { + background-color: #EBEBEB; + text-decoration: none; +} + +.css-treeview .indent1 { + padding-left: 22px; +} + +.css-treeview .indent2 { + padding-left: 44px; +} + +.css-treeview .indent3 { + padding-left: 66px; +} + +.css-treeview .indent4 { + padding-left: 88px; +} + +.css-treeview .indent5 { + padding-left: 110px; +} + /* entry list*/ .entrylist-header { border-bottom: 1px solid #eee; diff --git a/src/main/webapp/js/directives.js b/src/main/webapp/js/directives.js index f80ea0c5..6cd269b3 100644 --- a/src/main/webapp/js/directives.js +++ b/src/main/webapp/js/directives.js @@ -93,6 +93,7 @@ module.directive('category', [ function() { return { scope : { node : '=', + level: '=', selectedType : '=', selectedId : '=', showLabel : '=', @@ -112,6 +113,12 @@ module.directive('category', [ function() { function($scope, $state, $dialog, FeedService, CategoryService, SettingsService) { $scope.settingsService = SettingsService; + + $scope.getClass = function(level) { + if ($scope.showLabel){ + return 'indent' + level; + } + }; $scope.formatCategoryName = function(category) { var count = $scope.unreadCount({ diff --git a/src/main/webapp/templates/_category.html b/src/main/webapp/templates/_category.html index 6005eb86..99b1452e 100644 --- a/src/main/webapp/templates/_category.html +++ b/src/main/webapp/templates/_category.html @@ -1,5 +1,5 @@
  • -
    +