Skip to content

Commit

Permalink
Minor style changes for context menu
Browse files Browse the repository at this point in the history
  • Loading branch information
LFDM committed May 29, 2014
1 parent c103c6e commit a0d8ef4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
7 changes: 7 additions & 0 deletions app/css/arethusa.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@
/*background: #fff;*/
}

.menu-element {
padding: 0.2rem;
}
.menu-element:hover {
background-color: #ebebeb;
}

#sidepanel {
z-index: 1;
position: relative;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ angular.module('arethusa.contextMenu').directive('pluginContextMenu', function (
return {
restrict: 'E',
scope: true,
replace: true,
link: function (scope, element, attrs) {
scope.plugin = scope.$eval(attrs.name);
},
template: ' <div id="{{ plugin.name }}-context-menu" ng-include="plugin.contextMenuTemplate"> </div> '
};
});
});
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div id="tcm{{ tokenId }}" class="f-dropdown content hide">
<div ng-if="active()" ng-repeat="plugin in plugins">
<plugin-context-menu name="plugin"></plugin-context-menu>
<plugin-context-menu name="plugin" class="menu-element"></plugin-context-menu>
</div>
</div>
4 changes: 2 additions & 2 deletions app/templates/arethusa.dep_tree/context_menu.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div>
<span class="label radius" ng-click="plugin.disconnect(token)">Disconnect</span>
<span class="label radius" ng-click="plugin.toRoot(token)">to Root</span>
<span class="label radius" ng-click="plugin.disconnect(token)">disconnect</span>
<span class="label radius" ng-click="plugin.toRoot(token)">to root</span>
</div>

0 comments on commit a0d8ef4

Please sign in to comment.